mongoid_criteria_filter 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mongoid_criteria_filter/version.rb +1 -1
- data/spec/models/criteria_spec.rb +3 -3
- data/spec/spec_helper.rb +0 -5
- metadata +5 -7
- data/spec/factories/user.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dca54f0bda9cba5c3e7d6e8c31cc8c742f750539
|
4
|
+
data.tar.gz: 599b8a200ae2473fa0983a377deed00361351bb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15fecb21c71090f388184dc39ec9f5b93a1cf69d43b03934d2c09b43b89ddd34aa671b8c32bf5f2f3b2a0cd3dbc3978ac9f5ff8a8de2506e5175c127e06949fb
|
7
|
+
data.tar.gz: 67b30379d430641c8f28ff72595afa362cc3a6d1d1131f096bd81a1dc1f0bd51e807009831842d10b343f5365b988c18edc3762647c43f7733426b2e7689e324
|
@@ -5,9 +5,9 @@ describe Mongoid::Criteria do
|
|
5
5
|
describe '#add_filter' do
|
6
6
|
|
7
7
|
let!(:users) do
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
User.create :name => 'Name1'
|
9
|
+
User.create :name => 'Name2'
|
10
|
+
User.create :name => 'Name3'
|
11
11
|
end
|
12
12
|
|
13
13
|
context 'without additional order' do
|
data/spec/spec_helper.rb
CHANGED
@@ -5,10 +5,8 @@ MODELS = File.join(File.dirname(__FILE__), 'app/models')
|
|
5
5
|
$LOAD_PATH.unshift(MODELS)
|
6
6
|
|
7
7
|
require 'mongoid_criteria_filter'
|
8
|
-
require 'action_controller'
|
9
8
|
require 'rspec'
|
10
9
|
require 'database_cleaner'
|
11
|
-
require 'factory_girl_rails'
|
12
10
|
|
13
11
|
ENV['MONGOID_SPEC_HOST'] ||= 'localhost'
|
14
12
|
ENV['MONGOID_SPEC_PORT'] ||= '27017'
|
@@ -25,9 +23,6 @@ CONFIG = {
|
|
25
23
|
}
|
26
24
|
}
|
27
25
|
|
28
|
-
FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
|
29
|
-
FactoryGirl.reload
|
30
|
-
|
31
26
|
Mongoid.configure do |config|
|
32
27
|
config.load_configuration(CONFIG)
|
33
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_criteria_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladislav Melanitskiy
|
@@ -14,14 +14,14 @@ dependencies:
|
|
14
14
|
name: mongoid
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
description: It adds possibility for criteria callbacks (data filters)
|
@@ -36,7 +36,6 @@ files:
|
|
36
36
|
- lib/mongoid_criteria_filter/origin_optional.rb
|
37
37
|
- lib/mongoid_criteria_filter/version.rb
|
38
38
|
- spec/app/models/user.rb
|
39
|
-
- spec/factories/user.rb
|
40
39
|
- spec/models/criteria_spec.rb
|
41
40
|
- spec/spec_helper.rb
|
42
41
|
homepage: https://github.com/Rademade/mongoid_criteria_filter
|
@@ -49,12 +48,12 @@ require_paths:
|
|
49
48
|
- lib
|
50
49
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
|
-
- -
|
51
|
+
- - '>='
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '0'
|
55
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
55
|
requirements:
|
57
|
-
- -
|
56
|
+
- - '>='
|
58
57
|
- !ruby/object:Gem::Version
|
59
58
|
version: '0'
|
60
59
|
requirements: []
|
@@ -66,5 +65,4 @@ summary: Extension for mongoid.
|
|
66
65
|
test_files:
|
67
66
|
- spec/models/criteria_spec.rb
|
68
67
|
- spec/spec_helper.rb
|
69
|
-
- spec/factories/user.rb
|
70
68
|
- spec/app/models/user.rb
|