perus 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 011fd988fce8cd244b60e6a92a7c195328ae1800
4
- data.tar.gz: f7ea801d99ebb084da7812d1634a1425a7506bfb
3
+ metadata.gz: 55c0c762b0fde0278575b14119595ac6938b414e
4
+ data.tar.gz: c6b76454cd3ee3d5a49b608d1189a78282c11a2c
5
5
  SHA512:
6
- metadata.gz: 47e0dbd40d1ced7628502f4c957d5117bf227805ddda0394965985d101716ee3ad75ff97076ed3b1cc36d4714d9e010e79187d03a22cb691b599896effbad314
7
- data.tar.gz: 74a65a9cac88d6c34ab3ec1858e7e5726045b6b384201d9c8f3d0a83500c3510cd7aaf9998435fca263684f0428a6cc1c1ba0cfd71a2f05f5f22b80fdb38c09c
6
+ metadata.gz: d9b9e909390301e047111bfbdb1802d371be8e0cad681b93cea5cbf6784a57d16ec662eb8ae8dfc6275ec2e265f4fb2655169083ffc061461dbf91bedaa9838d
7
+ data.tar.gz: 76ca5be1b5012e1a24670af088aa5835e6aa1c7e54790597aae8113c288dfe292958c2d98545ca5ee6850865a44527147ee4257ba05f581eeecec24bad34ab94
@@ -19,7 +19,7 @@ module Perus::Server
19
19
 
20
20
  # list
21
21
  get '/admin/#{plural}' do
22
- @records = #{klass}.all
22
+ @records = #{klass}.dataset.order_by(:name).all
23
23
  erb :'admin/index'
24
24
  end
25
25
 
@@ -290,7 +290,7 @@ module Perus::Server
290
290
  # list of systems by group
291
291
  get '/groups/:id/systems' do
292
292
  group = Group.with_pk!(params['id'])
293
- @systems = group.systems.group_by(&:orientation)
293
+ @systems = group.systems_dataset.order_by(:name).all.group_by(&:orientation)
294
294
  @title = group.name
295
295
  @scripts = Script.all
296
296
  @action_url = "groups/#{params['id']}/systems/actions"
data/lib/perus/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Perus
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Cannings