query_helper 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/query_helper/filter.rb +7 -1
- data/lib/query_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e3a9ded9b05b03a8401a63c12f0fd27eac2cc3626b8378bc403fabcc58f5081
|
4
|
+
data.tar.gz: 62955d32fc7038eac24c71b774219fb6262abae9c9902ed7b7a12541e7a7f696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b169439dec28f51236270c032daaadbc69ddee241a3ee8c9a98abb2a222817844db98489edeefb54134e04718e4d1780b42e1941120a6af3115298e2c01f4bb
|
7
|
+
data.tar.gz: b7ee5f5541b002e5171e9652a0b060a744f58ab56d82dd8053dfa39916265dc7996be1ec3b4bfc2158bce4265e3271439ddb6edfd6a7da7ea4264345168c8c74
|
data/Gemfile.lock
CHANGED
data/lib/query_helper/filter.rb
CHANGED
@@ -81,7 +81,13 @@ class QueryHelper
|
|
81
81
|
|
82
82
|
def modify_comparate
|
83
83
|
# lowercase strings for comparison
|
84
|
-
|
84
|
+
if (criterion.class == String &&
|
85
|
+
criterion.scan(/[a-zA-Z]/).any? &&
|
86
|
+
!["true", "false"].include?(criterion)) ||
|
87
|
+
(criterion.class == Array &&
|
88
|
+
criterion.to_s.scan(/[a-zA-Z]/).any?)
|
89
|
+
@comparate = "lower(#{@comparate})"
|
90
|
+
end
|
85
91
|
end
|
86
92
|
|
87
93
|
def validate_criterion
|
data/lib/query_helper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan McDaniel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|