ri_cal 0.6.1 → 0.6.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/History.txt +3 -0
- data/lib/ri_cal.rb +1 -1
- data/lib/ri_cal/component.rb +1 -1
- data/lib/ri_cal/component/calendar.rb +2 -2
- data/lib/ri_cal/component/t_z_info_timezone.rb +1 -1
- data/ri_cal.gemspec +2 -2
- data/spec/ri_cal/component/event_spec.rb +17 -0
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
=== 0.6.2 - 11 June 2009
|
2
|
+
* Fixed http://rick_denatale.lighthouseapp.com/projects/30941-ri_cal/tickets/12
|
3
|
+
export-failure-for-unbounded-tzinfo-timezone
|
1
4
|
=== 0.6.1 - 6 June 2009
|
2
5
|
* Fixed problem with file which loads activesupport for the rake spec:with_activesupport task, it now
|
3
6
|
requires >=2.2 instead of <=2.2 - Thanks to Paul Scott-Murphy for finding this.
|
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.6.
|
17
|
+
VERSION = '0.6.2'
|
18
18
|
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
|
19
19
|
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
|
20
20
|
|
data/lib/ri_cal/component.rb
CHANGED
@@ -223,7 +223,7 @@ module RiCal
|
|
223
223
|
export_stream.puts("BEGIN:#{entity_name}")
|
224
224
|
export_properties_to(export_stream)
|
225
225
|
export_x_properties_to(export_stream)
|
226
|
-
subcomponents.values do |sub|
|
226
|
+
subcomponents.values.each do |sub|
|
227
227
|
export_subcomponent_to(export_subcomponent_to, sub)
|
228
228
|
end
|
229
229
|
export_stream.puts("END:#{entity_name}")
|
@@ -216,8 +216,6 @@ module RiCal
|
|
216
216
|
def export(to=nil)
|
217
217
|
export_stream = FoldingStream.new(to)
|
218
218
|
export_stream.puts("BEGIN:VCALENDAR")
|
219
|
-
#TODO: right now I'm assuming that all timezones are internal what happens when we export
|
220
|
-
# an imported calendar.
|
221
219
|
export_properties_to(export_stream)
|
222
220
|
export_x_properties_to(export_stream)
|
223
221
|
export_required_timezones(export_stream)
|
@@ -232,6 +230,8 @@ module RiCal
|
|
232
230
|
export_stream.string
|
233
231
|
end
|
234
232
|
end
|
233
|
+
|
234
|
+
alias_method :export_to, :export
|
235
235
|
|
236
236
|
end
|
237
237
|
end
|
@@ -115,7 +115,7 @@ class RiCal::Component::TZInfoTimezone < RiCal::Component::Timezone
|
|
115
115
|
period = tzinfo_timezone.period_for_utc(period.utc_start - 1)
|
116
116
|
while period && period.utc_start < utc_end
|
117
117
|
periods.add_period(period)
|
118
|
-
period = tzinfo_timezone.period_for_utc(period.utc_end + 1)
|
118
|
+
period = period.utc_end && tzinfo_timezone.period_for_utc(period.utc_end + 1)
|
119
119
|
end
|
120
120
|
periods.export_to(export_stream)
|
121
121
|
export_stream.puts "END:VTIMEZONE\n"
|
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.6.
|
5
|
+
s.version = "0.6.2"
|
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-06-
|
9
|
+
s.date = %q{2009-06-11}
|
10
10
|
s.default_executable = %q{ri_cal}
|
11
11
|
s.description = %q{A new Ruby implementation of RFC2445 iCalendar.
|
12
12
|
|
@@ -3,6 +3,23 @@
|
|
3
3
|
require File.join(File.dirname(__FILE__), %w[.. .. spec_helper])
|
4
4
|
|
5
5
|
describe RiCal::Component::Event do
|
6
|
+
|
7
|
+
context "bug report from Noboyuki Tomizawa" do
|
8
|
+
before(:each) do
|
9
|
+
|
10
|
+
@it = RiCal.Calendar do |cal|
|
11
|
+
cal.event do |event|
|
12
|
+
event.description = "test"
|
13
|
+
event.dtstart = "TZID=Asia/Tokyo:20090530T123000"
|
14
|
+
event.dtend = "TZID=Asia/Tokyo:20090530T123001"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should not fail" do
|
20
|
+
lambda {@it.export}.should_not raise_error
|
21
|
+
end
|
22
|
+
end
|
6
23
|
|
7
24
|
context "rdate property methods" do
|
8
25
|
before(:each) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ri_cal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
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-06-
|
12
|
+
date: 2009-06-11 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|