ice_t 0.0.2 → 0.0.3

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: d921f34d4e4dfcaa5f9666049280c7bdbff7bca9
4
- data.tar.gz: 02e10bdf91a25889e2566c25bd650266e9074cd1
3
+ metadata.gz: e836e34bd0669110cda706f4a8d0d378768fcabb
4
+ data.tar.gz: 8e95eb9dab2a959d6ad93f31bc749a28e0586633
5
5
  SHA512:
6
- metadata.gz: db50642a0de31d232f8454661295366321282b51e9e3028d632fe8826eb36fda15792b6a19955363a3b51a91db725c8c741167947458c3b3ae343e1bfcc6b4df
7
- data.tar.gz: eca8f57b0e554e992cffcb0b355ab9ebea77196668b6c98143309c18fd4532e0fba41e60ee1d76353d9ba94310be3b62aa47cc2f6d622fb61e3aedca61992d41
6
+ metadata.gz: fe6cfe556bd2a5f8361fd9ebcc288c3a4a5984e19647f754ec590999a08ea666c3a0570b59b992e054d1575d823cd653db4aff55caec1cc6776939941f695a06
7
+ data.tar.gz: baa10bc4ffb1269360a6ffddfc1f2642300badb8b17ff1ebaecbd60b85f4cf5cb75a0cad9a8111c9ec5da5461ff09e1f195fd013dcd46ce2ce3cbe883fd95c18
data/lib/ice_t/rule.rb CHANGED
@@ -5,6 +5,7 @@ end
5
5
 
6
6
  require 'ice_t/rule/base'
7
7
  require 'ice_t/rule/repository'
8
+ require 'ice_t/rule/secondly'
8
9
  require 'ice_t/rule/minutely'
9
10
  require 'ice_t/rule/hourly'
10
11
  require 'ice_t/rule/daily'
@@ -0,0 +1,10 @@
1
+ module IceT
2
+ module Rule
3
+ class Secondly < Base
4
+ class << self
5
+ def to_i; 1.second.to_i end
6
+ def unit; :seconds end
7
+ end
8
+ end
9
+ end
10
+ end
data/lib/ice_t/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module IceT
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -0,0 +1,6 @@
1
+ require 'spec_helper'
2
+
3
+ describe IceT::Rule::Secondly do
4
+ let(:klass) { IceT::Rule::Secondly }
5
+ it_behaves_like "a rule"
6
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ice_t
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nennemann
@@ -135,6 +135,7 @@ files:
135
135
  - lib/ice_t/rule/minutely.rb
136
136
  - lib/ice_t/rule/monthly.rb
137
137
  - lib/ice_t/rule/repository.rb
138
+ - lib/ice_t/rule/secondly.rb
138
139
  - lib/ice_t/rule/yearly.rb
139
140
  - lib/ice_t/schedule.rb
140
141
  - lib/ice_t/time_helper.rb
@@ -147,6 +148,7 @@ files:
147
148
  - spec/rules/minutely_rule_spec.rb
148
149
  - spec/rules/monthly_rule_spec.rb
149
150
  - spec/rules/rules_repository_spec.rb
151
+ - spec/rules/secondly_rule_spec.rb
150
152
  - spec/rules/yearly_rule_spec.rb
151
153
  - spec/schedule_spec.rb
152
154
  - spec/spec_helper.rb
@@ -183,6 +185,7 @@ test_files:
183
185
  - spec/rules/minutely_rule_spec.rb
184
186
  - spec/rules/monthly_rule_spec.rb
185
187
  - spec/rules/rules_repository_spec.rb
188
+ - spec/rules/secondly_rule_spec.rb
186
189
  - spec/rules/yearly_rule_spec.rb
187
190
  - spec/schedule_spec.rb
188
191
  - spec/spec_helper.rb