filta 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -5
- data/VERSION +1 -1
- data/lib/filta/methods.rb +1 -6
- metadata +21 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23d769fd7cd1a92c3f7fcaecf96f0dedc2b3b17c7e0a8e4f6d37d3b6aa20b789
|
4
|
+
data.tar.gz: 7ac412d1477c09c4b4bbb108aedc914e84e91add14588196170085795d157450
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b325fc443a3ae4e54762b1df20cae8f8460330dba0380039032bfb932205b90165fe93ba9cc5331855f478f2d21892a99d1b7266247894b5d28a7853570a2239
|
7
|
+
data.tar.gz: 5a47d86aad98e5d88582312f7a893a624fa0d0a4c9e11a178238eddf2035cdc36a45a7d730b78c2a68286c01507b178f4dd513c434a8a236d937914519b33568
|
data/Rakefile
CHANGED
@@ -2,11 +2,10 @@
|
|
2
2
|
|
3
3
|
require "bundler/gem_tasks"
|
4
4
|
require "rake/testtask"
|
5
|
+
require "rspec/core/rake_task"
|
5
6
|
|
6
|
-
|
7
|
-
t.
|
8
|
-
t.libs << "lib"
|
9
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
7
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
8
|
+
t.pattern = Dir.glob("spec/**/*_spec.rb")
|
10
9
|
end
|
11
10
|
|
12
|
-
task
|
11
|
+
task test: :spec
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/lib/filta/methods.rb
CHANGED
@@ -11,18 +11,13 @@ module Filta
|
|
11
11
|
results = where(nil)
|
12
12
|
|
13
13
|
by.each do |key, value|
|
14
|
-
next
|
14
|
+
next if value.blank?
|
15
15
|
|
16
16
|
results = results.where(key.to_s.to_sym => value)
|
17
17
|
end
|
18
18
|
|
19
19
|
results
|
20
20
|
end
|
21
|
-
|
22
|
-
# TODO: This method is now deprecated and should be removed at a later date
|
23
|
-
def filter(by)
|
24
|
-
filta(by)
|
25
|
-
end
|
26
21
|
end
|
27
22
|
end
|
28
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boxt Developers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -34,16 +34,16 @@ dependencies:
|
|
34
34
|
name: boxt_ruby_style_guide
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - '='
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 7.2.0
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- -
|
44
|
+
- - '='
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 7.2.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,49 +59,35 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '2.1'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '5.14'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '5.14'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: minitest-bang
|
62
|
+
name: rake
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
78
64
|
requirements:
|
79
65
|
- - "~>"
|
80
66
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
67
|
+
version: '13.0'
|
82
68
|
type: :development
|
83
69
|
prerelease: false
|
84
70
|
version_requirements: !ruby/object:Gem::Requirement
|
85
71
|
requirements:
|
86
72
|
- - "~>"
|
87
73
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
74
|
+
version: '13.0'
|
89
75
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
76
|
+
name: rspec
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|
92
78
|
requirements:
|
93
79
|
- - "~>"
|
94
80
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
81
|
+
version: '3.9'
|
96
82
|
type: :development
|
97
83
|
prerelease: false
|
98
84
|
version_requirements: !ruby/object:Gem::Requirement
|
99
85
|
requirements:
|
100
86
|
- - "~>"
|
101
87
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
88
|
+
version: '3.9'
|
103
89
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
90
|
+
name: rspec-nc
|
105
91
|
requirement: !ruby/object:Gem::Requirement
|
106
92
|
requirements:
|
107
93
|
- - "~>"
|
@@ -115,33 +101,19 @@ dependencies:
|
|
115
101
|
- !ruby/object:Gem::Version
|
116
102
|
version: '0.3'
|
117
103
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
104
|
+
name: rspec-rails
|
119
105
|
requirement: !ruby/object:Gem::Requirement
|
120
106
|
requirements:
|
121
107
|
- - "~>"
|
122
108
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
109
|
+
version: '4.0'
|
124
110
|
type: :development
|
125
111
|
prerelease: false
|
126
112
|
version_requirements: !ruby/object:Gem::Requirement
|
127
113
|
requirements:
|
128
114
|
- - "~>"
|
129
115
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: rake
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - "~>"
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '13.0'
|
138
|
-
type: :development
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - "~>"
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '13.0'
|
116
|
+
version: '4.0'
|
145
117
|
- !ruby/object:Gem::Dependency
|
146
118
|
name: simplecov
|
147
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +175,7 @@ homepage: https://github.com/boxt/filta
|
|
203
175
|
licenses:
|
204
176
|
- MIT
|
205
177
|
metadata: {}
|
206
|
-
post_install_message:
|
178
|
+
post_install_message:
|
207
179
|
rdoc_options: []
|
208
180
|
require_paths:
|
209
181
|
- lib
|
@@ -211,15 +183,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
183
|
requirements:
|
212
184
|
- - ">="
|
213
185
|
- !ruby/object:Gem::Version
|
214
|
-
version: '
|
186
|
+
version: '2.5'
|
215
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
188
|
requirements:
|
217
189
|
- - ">="
|
218
190
|
- !ruby/object:Gem::Version
|
219
191
|
version: '0'
|
220
192
|
requirements: []
|
221
|
-
rubygems_version: 3.1.
|
222
|
-
signing_key:
|
193
|
+
rubygems_version: 3.1.4
|
194
|
+
signing_key:
|
223
195
|
specification_version: 4
|
224
196
|
summary: Simple filtering for ActiveRecord
|
225
197
|
test_files: []
|