condition 0.0.11 → 0.0.12

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: cd8a22e436ad2e33acfe92f3afb8328ccebaeaa7
4
- data.tar.gz: f89110f5e7a98059d08e28268233172818c0d237
3
+ metadata.gz: c30a7ca3149e4fae1d274d94a8fa3883167c2656
4
+ data.tar.gz: e21ea72162e733feae9df607545663f9862d340e
5
5
  SHA512:
6
- metadata.gz: e17ac7ebfef9a3ac6cc5bb21b8cf47e4825727ca2b3ba4c426d1a287ec6d7da48113f76d0f03b4a002fb87cd46b12e579b4cff27e4e95fc4e137bf77337fad17
7
- data.tar.gz: 8e005b131cf535efdbfefec067afc1ee679360dab6f3537c3723b24c8660e5cd85fa132d0a45d0f38ee1333852517dc8617bc389c8bec433ea47153d06d058ba
6
+ metadata.gz: d1c28e69e5c037055478a679b91c07e81a9e7bdcf43059af4f3a7d86ace118de6610e3a3799c8491091444eb07eba45907231258a3cde5fcdcff606111d7fd51
7
+ data.tar.gz: ece3355ba8be03fd06c2e00fe50ef5d746f1932b06d6009bcb69f5b2b1041b0ed0a43a916ff0e6a56740798954c237ea27b2eb6b7792134d693e08e88a72e83c
data/README.md CHANGED
@@ -30,6 +30,10 @@ TODO: Write usage instructions here
30
30
 
31
31
  ## Changes
32
32
 
33
+ 2013-04-26 0.0.12
34
+ modify #EMPTY from [] to ''
35
+ alternate #JSON([])
36
+
33
37
  2013-04-23 0.0.11
34
38
  add storage mongo
35
39
 
@@ -36,7 +36,7 @@ module Condition
36
36
  elsif '#FALSE' == item
37
37
  false
38
38
  elsif '#EMPTY' == item
39
- []
39
+ ''
40
40
  elsif /^#REF\((.+)\)$/ =~ item
41
41
  ary = $1.split(/,/)
42
42
  count = ary.size > 1 ? ary[1].strip.to_i : nil
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Condition
4
- VERSION = "0.0.11"
4
+ VERSION = "0.0.12"
5
5
  end
@@ -34,7 +34,7 @@ describe Condition do
34
34
 
35
35
  it 'ref and json' do
36
36
  param = Condition::Param.new(FILES + '/t_user.ods', 2)
37
- param.check('ary', [{name: "a", val1: {a: "b", t: true, f: false}, val2: [{a: {c: "d"}}], val3: [], val4: nil, val5: {a: [1, 2, 3]}, val6: true, val7: false}])
37
+ param.check('ary', [{name: "a", val1: {a: "b", t: true, f: false}, val2: [{a: {c: "d"}}], val3: [], val4: nil, val5: {a: [1, 2, 3]}, val6: true, val7: false, val8: ''}])
38
38
  end
39
39
 
40
40
  it 'unmatch' do
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: condition
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - aoyagikouhei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-22 00:00:00.000000000 Z
11
+ date: 2013-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler