collate 0.1.5 → 0.1.6

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: 8e5d5cff5ee29bc03dba8b9a2c7f8fbbed06ace8
4
- data.tar.gz: b5a3ef80d188981dc34eae5ed0db8eedd472ebd5
3
+ metadata.gz: 2a5e40360240e63880d47ee7855eeccff87256b0
4
+ data.tar.gz: 47709623c8d53fbc7f50d5762c2d52822b451e75
5
5
  SHA512:
6
- metadata.gz: 5f0ab4fcd4fad5de4e4771654569f7bd3249cf696cc1b6d9cf3778e8623434389af7106df37aeeb04e5d070d4e491acfcf727ba642855704fba36e5d8a007195
7
- data.tar.gz: af36de3d2f5f4158da8bc4a26564e9923b19ffaad004f3ffd70b3f793e6138dc10cc2ef9b5ae94c95f8ed881a101b77ee1265989a5c8c13a9de887e0ee43ce2a
6
+ metadata.gz: 39f23205845ec996f4183ec9abd304fc8bb6d2449b264948b5f2ff682ad0d87d9bc2b34dda4c05a3d0235f5ce0c5df2d08d211a0a9dfd5e325c51f526cff9a9e
7
+ data.tar.gz: 78230df30c91fdcc562ab0263c6339d59cf0c48f9d201195bfba882def24fcceb131422b96cd3ba39a520dc68c8ef0c93a1cb53ea4321dc517a15fe3783d210d
@@ -10,6 +10,10 @@ module Collate
10
10
  filters
11
11
  end
12
12
 
13
+ def filters_for_groups record, group_keys
14
+ group_keys.collect { |gk| filters_for_group record, gk }.flatten
15
+ end
16
+
13
17
  def sorting_for record, opts={}
14
18
  sorters = record.model.collate_sorters ||= []
15
19
 
@@ -1,3 +1,3 @@
1
1
  module Collate
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Page
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-02-07 00:00:00.000000000 Z
12
+ date: 2017-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler