mongoid_criteria_filter 0.0.2 → 0.0.3

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: c1dca925c5e533a911f0ab0862c42149de2bb5e4
4
- data.tar.gz: 4aa4ebfb4481fed2caea3031c33b870597f4936f
3
+ metadata.gz: b93d69eaf85c06a005218e84706157870302fb57
4
+ data.tar.gz: 5dbf65c1e13a94e6af56ec154737e67fcc98b0fc
5
5
  SHA512:
6
- metadata.gz: 6fef4a1110acfb6741a979842b8df21d7a54238c4d139de602e8436eeedf7623d018307844202394aff2e9398279ba401efef19b08290e20389300ed5a9a2aca
7
- data.tar.gz: c3a358df6a808aed0a9903e9e10e1bb3c8c64f8698a4449c7de488db35b006de1619d6e174b26693a5f9f4598388eb147472f9b55b854c4bd00a15de08c7f26e
6
+ metadata.gz: e69c129859f22007452b9857cb739977882e97b4a207cbade4c1a62ad0600b7719fb0bcfd4695966bdc2b5851da56a42f3d74f6de5b142e0e1a5c01d72ed87ca
7
+ data.tar.gz: b5eab98965fbd20146ea36e3ed7f403230259513d50c713d9310cb005318bacf0f2af7b98bd689ff18a9a6e492a13c402cd97d2583b450a5807e843e048448bf
@@ -8,14 +8,14 @@ module Mongoid
8
8
  end
9
9
 
10
10
  def each
11
- sort_with_position(super(){}).each do |doc|
11
+ apply_filter_callbacks(super(){}).each do |doc|
12
12
  yield(doc) if block_given?
13
13
  end
14
14
  end
15
15
 
16
16
  private
17
17
 
18
- def sort_with_position(items)
18
+ def apply_filter_callbacks(items)
19
19
  filter_callbacks.each do |filter_callback|
20
20
  items = filter_callback.call items
21
21
  end unless has_additional_order?
@@ -0,0 +1,4 @@
1
+ # encoding: utf-8
2
+ module MongoidCriteriaFilter
3
+ VERSION = '0.0.3'
4
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_criteria_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Melanitskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-02 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -48,6 +48,7 @@ files:
48
48
  - lib/mongoid_criteria_filter.rb
49
49
  - lib/mongoid_criteria_filter/criteria.rb
50
50
  - lib/mongoid_criteria_filter/origin_optional.rb
51
+ - lib/mongoid_criteria_filter/version.rb
51
52
  homepage: https://github.com/Rademade/mongoid_criteria_filter
52
53
  licenses:
53
54
  - MIT