condition 0.0.3 → 0.0.4

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: 56f8176e26996112edd1da8178bdbdc10ea723e5
4
- data.tar.gz: 87d8a3b31df12240ecbb2d6155d311e7629e175e
3
+ metadata.gz: 7160e17f4433fc1a54750c72ea8b88d38b764fc0
4
+ data.tar.gz: 7742dcaf5631a32c7c62df249622027f6ba5a3ba
5
5
  SHA512:
6
- metadata.gz: 4c58d2270aa657f59be34cab672c0edf05a8d7399116b969c87d0f2abcff24f8e5ff2c349c6b3686e5272cb9fc183df72233180ac2d105158f7da0d1ca3180b7
7
- data.tar.gz: f5e00fe61661aeace89ab6dc7ac4ef9ec655b782dc86c812afa2be8f13f53708e8e048f860cb721bf99612de1a3f4d8c9e19caa1e5507b595952c52726ae11d7
6
+ metadata.gz: 117c84aff0bf8c6588d45d5e68bd2718f551fab7c49b59bd06bf37e402a1a2d75acd0435ff24463fe0e23605ad746d44b4fe58b6978ff58c5df8ad907fadb24d
7
+ data.tar.gz: a428f154d632cc07e5621d4896202c77f7471480501e7aff2b704326361605697a3861dcea13c4b47d8fcdeb18832eb7ceffc6e45edf7dca0f74d6600bbb3838
@@ -69,6 +69,7 @@ module Condition
69
69
  @item_map.each_value do |item|
70
70
  item.delete(db)
71
71
  item.insert(db, default)
72
+ item.exec_after(db)
72
73
  end
73
74
  end
74
75
 
@@ -59,6 +59,12 @@ module Condition
59
59
  end
60
60
  end
61
61
 
62
+ def exec_after(db)
63
+ @keys.each do |key|
64
+ db.run key
65
+ end
66
+ end
67
+
62
68
  def value_match?(expected, real)
63
69
  if Time === real
64
70
  real == Time.parse(expected)
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Condition
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
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.3
4
+ version: 0.0.4
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-15 00:00:00.000000000 Z
11
+ date: 2013-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler