rubyredrick-ri_cal 0.8.0 → 0.8.1
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/History.txt +3 -0
- data/lib/ri_cal/occurrence_enumerator.rb +1 -1
- data/lib/ri_cal.rb +1 -1
- data/ri_cal.gemspec +2 -2
- data/spec/ri_cal/occurrence_enumerator_spec.rb +8 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
=== 0.8.1 - 18 August 2009
|
2
|
+
Fixes http://rick_denatale.lighthouseapp.com/projects/30941/tickets/21
|
3
|
+
exception-when-count-option-used-to-enumerate-non-recurring-event
|
1
4
|
=== 0.8.0 - 11 August 2009
|
2
5
|
|
3
6
|
Minor Version Bump - There is a small potentially breaking change see section on treatment of X-properties below
|
@@ -77,6 +77,7 @@ module RiCal
|
|
77
77
|
@component = component
|
78
78
|
@rrules = OccurrenceMerger.for(@component, [@component.rrule_property, @component.rdate_property].flatten.compact)
|
79
79
|
@exrules = OccurrenceMerger.for(@component, [@component.exrule_property, @component.exdate_property].flatten.compact)
|
80
|
+
@yielded = 0
|
80
81
|
end
|
81
82
|
|
82
83
|
# return the next exclusion which starts at the same time or after the start time of the occurrence
|
@@ -101,7 +102,6 @@ module RiCal
|
|
101
102
|
end
|
102
103
|
|
103
104
|
def next_occurrence
|
104
|
-
@yielded ||= 0
|
105
105
|
@next_exclusion ||= @exrules.next_occurrence
|
106
106
|
occurrence = nil
|
107
107
|
|
data/lib/ri_cal.rb
CHANGED
@@ -14,7 +14,7 @@ module RiCal
|
|
14
14
|
autoload :OccurrenceEnumerator, "#{my_dir}/ri_cal/occurrence_enumerator.rb"
|
15
15
|
|
16
16
|
# :stopdoc:
|
17
|
-
VERSION = '0.8.
|
17
|
+
VERSION = '0.8.1'
|
18
18
|
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
|
19
19
|
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
|
20
20
|
|
data/ri_cal.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ri_cal}
|
5
|
-
s.version = "0.8.
|
5
|
+
s.version = "0.8.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["author=Rick DeNatale"]
|
9
|
-
s.date = %q{2009-08-
|
9
|
+
s.date = %q{2009-08-18}
|
10
10
|
s.default_executable = %q{ri_cal}
|
11
11
|
s.description = %q{A new Ruby implementation of RFC2445 iCalendar.
|
12
12
|
|
@@ -102,8 +102,15 @@ TEXT
|
|
102
102
|
it "should enumerate no occurrences if dtstart is after :before" do
|
103
103
|
@event.occurrences(:before => @event_start - 1).should be_empty
|
104
104
|
end
|
105
|
+
|
106
|
+
#Bug reported by K.J. Wierenga
|
107
|
+
it "should not raise a NoMethodError when specifying just the :count option" do
|
108
|
+
lambda {
|
109
|
+
@event.occurrences(:count => 1)
|
110
|
+
}.should_not raise_error
|
111
|
+
end
|
112
|
+
end
|
105
113
|
end
|
106
|
-
end
|
107
114
|
|
108
115
|
describe ".each" do
|
109
116
|
describe " for Every Friday the 13th, forever" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyredrick-ri_cal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- author=Rick DeNatale
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-18 00:00:00 -07:00
|
13
13
|
default_executable: ri_cal
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|