condition 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/condition/param_item.rb +1 -1
- data/lib/condition/version.rb +1 -1
- data/spec/condition_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d4a0cebdd36e6c4981bab4edb93a5d713d2bc82
|
4
|
+
data.tar.gz: 5062bf4d8a141fe2767c09971d638819f60cd402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b1beb3167e03ec67a760aef3502edb55d854c75ff2ce44bcd5cc95db2844ab51f34d83370fbacba31689ace2f0c9da2120a18aeb6714d3f07866991de1e6c7b
|
7
|
+
data.tar.gz: 17723d890d078b0faedc501e28b9ac3c2c6d40981fe8304504b66059b0c91c9410548a1c82ac5a512dd737ad48fb41a38fae5ddb1754831c3f3bd6f10382985c
|
data/lib/condition/param_item.rb
CHANGED
@@ -79,7 +79,7 @@ module Condition
|
|
79
79
|
targetFlag = true
|
80
80
|
matchFlag = true
|
81
81
|
value.each_pair do |k, v|
|
82
|
-
match = value_match?(v, real[k])
|
82
|
+
match = value_match?(v, nil == real[k] ? real[k.to_s] : real[k])
|
83
83
|
whereKeyFlag = nil != @keys.index(k.to_s)
|
84
84
|
matchFlag = false if !match
|
85
85
|
targetFlag = false if whereKeyFlag && !match
|
data/lib/condition/version.rb
CHANGED
data/spec/condition_spec.rb
CHANGED