adzap-cronos 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/Rakefile +2 -2
- data/lib/cronos.rb +7 -1
- data/spec/cronos_spec.rb +1 -1
- metadata +2 -1
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ require 'date'
|
|
5
5
|
require 'spec/rake/spectask'
|
6
6
|
|
7
7
|
GEM = "cronos"
|
8
|
-
GEM_VERSION = "0.2.
|
8
|
+
GEM_VERSION = "0.2.2"
|
9
9
|
AUTHOR = "Adam Meehan"
|
10
10
|
EMAIL = "adam.meehan@gmail.com"
|
11
11
|
HOMEPAGE = "http://github.com/adzap/cronos"
|
@@ -16,7 +16,7 @@ spec = Gem::Specification.new do |s|
|
|
16
16
|
s.version = GEM_VERSION
|
17
17
|
s.platform = Gem::Platform::RUBY
|
18
18
|
s.has_rdoc = true
|
19
|
-
s.extra_rdoc_files = ["README.rdoc", "LICENSE", 'TODO']
|
19
|
+
s.extra_rdoc_files = ["README.rdoc", "LICENSE", 'TODO', "CHANGELOG"]
|
20
20
|
s.summary = SUMMARY
|
21
21
|
s.description = s.summary
|
22
22
|
s.author = AUTHOR
|
data/lib/cronos.rb
CHANGED
@@ -138,7 +138,13 @@ module Cronos
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def to_hash
|
141
|
-
{
|
141
|
+
{
|
142
|
+
:minute => "#{min || '*'}",
|
143
|
+
:hour => "#{hour || '*'}",
|
144
|
+
:day => "#{day || '*'}",
|
145
|
+
:month => "#{month || '*'}",
|
146
|
+
:weekday => "#{dow || '*'}"
|
147
|
+
}
|
142
148
|
end
|
143
149
|
|
144
150
|
private
|
data/spec/cronos_spec.rb
CHANGED
@@ -7,7 +7,7 @@ describe Cronos::Interval do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
it "should return hash of values from to_hash method" do
|
10
|
-
interval.to_hash.should == {:minute => '
|
10
|
+
interval.at(2.01).on_the('3rd').of(:april).to_hash.should == {:minute => '1', :hour => '2', :day => '3', :month => '4', :weekday => '*'}
|
11
11
|
end
|
12
12
|
|
13
13
|
describe "at method" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adzap-cronos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Meehan
|
@@ -23,6 +23,7 @@ extra_rdoc_files:
|
|
23
23
|
- README.rdoc
|
24
24
|
- LICENSE
|
25
25
|
- TODO
|
26
|
+
- CHANGELOG
|
26
27
|
files:
|
27
28
|
- LICENSE
|
28
29
|
- README.rdoc
|