sqreen 0.8.01464630418 → 0.8.11465220943
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sqreen/condition_evaluator.rb +10 -4
- data/lib/sqreen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39dacf780c2f8a4e5a3c80ed2295f31bbaa6185a
|
4
|
+
data.tar.gz: 0ed786d7f9437a8daff74d03112b699a0ede8aab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c74afdd056d0c52b3d524454cb0fb25cda1cb55ec5f5696eeab53095df3673b3043535da5b1937a86f8d918094504d7cc6ff24b660a2369e481ca263a045c5a
|
7
|
+
data.tar.gz: 0a5fc6dd89edf3fbcbd45743b1b82f42adc3e96929f5f52df59ed9f54f4c8aff6434d1ed08046f41d99ad79a85e07d668373185d07c2a2577dc4b75f40b06b58
|
@@ -38,10 +38,16 @@ class ConditionEvaluator
|
|
38
38
|
when NilClass
|
39
39
|
false
|
40
40
|
else
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
if hval.respond_to?(:empty?) && hval.empty?
|
42
|
+
false
|
43
|
+
else
|
44
|
+
v = hval.to_s
|
45
|
+
if v.size < min_value_size
|
46
|
+
false
|
47
|
+
else
|
48
|
+
ConditionEvaluator.str_include?(value.to_s, v)
|
49
|
+
end
|
50
|
+
end
|
45
51
|
end
|
46
52
|
end
|
47
53
|
end
|
data/lib/sqreen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqreen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.11465220943
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sqreen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|