recurrence 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,42 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- recurrence (1.0.0)
5
- activesupport
4
+ recurrence (1.0.2)
5
+ activesupport (>= 2.3.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- activesupport (3.0.2)
11
- archive-tar-minitar (0.5.2)
12
- columnize (0.3.2)
10
+ activesupport (3.0.3)
13
11
  diff-lcs (1.1.2)
14
- linecache19 (0.5.11)
15
- ruby_core_source (>= 0.1.4)
16
- rspec (2.1.0)
17
- rspec-core (~> 2.1.0)
18
- rspec-expectations (~> 2.1.0)
19
- rspec-mocks (~> 2.1.0)
20
- rspec-core (2.1.0)
21
- rspec-expectations (2.1.0)
12
+ rspec (2.5.0)
13
+ rspec-core (~> 2.5.0)
14
+ rspec-expectations (~> 2.5.0)
15
+ rspec-mocks (~> 2.5.0)
16
+ rspec-core (2.5.1)
17
+ rspec-expectations (2.5.0)
22
18
  diff-lcs (~> 1.1.2)
23
- rspec-mocks (2.1.0)
24
- ruby-debug-base19 (0.11.24)
25
- columnize (>= 0.3.1)
26
- linecache19 (>= 0.5.11)
27
- ruby_core_source (>= 0.1.4)
28
- ruby-debug19 (0.11.6)
29
- columnize (>= 0.3.1)
30
- linecache19 (>= 0.5.11)
31
- ruby-debug-base19 (>= 0.11.19)
32
- ruby_core_source (0.1.4)
33
- archive-tar-minitar (>= 0.5.2)
19
+ rspec-mocks (2.5.0)
34
20
 
35
21
  PLATFORMS
36
22
  ruby
37
23
 
38
24
  DEPENDENCIES
39
- activesupport
40
25
  recurrence!
41
- rspec (>= 2.0.0)
42
- ruby-debug19
26
+ rspec (~> 2.5.0)
@@ -77,3 +77,7 @@
77
77
 
78
78
  * Added :repeat option
79
79
  * Added support for weekday shortcut (sun..sat)
80
+
81
+ == 1.0.2 2011-02-09
82
+
83
+ * Added Ruby 1.8 support
@@ -1,5 +1,5 @@
1
+ require "active_support/core_ext"
1
2
  require "date"
2
- require "active_support/all"
3
3
  require "enumerator"
4
4
 
5
5
  module SimplesIdeias
@@ -3,7 +3,7 @@ module SimplesIdeias
3
3
  module Version
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- PATCH = 1
6
+ PATCH = 2
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
8
8
  end
9
9
  end
@@ -10,16 +10,13 @@ Gem::Specification.new do |s|
10
10
  s.email = ["fnando.vieira@gmail.com"]
11
11
  s.homepage = "http://rubygems.org/gems/recurrence"
12
12
  s.summary = "A simple library to handle recurring events"
13
- s.description = "A simple library to handle recurring events"
14
-
15
- s.rubyforge_project = "recurrence"
13
+ s.description = s.summary
16
14
 
17
15
  s.files = `git ls-files`.split("\n")
18
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
18
  s.require_paths = ["lib"]
21
19
 
22
- s.add_dependency "activesupport"
23
- s.add_development_dependency "rspec", ">= 2.0.0"
24
- s.add_development_dependency "ruby-debug19"
20
+ s.add_dependency "activesupport", ">= 2.3.0"
21
+ s.add_development_dependency "rspec", "~> 2.5.0"
25
22
  end
@@ -1,6 +1,8 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe Recurrence do
4
+ let(:enumerator_constant){ RUBY_VERSION > "1.9.0" ? Enumerator : Enumerable::Enumerator }
5
+
4
6
  it "should require :every option" do
5
7
  expect { recurrence({}) }.to raise_error(ArgumentError)
6
8
  end
@@ -18,11 +20,11 @@ describe Recurrence do
18
20
  end
19
21
 
20
22
  it "should return an enumerator when Recurrence#each is called without a block" do
21
- recurrence(:every => :day).each.should be_instance_of(Enumerator)
23
+ recurrence(:every => :day).each.should be_instance_of(enumerator_constant)
22
24
  end
23
25
 
24
26
  it "should return an enumerator when Recurrence#each! is called without a block" do
25
- recurrence(:every => :day).each!.should be_instance_of(Enumerator)
27
+ recurrence(:every => :day).each!.should be_instance_of(enumerator_constant)
26
28
  end
27
29
 
28
30
  Recurrence::Event::Monthly::INTERVALS.each do |interval|
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurrence
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 1
9
- version: 1.0.1
4
+ prerelease:
5
+ version: 1.0.2
10
6
  platform: ruby
11
7
  authors:
12
8
  - Nando Vieira
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-11-19 00:00:00 -02:00
13
+ date: 2011-02-09 00:00:00 -02:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,9 +21,7 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- version: "0"
24
+ version: 2.3.0
31
25
  type: :runtime
32
26
  version_requirements: *id001
33
27
  - !ruby/object:Gem::Dependency
@@ -36,28 +30,11 @@ dependencies:
36
30
  requirement: &id002 !ruby/object:Gem::Requirement
37
31
  none: false
38
32
  requirements:
39
- - - ">="
33
+ - - ~>
40
34
  - !ruby/object:Gem::Version
41
- segments:
42
- - 2
43
- - 0
44
- - 0
45
- version: 2.0.0
35
+ version: 2.5.0
46
36
  type: :development
47
37
  version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: ruby-debug19
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 0
58
- version: "0"
59
- type: :development
60
- version_requirements: *id003
61
38
  description: A simple library to handle recurring events
62
39
  email:
63
40
  - fnando.vieira@gmail.com
@@ -103,21 +80,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
80
  requirements:
104
81
  - - ">="
105
82
  - !ruby/object:Gem::Version
106
- segments:
107
- - 0
108
83
  version: "0"
109
84
  required_rubygems_version: !ruby/object:Gem::Requirement
110
85
  none: false
111
86
  requirements:
112
87
  - - ">="
113
88
  - !ruby/object:Gem::Version
114
- segments:
115
- - 0
116
89
  version: "0"
117
90
  requirements: []
118
91
 
119
- rubyforge_project: recurrence
120
- rubygems_version: 1.3.7
92
+ rubyforge_project:
93
+ rubygems_version: 1.5.0
121
94
  signing_key:
122
95
  specification_version: 3
123
96
  summary: A simple library to handle recurring events