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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7160e17f4433fc1a54750c72ea8b88d38b764fc0
4
- data.tar.gz: 7742dcaf5631a32c7c62df249622027f6ba5a3ba
3
+ metadata.gz: 6d4a0cebdd36e6c4981bab4edb93a5d713d2bc82
4
+ data.tar.gz: 5062bf4d8a141fe2767c09971d638819f60cd402
5
5
  SHA512:
6
- metadata.gz: 117c84aff0bf8c6588d45d5e68bd2718f551fab7c49b59bd06bf37e402a1a2d75acd0435ff24463fe0e23605ad746d44b4fe58b6978ff58c5df8ad907fadb24d
7
- data.tar.gz: a428f154d632cc07e5621d4896202c77f7471480501e7aff2b704326361605697a3861dcea13c4b47d8fcdeb18832eb7ceffc6e45edf7dca0f74d6600bbb3838
6
+ metadata.gz: 1b1beb3167e03ec67a760aef3502edb55d854c75ff2ce44bcd5cc95db2844ab51f34d83370fbacba31689ace2f0c9da2120a18aeb6714d3f07866991de1e6c7b
7
+ data.tar.gz: 17723d890d078b0faedc501e28b9ac3c2c6d40981fe8304504b66059b0c91c9410548a1c82ac5a512dd737ad48fb41a38fae5ddb1754831c3f3bd6f10382985c
@@ -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
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Condition
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
@@ -27,5 +27,6 @@ describe Condition do
27
27
 
28
28
  list = DB["SELECT * FROM t_user"].all
29
29
  param.check('list', list)
30
+ param.check('list', [{"user_id" => 1, "user_name" => "aaax"}])
30
31
  end
31
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: condition
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - aoyagikouhei