will_filter 5.1.1 → 5.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/will_filter/containers/list.rb +2 -2
- data/lib/will_filter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e6da9a06bb83ecec49da0e971e67448213745af95eec30225c6ae5b21e2ae746
|
4
|
+
data.tar.gz: f81919e825fb14964d32d0e0f1af4dc8ff02ee816355acc7cbc64bc52e56e711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b7295175986bcaa7f36dc84e5f4b5e8bcb2133d9143a9b2f28d52654c7ea6b346df5d9e7771a0e376008c89cc0c4b5d5c0d0ae36f827842ee6563f0e9ff6be7
|
7
|
+
data.tar.gz: 38a58866786f09141db49b65cb452bac409a0fd9f48053007272f13527ea745f29347537e64217263c351c6356b700fb278beada72ee7688025006c445ac0464
|
@@ -55,8 +55,8 @@ module WillFilter
|
|
55
55
|
|
56
56
|
def sql_condition
|
57
57
|
sanitized_value = value.to_s.downcase
|
58
|
-
return ["
|
59
|
-
return ["
|
58
|
+
return [" #{condition.full_key} = ? ", sanitized_value] if operator == :is
|
59
|
+
return [" #{condition.full_key} <> ? ", sanitized_value] if operator == :is_not
|
60
60
|
return [" lower(#{condition.full_key}) like ? ", "%#{sanitized_value}%"] if operator == :contains
|
61
61
|
return [" lower(#{condition.full_key}) not like ? ", "%#{sanitized_value}%"] if operator == :does_not_cotain
|
62
62
|
end
|
data/lib/will_filter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Berkovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
267
|
version: '0'
|
268
268
|
requirements: []
|
269
269
|
rubyforge_project:
|
270
|
-
rubygems_version: 2.
|
270
|
+
rubygems_version: 2.7.1
|
271
271
|
signing_key:
|
272
272
|
specification_version: 4
|
273
273
|
summary: A filtering engine plugin for Rails 3.1
|