rubyredrick-ri_cal 0.7.2 → 0.7.4
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 +9 -2
- data/Manifest.txt +1 -0
- data/README.txt +2 -0
- data/component_attributes/component_property_defs.yml +1 -1
- data/lib/ri_cal.rb +1 -1
- data/lib/ri_cal/component.rb +1 -1
- data/lib/ri_cal/properties/alarm.rb +5 -5
- data/ri_cal.gemspec +4 -5
- data/spec/ri_cal/bugreports_spec.rb +96 -0
- data/tasks/ri_cal.rake +2 -0
- metadata +4 -3
data/History.txt
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
-
=== 0.7.
|
1
|
+
=== 0.7.4 - 21 July 2009
|
2
|
+
* fixed http://rick_denatale.lighthouseapp.com/projects/30941/tickets/17
|
3
|
+
Problem with Alarm trigger property value
|
4
|
+
* fixed http://rick_denatale.lighthouseapp.com/projects/30941/tickets/18
|
5
|
+
Problem with exporting components with sub-components
|
6
|
+
=== 0.7.3 - 13 July 2009
|
7
|
+
Added pointers to rdoc in README
|
8
|
+
=== 0.7.2 - 6 July 2009
|
2
9
|
updated to use newest versions of newgem and hoe, in order to make run-code-run work again
|
3
|
-
=== 0.7.1 - 6 July
|
10
|
+
=== 0.7.1 - 6 July 2009
|
4
11
|
* fixed http://rick_denatale.lighthouseapp.com/projects/30941/tickets/15
|
5
12
|
duration validation issues
|
6
13
|
* fixed http://rick_denatale.lighthouseapp.com/projects/30941/tickets/16
|
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -19,6 +19,8 @@ A Google group for discussion of this library has been set up http://groups.goog
|
|
19
19
|
|
20
20
|
== SYNOPSIS:
|
21
21
|
|
22
|
+
For the full RDOC see http://ri-cal.rubyforge.org/rdoc/
|
23
|
+
|
22
24
|
=== Components and properties
|
23
25
|
|
24
26
|
An iCalendar calendar comprises subcomponents like Events, Timezones and Todos. Each component may
|
@@ -156,7 +156,7 @@ repeat:
|
|
156
156
|
rfc_ref: '4.8.6.2 p 126-127'
|
157
157
|
trigger:
|
158
158
|
purpose: This property specifies when an alarm will trigger.
|
159
|
-
type:
|
159
|
+
type: Duration
|
160
160
|
rfc_ref: '4.8.6.3 p 127-129'
|
161
161
|
created:
|
162
162
|
purpose: This property specifies the date and time that the calendar information was created by teh calendar user agent in the calendar store.
|
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.7.
|
17
|
+
VERSION = '0.7.4'
|
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
@@ -224,7 +224,7 @@ module RiCal
|
|
224
224
|
export_properties_to(export_stream)
|
225
225
|
export_x_properties_to(export_stream)
|
226
226
|
subcomponents.values.each do |sub|
|
227
|
-
export_subcomponent_to(
|
227
|
+
export_subcomponent_to(export_stream, sub)
|
228
228
|
end
|
229
229
|
export_stream.puts("END:#{entity_name}")
|
230
230
|
end
|
@@ -74,7 +74,7 @@ module RiCal
|
|
74
74
|
|
75
75
|
|
76
76
|
# return the the TRIGGER property
|
77
|
-
# which will be an instances of RiCal::
|
77
|
+
# which will be an instances of RiCal::PropertyValueDuration
|
78
78
|
#
|
79
79
|
# [purpose (from RFC 2445)]
|
80
80
|
# This property specifies when an alarm will trigger.
|
@@ -85,24 +85,24 @@ module RiCal
|
|
85
85
|
end
|
86
86
|
|
87
87
|
# set the TRIGGER property
|
88
|
-
# property value should be an instance of RiCal::
|
88
|
+
# property value should be an instance of RiCal::PropertyValueDuration
|
89
89
|
def trigger_property=(property_value)
|
90
90
|
@trigger_property = property_value
|
91
91
|
end
|
92
92
|
|
93
93
|
# set the value of the TRIGGER property
|
94
94
|
def trigger=(ruby_value)
|
95
|
-
self.trigger_property= RiCal::PropertyValue::
|
95
|
+
self.trigger_property= RiCal::PropertyValue::Duration.convert(self, ruby_value)
|
96
96
|
end
|
97
97
|
|
98
98
|
# return the value of the TRIGGER property
|
99
|
-
# which will be an instance of
|
99
|
+
# which will be an instance of Duration
|
100
100
|
def trigger
|
101
101
|
trigger_property ? trigger_property.ruby_value : nil
|
102
102
|
end
|
103
103
|
|
104
104
|
def trigger_property_from_string(line) # :nodoc:
|
105
|
-
@trigger_property = RiCal::PropertyValue::
|
105
|
+
@trigger_property = RiCal::PropertyValue::Duration.new(self, line)
|
106
106
|
end
|
107
107
|
|
108
108
|
|
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.7.
|
5
|
+
s.version = "0.7.4"
|
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-07-
|
9
|
+
s.date = %q{2009-07-21}
|
10
10
|
s.default_executable = %q{ri_cal}
|
11
11
|
s.description = %q{A new Ruby implementation of RFC2445 iCalendar.
|
12
12
|
|
@@ -19,13 +19,12 @@ A Google group for discussion of this library has been set up http://groups.goog
|
|
19
19
|
s.email = ["rick.denatale@gmail.com"]
|
20
20
|
s.executables = ["ri_cal"]
|
21
21
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt", "copyrights.txt", "docs/draft-ietf-calsify-2446bis-08.txt", "docs/draft-ietf-calsify-rfc2445bis-09.txt", "docs/incrementers.txt"]
|
22
|
-
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/ri_cal", "component_attributes/alarm.yml", "component_attributes/calendar.yml", "component_attributes/component_property_defs.yml", "component_attributes/event.yml", "component_attributes/freebusy.yml", "component_attributes/journal.yml", "component_attributes/timezone.yml", "component_attributes/timezone_period.yml", "component_attributes/todo.yml", "copyrights.txt", "docs/draft-ietf-calsify-2446bis-08.txt", "docs/draft-ietf-calsify-rfc2445bis-09.txt", "docs/incrementers.txt", "docs/rfc2445.pdf", "lib/ri_cal.rb", "lib/ri_cal/component.rb", "lib/ri_cal/component/alarm.rb", "lib/ri_cal/component/calendar.rb", "lib/ri_cal/component/event.rb", "lib/ri_cal/component/freebusy.rb", "lib/ri_cal/component/journal.rb", "lib/ri_cal/component/t_z_info_timezone.rb", "lib/ri_cal/component/timezone.rb", "lib/ri_cal/component/timezone/daylight_period.rb", "lib/ri_cal/component/timezone/standard_period.rb", "lib/ri_cal/component/timezone/timezone_period.rb", "lib/ri_cal/component/todo.rb", "lib/ri_cal/core_extensions.rb", "lib/ri_cal/core_extensions/array.rb", "lib/ri_cal/core_extensions/array/conversions.rb", "lib/ri_cal/core_extensions/date.rb", "lib/ri_cal/core_extensions/date/conversions.rb", "lib/ri_cal/core_extensions/date_time.rb", "lib/ri_cal/core_extensions/date_time/conversions.rb", "lib/ri_cal/core_extensions/object.rb", "lib/ri_cal/core_extensions/object/conversions.rb", "lib/ri_cal/core_extensions/string.rb", "lib/ri_cal/core_extensions/string/conversions.rb", "lib/ri_cal/core_extensions/time.rb", "lib/ri_cal/core_extensions/time/calculations.rb", "lib/ri_cal/core_extensions/time/conversions.rb", "lib/ri_cal/core_extensions/time/tzid_access.rb", "lib/ri_cal/core_extensions/time/week_day_predicates.rb", "lib/ri_cal/fast_date_time.rb", "lib/ri_cal/floating_timezone.rb", "lib/ri_cal/invalid_property_value.rb", "lib/ri_cal/invalid_timezone_identifer.rb", "lib/ri_cal/occurrence_enumerator.rb", "lib/ri_cal/occurrence_period.rb", "lib/ri_cal/parser.rb", "lib/ri_cal/properties/alarm.rb", "lib/ri_cal/properties/calendar.rb", "lib/ri_cal/properties/event.rb", "lib/ri_cal/properties/freebusy.rb", "lib/ri_cal/properties/journal.rb", "lib/ri_cal/properties/timezone.rb", "lib/ri_cal/properties/timezone_period.rb", "lib/ri_cal/properties/todo.rb", "lib/ri_cal/property_value.rb", "lib/ri_cal/property_value/array.rb", "lib/ri_cal/property_value/cal_address.rb", "lib/ri_cal/property_value/date.rb", "lib/ri_cal/property_value/date_time.rb", "lib/ri_cal/property_value/date_time/additive_methods.rb", "lib/ri_cal/property_value/date_time/time_machine.rb", "lib/ri_cal/property_value/date_time/timezone_support.rb", "lib/ri_cal/property_value/duration.rb", "lib/ri_cal/property_value/geo.rb", "lib/ri_cal/property_value/integer.rb", "lib/ri_cal/property_value/occurrence_list.rb", "lib/ri_cal/property_value/period.rb", "lib/ri_cal/property_value/recurrence_rule.rb", "lib/ri_cal/property_value/recurrence_rule/enumeration_support_methods.rb", "lib/ri_cal/property_value/recurrence_rule/enumerator.rb", "lib/ri_cal/property_value/recurrence_rule/initialization_methods.rb", "lib/ri_cal/property_value/recurrence_rule/negative_setpos_enumerator.rb", "lib/ri_cal/property_value/recurrence_rule/numbered_span.rb", "lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb", "lib/ri_cal/property_value/recurrence_rule/recurring_day.rb", "lib/ri_cal/property_value/recurrence_rule/recurring_month_day.rb", "lib/ri_cal/property_value/recurrence_rule/recurring_numbered_week.rb", "lib/ri_cal/property_value/recurrence_rule/recurring_year_day.rb", "lib/ri_cal/property_value/recurrence_rule/validations.rb", "lib/ri_cal/property_value/text.rb", "lib/ri_cal/property_value/uri.rb", "lib/ri_cal/property_value/utc_offset.rb", "lib/ri_cal/required_timezones.rb", "performance/paris_eastern/subject.rb", "performance/penultimate_weekday/subject.rb", "performance/psm_big_enum/ical.ics", "performance/psm_big_enum/subject.rb", "performance/utah_cycling/subject.rb", "ri_cal.gemspec", "sample_ical_files/from_ical_dot_app/test1.ics", "script/benchmark_subject", "script/console", "script/destroy", "script/generate", "script/profile_subject", "script/txt2html", "spec/ri_cal/component/alarm_spec.rb", "spec/ri_cal/component/calendar_spec.rb", "spec/ri_cal/component/event_spec.rb", "spec/ri_cal/component/freebusy_spec.rb", "spec/ri_cal/component/journal_spec.rb", "spec/ri_cal/component/t_z_info_timezone_spec.rb", "spec/ri_cal/component/timezone_spec.rb", "spec/ri_cal/component/todo_spec.rb", "spec/ri_cal/component_spec.rb", "spec/ri_cal/core_extensions/string/conversions_spec.rb", "spec/ri_cal/core_extensions/time/calculations_spec.rb", "spec/ri_cal/core_extensions/time/week_day_predicates_spec.rb", "spec/ri_cal/fast_date_time_spec.rb", "spec/ri_cal/occurrence_enumerator_spec.rb", "spec/ri_cal/parser_spec.rb", "spec/ri_cal/property_value/date_spec.rb", "spec/ri_cal/property_value/date_time_spec.rb", "spec/ri_cal/property_value/duration_spec.rb", "spec/ri_cal/property_value/occurrence_list_spec.rb", "spec/ri_cal/property_value/period_spec.rb", "spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb", "spec/ri_cal/property_value/recurrence_rule_spec.rb", "spec/ri_cal/property_value/text_spec.rb", "spec/ri_cal/property_value/utc_offset_spec.rb", "spec/ri_cal/property_value_spec.rb", "spec/ri_cal/required_timezones_spec.rb", "spec/ri_cal_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/gem_loader/load_active_support.rb", "tasks/gem_loader/load_tzinfo_gem.rb", "tasks/ri_cal.rake", "tasks/spec.rake"]
|
23
|
-
s.has_rdoc = true
|
22
|
+
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/ri_cal", "component_attributes/alarm.yml", "component_attributes/calendar.yml", "component_attributes/component_property_defs.yml", "component_attributes/event.yml", "component_attributes/freebusy.yml", "component_attributes/journal.yml", "component_attributes/timezone.yml", "component_attributes/timezone_period.yml", "component_attributes/todo.yml", "copyrights.txt", "docs/draft-ietf-calsify-2446bis-08.txt", "docs/draft-ietf-calsify-rfc2445bis-09.txt", "docs/incrementers.txt", "docs/rfc2445.pdf", "lib/ri_cal.rb", "lib/ri_cal/component.rb", "lib/ri_cal/component/alarm.rb", "lib/ri_cal/component/calendar.rb", "lib/ri_cal/component/event.rb", "lib/ri_cal/component/freebusy.rb", "lib/ri_cal/component/journal.rb", "lib/ri_cal/component/t_z_info_timezone.rb", "lib/ri_cal/component/timezone.rb", "lib/ri_cal/component/timezone/daylight_period.rb", "lib/ri_cal/component/timezone/standard_period.rb", "lib/ri_cal/component/timezone/timezone_period.rb", "lib/ri_cal/component/todo.rb", "lib/ri_cal/core_extensions.rb", "lib/ri_cal/core_extensions/array.rb", "lib/ri_cal/core_extensions/array/conversions.rb", "lib/ri_cal/core_extensions/date.rb", "lib/ri_cal/core_extensions/date/conversions.rb", "lib/ri_cal/core_extensions/date_time.rb", "lib/ri_cal/core_extensions/date_time/conversions.rb", "lib/ri_cal/core_extensions/object.rb", "lib/ri_cal/core_extensions/object/conversions.rb", "lib/ri_cal/core_extensions/string.rb", "lib/ri_cal/core_extensions/string/conversions.rb", "lib/ri_cal/core_extensions/time.rb", "lib/ri_cal/core_extensions/time/calculations.rb", "lib/ri_cal/core_extensions/time/conversions.rb", "lib/ri_cal/core_extensions/time/tzid_access.rb", "lib/ri_cal/core_extensions/time/week_day_predicates.rb", "lib/ri_cal/fast_date_time.rb", "lib/ri_cal/floating_timezone.rb", "lib/ri_cal/invalid_property_value.rb", "lib/ri_cal/invalid_timezone_identifer.rb", "lib/ri_cal/occurrence_enumerator.rb", "lib/ri_cal/occurrence_period.rb", "lib/ri_cal/parser.rb", "lib/ri_cal/properties/alarm.rb", "lib/ri_cal/properties/calendar.rb", "lib/ri_cal/properties/event.rb", "lib/ri_cal/properties/freebusy.rb", "lib/ri_cal/properties/journal.rb", "lib/ri_cal/properties/timezone.rb", "lib/ri_cal/properties/timezone_period.rb", "lib/ri_cal/properties/todo.rb", "lib/ri_cal/property_value.rb", "lib/ri_cal/property_value/array.rb", "lib/ri_cal/property_value/cal_address.rb", "lib/ri_cal/property_value/date.rb", "lib/ri_cal/property_value/date_time.rb", "lib/ri_cal/property_value/date_time/additive_methods.rb", "lib/ri_cal/property_value/date_time/time_machine.rb", "lib/ri_cal/property_value/date_time/timezone_support.rb", "lib/ri_cal/property_value/duration.rb", "lib/ri_cal/property_value/geo.rb", "lib/ri_cal/property_value/integer.rb", "lib/ri_cal/property_value/occurrence_list.rb", "lib/ri_cal/property_value/period.rb", "lib/ri_cal/property_value/recurrence_rule.rb", "lib/ri_cal/property_value/recurrence_rule/enumeration_support_methods.rb", "lib/ri_cal/property_value/recurrence_rule/enumerator.rb", "lib/ri_cal/property_value/recurrence_rule/initialization_methods.rb", "lib/ri_cal/property_value/recurrence_rule/negative_setpos_enumerator.rb", "lib/ri_cal/property_value/recurrence_rule/numbered_span.rb", "lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb", "lib/ri_cal/property_value/recurrence_rule/recurring_day.rb", "lib/ri_cal/property_value/recurrence_rule/recurring_month_day.rb", "lib/ri_cal/property_value/recurrence_rule/recurring_numbered_week.rb", "lib/ri_cal/property_value/recurrence_rule/recurring_year_day.rb", "lib/ri_cal/property_value/recurrence_rule/validations.rb", "lib/ri_cal/property_value/text.rb", "lib/ri_cal/property_value/uri.rb", "lib/ri_cal/property_value/utc_offset.rb", "lib/ri_cal/required_timezones.rb", "performance/paris_eastern/subject.rb", "performance/penultimate_weekday/subject.rb", "performance/psm_big_enum/ical.ics", "performance/psm_big_enum/subject.rb", "performance/utah_cycling/subject.rb", "ri_cal.gemspec", "sample_ical_files/from_ical_dot_app/test1.ics", "script/benchmark_subject", "script/console", "script/destroy", "script/generate", "script/profile_subject", "script/txt2html", "spec/ri_cal/bugreports_spec.rb", "spec/ri_cal/component/alarm_spec.rb", "spec/ri_cal/component/calendar_spec.rb", "spec/ri_cal/component/event_spec.rb", "spec/ri_cal/component/freebusy_spec.rb", "spec/ri_cal/component/journal_spec.rb", "spec/ri_cal/component/t_z_info_timezone_spec.rb", "spec/ri_cal/component/timezone_spec.rb", "spec/ri_cal/component/todo_spec.rb", "spec/ri_cal/component_spec.rb", "spec/ri_cal/core_extensions/string/conversions_spec.rb", "spec/ri_cal/core_extensions/time/calculations_spec.rb", "spec/ri_cal/core_extensions/time/week_day_predicates_spec.rb", "spec/ri_cal/fast_date_time_spec.rb", "spec/ri_cal/occurrence_enumerator_spec.rb", "spec/ri_cal/parser_spec.rb", "spec/ri_cal/property_value/date_spec.rb", "spec/ri_cal/property_value/date_time_spec.rb", "spec/ri_cal/property_value/duration_spec.rb", "spec/ri_cal/property_value/occurrence_list_spec.rb", "spec/ri_cal/property_value/period_spec.rb", "spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb", "spec/ri_cal/property_value/recurrence_rule_spec.rb", "spec/ri_cal/property_value/text_spec.rb", "spec/ri_cal/property_value/utc_offset_spec.rb", "spec/ri_cal/property_value_spec.rb", "spec/ri_cal/required_timezones_spec.rb", "spec/ri_cal_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/gem_loader/load_active_support.rb", "tasks/gem_loader/load_tzinfo_gem.rb", "tasks/ri_cal.rake", "tasks/spec.rake"]
|
24
23
|
s.homepage = %q{http://ri-cal.rubyforge.org/}
|
25
24
|
s.rdoc_options = ["--main", "README.txt"]
|
26
25
|
s.require_paths = ["lib"]
|
27
26
|
s.rubyforge_project = %q{ri-cal}
|
28
|
-
s.rubygems_version = %q{1.3.
|
27
|
+
s.rubygems_version = %q{1.3.4}
|
29
28
|
s.summary = %q{A new Ruby implementation of RFC2445 iCalendar}
|
30
29
|
|
31
30
|
if s.respond_to? :specification_version then
|
@@ -0,0 +1,96 @@
|
|
1
|
+
#- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license
|
2
|
+
|
3
|
+
require File.join(File.dirname(__FILE__), %w[.. spec_helper])
|
4
|
+
|
5
|
+
describe "http://rick_denatale.lighthouseapp.com/projects/30941/tickets/17" do
|
6
|
+
it "should parse this" do
|
7
|
+
RiCal.parse_string(<<-ENDCAL)
|
8
|
+
BEGIN:VCALENDAR
|
9
|
+
PRODID:-//Google Inc//Google Calendar 70.9054//EN
|
10
|
+
VERSION:2.0
|
11
|
+
CALSCALE:GREGORIAN
|
12
|
+
METHOD:PUBLISH
|
13
|
+
X-WR-CALNAME:Australian Tech Events
|
14
|
+
X-WR-TIMEZONE:Australia/Sydney
|
15
|
+
X-WR-CALDESC:TO ADD EVENTS INVITE THIS ADDRESS\;\npf44opfb12hherild7h2pl11b
|
16
|
+
4@group.calendar.google.com\n\nThis is a public calendar to know what's com
|
17
|
+
ing up all around the country in the technology industry.\n\nIncludes digit
|
18
|
+
al\, internet\, web\, enterprise\, software\, hardware\, and it's various f
|
19
|
+
lavours. \n\nFeel free to add real events. Keep it real.
|
20
|
+
BEGIN:VTIMEZONE
|
21
|
+
TZID:Australia/Perth
|
22
|
+
X-LIC-LOCATION:Australia/Perth
|
23
|
+
BEGIN:STANDARD
|
24
|
+
TZOFFSETFROM:+0800
|
25
|
+
TZOFFSETTO:+0800
|
26
|
+
TZNAME:WST
|
27
|
+
DTSTART:19700101T000000
|
28
|
+
END:STANDARD
|
29
|
+
END:VTIMEZONE
|
30
|
+
BEGIN:VTIMEZONE
|
31
|
+
TZID:Australia/Sydney
|
32
|
+
X-LIC-LOCATION:Australia/Sydney
|
33
|
+
BEGIN:STANDARD
|
34
|
+
TZOFFSETFROM:+1100
|
35
|
+
TZOFFSETTO:+1000
|
36
|
+
TZNAME:EST
|
37
|
+
DTSTART:19700405T030000
|
38
|
+
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
39
|
+
END:STANDARD
|
40
|
+
BEGIN:DAYLIGHT
|
41
|
+
TZOFFSETFROM:+1000
|
42
|
+
TZOFFSETTO:+1100
|
43
|
+
TZNAME:EST
|
44
|
+
DTSTART:19701004T020000
|
45
|
+
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU
|
46
|
+
END:DAYLIGHT
|
47
|
+
END:VTIMEZONE
|
48
|
+
BEGIN:VTIMEZONE
|
49
|
+
TZID:Australia/Brisbane
|
50
|
+
X-LIC-LOCATION:Australia/Brisbane
|
51
|
+
BEGIN:STANDARD
|
52
|
+
TZOFFSETFROM:+1000
|
53
|
+
TZOFFSETTO:+1000
|
54
|
+
TZNAME:EST
|
55
|
+
DTSTART:19700101T000000
|
56
|
+
END:STANDARD
|
57
|
+
END:VTIMEZONE
|
58
|
+
BEGIN:VEVENT
|
59
|
+
DTSTART:20091110T080000Z
|
60
|
+
DTEND:20091110T100000Z
|
61
|
+
DTSTAMP:20090720T133540Z
|
62
|
+
UID:9357CC6B-C4BF-4797-AC5F-83E47C3FDA9E
|
63
|
+
URL:thehive.org.au
|
64
|
+
CLASS:PUBLIC
|
65
|
+
CREATED:20090713T123838Z
|
66
|
+
DESCRIPTION:check the website for details
|
67
|
+
LAST-MODIFIED:20090713T123838Z
|
68
|
+
LOCATION:Melbourne
|
69
|
+
SEQUENCE:1
|
70
|
+
STATUS:CONFIRMED
|
71
|
+
SUMMARY:The Hive MELBOURNE
|
72
|
+
TRANSP:OPAQUE
|
73
|
+
BEGIN:VALARM
|
74
|
+
ACTION:AUDIO
|
75
|
+
TRIGGER:-PT5M
|
76
|
+
X-WR-ALARMUID:F92A055A-2CD9-4FB2-A22A-BD4834ACEE96
|
77
|
+
ATTACH;VALUE=URI:Basso
|
78
|
+
END:VALARM
|
79
|
+
END:VEVENT
|
80
|
+
END:VCALENDAR
|
81
|
+
ENDCAL
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
describe "http://rick_denatale.lighthouseapp.com/projects/30941/tickets/18" do
|
86
|
+
it "should handle a subcomponent" do
|
87
|
+
event = RiCal.Event do |evt|
|
88
|
+
evt.alarm do |alarm|
|
89
|
+
alarm.trigger = "-PT5M"
|
90
|
+
alarm.action = 'AUDIO'
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
lambda {event.export}.should_not raise_error
|
95
|
+
end
|
96
|
+
end
|
data/tasks/ri_cal.rake
CHANGED
@@ -4,9 +4,11 @@ require 'yaml'
|
|
4
4
|
#
|
5
5
|
# code stolen from ActiveSupport Gem
|
6
6
|
unless String.instance_methods.include?("camelize")
|
7
|
+
class String
|
7
8
|
def camelize
|
8
9
|
self.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
|
9
10
|
end
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
class VEntityUpdater
|
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.7.
|
4
|
+
version: 0.7.4
|
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-07-
|
12
|
+
date: 2009-07-21 00:00:00 -07:00
|
13
13
|
default_executable: ri_cal
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -163,6 +163,7 @@ files:
|
|
163
163
|
- script/generate
|
164
164
|
- script/profile_subject
|
165
165
|
- script/txt2html
|
166
|
+
- spec/ri_cal/bugreports_spec.rb
|
166
167
|
- spec/ri_cal/component/alarm_spec.rb
|
167
168
|
- spec/ri_cal/component/calendar_spec.rb
|
168
169
|
- spec/ri_cal/component/event_spec.rb
|
@@ -196,7 +197,7 @@ files:
|
|
196
197
|
- tasks/gem_loader/load_tzinfo_gem.rb
|
197
198
|
- tasks/ri_cal.rake
|
198
199
|
- tasks/spec.rake
|
199
|
-
has_rdoc:
|
200
|
+
has_rdoc: false
|
200
201
|
homepage: http://ri-cal.rubyforge.org/
|
201
202
|
post_install_message:
|
202
203
|
rdoc_options:
|