filter_factory 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -2
- data/.rspec +1 -0
- data/.travis.yml +7 -0
- data/Gemfile +3 -4
- data/Gemfile.lock +141 -0
- data/README.md +2 -0
- data/lib/filter_factory/field.rb +1 -1
- data/lib/filter_factory/filter.rb +18 -16
- data/lib/filter_factory/mongoid/condition.rb +17 -11
- data/lib/filter_factory/mongoid/filter.rb +3 -3
- data/lib/filter_factory/version.rb +1 -1
- data/lib/filter_factory.rb +11 -11
- data/spec/factories/factories.rb +1 -3
- data/spec/filter_factory/active_record/model_spec.rb +70 -84
- data/spec/filter_factory/field_spec.rb +31 -33
- data/spec/filter_factory/filter_spec.rb +88 -88
- data/spec/filter_factory/mongoid/model_spec.rb +69 -83
- data/spec/models/ar_post.rb +1 -1
- data/spec/spec_helper.rb +18 -26
- metadata +11 -10
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filter_factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Hck
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-04-10 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Gem for easy ActiveRecord/Mongoid models filtering
|
15
14
|
email:
|
@@ -17,8 +16,11 @@ executables: []
|
|
17
16
|
extensions: []
|
18
17
|
extra_rdoc_files: []
|
19
18
|
files:
|
20
|
-
- .gitignore
|
19
|
+
- ".gitignore"
|
20
|
+
- ".rspec"
|
21
|
+
- ".travis.yml"
|
21
22
|
- Gemfile
|
23
|
+
- Gemfile.lock
|
22
24
|
- LICENSE.txt
|
23
25
|
- README.md
|
24
26
|
- Rakefile
|
@@ -42,27 +44,26 @@ files:
|
|
42
44
|
- spec/spec_helper.rb
|
43
45
|
homepage: https://github.com/hck/filter_factory
|
44
46
|
licenses: []
|
47
|
+
metadata: {}
|
45
48
|
post_install_message:
|
46
49
|
rdoc_options: []
|
47
50
|
require_paths:
|
48
51
|
- lib
|
49
52
|
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
53
|
requirements:
|
52
|
-
- -
|
54
|
+
- - ">="
|
53
55
|
- !ruby/object:Gem::Version
|
54
56
|
version: '0'
|
55
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
58
|
requirements:
|
58
|
-
- -
|
59
|
+
- - ">="
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '0'
|
61
62
|
requirements: []
|
62
63
|
rubyforge_project:
|
63
|
-
rubygems_version:
|
64
|
+
rubygems_version: 2.5.1
|
64
65
|
signing_key:
|
65
|
-
specification_version:
|
66
|
+
specification_version: 4
|
66
67
|
summary: FilterFactory allows you to easily fetch ActiveRecord/Mongoid models that
|
67
68
|
match specified filters.
|
68
69
|
test_files:
|