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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9fe8cebd409b2e307d3720d1073ea9d6bd5f79d2
4
- data.tar.gz: ae57f12d3fff3f71bfeb92fb6c2117e4fe314878
2
+ SHA256:
3
+ metadata.gz: e6da9a06bb83ecec49da0e971e67448213745af95eec30225c6ae5b21e2ae746
4
+ data.tar.gz: f81919e825fb14964d32d0e0f1af4dc8ff02ee816355acc7cbc64bc52e56e711
5
5
  SHA512:
6
- metadata.gz: 11dc83721d03a91f5c5c5b271850fd0714d96cf7b7c662969d3fd4819603cdcda8c3b64535d7229a3ef9e0a781e06bed62afa1be3ff946f43a2e2fe214b4a264
7
- data.tar.gz: f266ee2c9b40ce0239792a014cc556237e687c8c6868ce31d10a8b15ca1ba43c5d187041ed2eec7e739ca1adfbc75cdd16cf8f6a89ce377174588e92dec823bf
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 [" lower(#{condition.full_key}) = ? ", sanitized_value] if operator == :is
59
- return [" lower(#{condition.full_key}) <> ? ", sanitized_value] if operator == :is_not
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
@@ -31,5 +31,5 @@
31
31
  #++
32
32
 
33
33
  module WillFilter
34
- VERSION = '5.1.1'
34
+ VERSION = '5.1.2'
35
35
  end
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.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-07 00:00:00.000000000 Z
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.6.11
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