condition 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c30a7ca3149e4fae1d274d94a8fa3883167c2656
4
- data.tar.gz: e21ea72162e733feae9df607545663f9862d340e
3
+ metadata.gz: 4657153f428cf1683db472a4eb1ab14522322d61
4
+ data.tar.gz: abbef91663d43d503ed470479b7c950969e699c9
5
5
  SHA512:
6
- metadata.gz: d1c28e69e5c037055478a679b91c07e81a9e7bdcf43059af4f3a7d86ace118de6610e3a3799c8491091444eb07eba45907231258a3cde5fcdcff606111d7fd51
7
- data.tar.gz: ece3355ba8be03fd06c2e00fe50ef5d746f1932b06d6009bcb69f5b2b1041b0ed0a43a916ff0e6a56740798954c237ea27b2eb6b7792134d693e08e88a72e83c
6
+ metadata.gz: b8e4259b345f031e31cfe64ace8ad2a7d20d82c0aa617a7206de7d792359a266e433183cf80a2445e28afb46de8ec0add1221242e792a53c60805828e471a0c6
7
+ data.tar.gz: a9b31f9911b2b43235faf4ff5505fe7cbf4f02c7f630cf8e34e8db7cc3f2a11ddf3f7a48af1a19e7f5b5c2fcad082f95328c2a82ec02dc4023ae97b0612c1203
data/README.md CHANGED
@@ -30,6 +30,9 @@ TODO: Write usage instructions here
30
30
 
31
31
  ## Changes
32
32
 
33
+ 2013-05-22 0.0.13
34
+ modify bug expected is null
35
+
33
36
  2013-04-26 0.0.12
34
37
  modify #EMPTY from [] to ''
35
38
  alternate #JSON([])
data/condition.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'condition'
4
+ require 'condition/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "condition"
@@ -80,7 +80,9 @@ module Condition
80
80
  end
81
81
 
82
82
  def value_match?(expected, real)
83
- if Time === real
83
+ if expected == nil && real != nil || expected != nil && real == nil
84
+ false
85
+ elsif Time === real
84
86
  real == Time.parse(expected)
85
87
  elsif nil == real
86
88
  expected == nil
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Condition
4
- VERSION = "0.0.12"
4
+ VERSION = "0.0.13"
5
5
  end
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.12
4
+ version: 0.0.13
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-26 00:00:00.000000000 Z
11
+ date: 2013-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler