adzap-cronos 0.2.1 → 0.2.2

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.
data/CHANGELOG CHANGED
@@ -1,2 +1,5 @@
1
+ == 0.2.2 2009-01-17
2
+ - fix to ensure string values in hash from to_hash method
3
+
1
4
  == 0.2.1 2009-01-17
2
5
  - added to_hash method with CronEdit compatible key names
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.1"
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
- {:minute => min || '*', :hour => hour || '*', :day => day || '*', :month => month || '*', :weekday => dow || '*'}
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 => '*', :hour => '*', :day => '*', :month => '*', :weekday => '*'}
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.1
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