condition 0.0.22 → 0.0.23

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: cd4ad5d88a883c7a944b79bddf2cc0fb318e5922
4
- data.tar.gz: 43b8c994d97fbaa1567c78c42696524bdc9708d9
3
+ metadata.gz: 6cad7ee79b223ee79d74b13beeb86b2150bb64cb
4
+ data.tar.gz: 442b388404b070bd2c1fdf208ee4485f18a2cc60
5
5
  SHA512:
6
- metadata.gz: 2d1d789909da05bbaa084c0f9d5463b130e05a8eedb396c99985d26d74c4904bbde12a72d1557e9680e9b08941755d864edc38821545e1082533bfc7def8de88
7
- data.tar.gz: 5e8a11ce990e6c6cb22ac73bc177417338eca5f49617495c8fa371bdd32399d3b1c53df1c6e6f32f289f6c01a979bdf9c8a9733950d76a19633426d24fdf8558
6
+ metadata.gz: 02e4b7028a5862dba7afb7136f9ccb3b53712081053a913eb5c6ebff22c00dfdd8c9c85980cfc079924a26596c1f593f3d381382160decd60b81c75e68217575
7
+ data.tar.gz: 232dcc50345ce8c2a0e0ef3d49adb03dc04e8e42725e27b8830256ea5814cc57fbb6cd9bb05f432c506b1a8819c25ec3812236624c27b3b7d890f12e81569591
data/README.md CHANGED
@@ -30,6 +30,9 @@ TODO: Write usage instructions here
30
30
 
31
31
  ## Changes
32
32
 
33
+ 2013-12-25 0.0.23
34
+ support sequel pg_array
35
+
33
36
  2013-12-20 0.0.22
34
37
  add redis dir read specific file
35
38
 
@@ -143,8 +143,10 @@ module Condition
143
143
  end
144
144
  elsif Integer === expected
145
145
  real.to_i == expected
146
+ elsif Array === expected && real.respond_to?("to_a")
147
+ real.to_a == expected
146
148
  else
147
- real.to_s == expected
149
+ real.to_s == expected.to_s
148
150
  end
149
151
  end
150
152
 
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Condition
4
- VERSION = "0.0.22"
4
+ VERSION = "0.0.23"
5
5
  end
Binary file
data/spec/spec_helper.rb CHANGED
@@ -10,6 +10,7 @@ require 'condition/storage/mongo'
10
10
  require 'redis'
11
11
  require 'condition/reader/redis_reader'
12
12
  require 'condition/reader/convert_sheet'
13
+ require "sequel/extensions/pg_array"
13
14
 
14
15
  FILES = File.dirname(__FILE__) + "/files"
15
16
  FILES2 = File.dirname(__FILE__) + "/files2"
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.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - aoyagikouhei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-20 00:00:00.000000000 Z
11
+ date: 2013-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler