rubyredrick-ri_cal 0.0.2 → 0.0.3
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 +19 -2
- data/Manifest.txt +6 -3
- data/README.txt +130 -44
- data/Rakefile +1 -1
- data/copyrights.txt +1 -2
- data/lib/ri_cal/component/alarm.rb +1 -2
- data/lib/ri_cal/component/calendar.rb +25 -9
- data/lib/ri_cal/component/event.rb +1 -2
- data/lib/ri_cal/component/freebusy.rb +1 -2
- data/lib/ri_cal/component/journal.rb +1 -2
- data/lib/ri_cal/component/t_z_info_timezone.rb +1 -2
- data/lib/ri_cal/component/timezone/daylight_period.rb +1 -2
- data/lib/ri_cal/component/timezone/standard_period.rb +1 -2
- data/lib/ri_cal/component/timezone/timezone_period.rb +1 -2
- data/lib/ri_cal/component/timezone.rb +5 -2
- data/lib/ri_cal/component.rb +22 -7
- data/lib/ri_cal/core_extensions/date/conversions.rb +8 -7
- data/lib/ri_cal/core_extensions/date_time.rb +4 -2
- data/lib/ri_cal/core_extensions/object/conversions.rb +1 -1
- data/lib/ri_cal/core_extensions/string/conversions.rb +37 -6
- data/lib/ri_cal/core_extensions/time/conversions.rb +11 -7
- data/lib/ri_cal/core_extensions/time/tzid_access.rb +37 -0
- data/lib/ri_cal/core_extensions/time.rb +3 -1
- data/lib/ri_cal/floating_timezone.rb +32 -0
- data/lib/ri_cal/invalid_property_value.rb +8 -0
- data/lib/ri_cal/invalid_timezone_identifer.rb +2 -2
- data/lib/ri_cal/occurrence_enumerator.rb +5 -3
- data/lib/ri_cal/parser.rb +8 -8
- data/lib/ri_cal/properties/alarm.rb +8 -8
- data/lib/ri_cal/properties/event.rb +60 -60
- data/lib/ri_cal/properties/freebusy.rb +16 -16
- data/lib/ri_cal/properties/journal.rb +58 -58
- data/lib/ri_cal/properties/timezone_period.rb +23 -23
- data/lib/ri_cal/properties/todo.rb +63 -64
- data/lib/ri_cal/property_value/array.rb +10 -2
- data/lib/ri_cal/property_value/cal_address.rb +1 -2
- data/lib/ri_cal/property_value/date.rb +15 -3
- data/lib/ri_cal/property_value/date_time/additive_methods.rb +34 -33
- data/lib/ri_cal/property_value/date_time/time_machine.rb +175 -174
- data/lib/ri_cal/property_value/date_time/timezone_support.rb +70 -52
- data/lib/ri_cal/property_value/date_time.rb +47 -77
- data/lib/ri_cal/property_value/duration.rb +6 -3
- data/lib/ri_cal/property_value/geo.rb +1 -2
- data/lib/ri_cal/property_value/integer.rb +1 -2
- data/lib/ri_cal/property_value/occurrence_list.rb +79 -26
- data/lib/ri_cal/property_value/period.rb +23 -3
- data/lib/ri_cal/property_value/recurrence_rule/enumeration_support_methods.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/enumerator.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/initialization_methods.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/negative_setpos_enumerator.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/numbered_span.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/occurence_incrementer.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/recurring_day.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/recurring_month_day.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/recurring_numbered_week.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/recurring_year_day.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule/validations.rb +1 -2
- data/lib/ri_cal/property_value/recurrence_rule.rb +3 -4
- data/lib/ri_cal/property_value/text.rb +1 -2
- data/lib/ri_cal/property_value/uri.rb +1 -2
- data/lib/ri_cal/property_value/utc_offset.rb +1 -2
- data/lib/ri_cal/property_value.rb +42 -11
- data/lib/ri_cal/required_timezones.rb +1 -2
- data/lib/ri_cal.rb +1 -2
- data/ri_cal.gemspec +6 -4
- data/spec/ri_cal/component/alarm_spec.rb +1 -2
- data/spec/ri_cal/component/calendar_spec.rb +1 -2
- data/spec/ri_cal/component/event_spec.rb +168 -13
- data/spec/ri_cal/component/freebusy_spec.rb +1 -2
- data/spec/ri_cal/component/journal_spec.rb +1 -2
- data/spec/ri_cal/component/t_z_info_timezone_spec.rb +1 -2
- data/spec/ri_cal/component/timezone_spec.rb +1 -2
- data/spec/ri_cal/component/todo_spec.rb +4 -5
- data/spec/ri_cal/component_spec.rb +30 -18
- data/spec/ri_cal/core_extensions/string/conversions_spec.rb +78 -0
- data/spec/ri_cal/core_extensions/time/calculations_spec.rb +1 -2
- data/spec/ri_cal/core_extensions/time/week_day_predicates_spec.rb +1 -2
- data/spec/ri_cal/occurrence_enumerator_spec.rb +23 -2
- data/spec/ri_cal/parser_spec.rb +6 -7
- data/spec/ri_cal/property_value/date_spec.rb +1 -2
- data/spec/ri_cal/property_value/date_time_spec.rb +54 -119
- data/spec/ri_cal/property_value/duration_spec.rb +12 -2
- data/spec/ri_cal/property_value/occurrence_list_spec.rb +67 -0
- data/spec/ri_cal/property_value/period_spec.rb +1 -2
- data/spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb +1 -2
- data/spec/ri_cal/property_value/recurrence_rule_spec.rb +1 -2
- data/spec/ri_cal/property_value/text_spec.rb +1 -2
- data/spec/ri_cal/property_value/utc_offset_spec.rb +1 -2
- data/spec/ri_cal/property_value_spec.rb +19 -8
- data/spec/ri_cal/required_timezones_spec.rb +1 -2
- data/spec/ri_cal_spec.rb +1 -2
- data/spec/spec_helper.rb +2 -7
- data/tasks/ri_cal.rake +20 -13
- data/tasks/spec.rake +1 -1
- metadata +8 -5
- data/lib/ri_cal/core_extensions/date_time/conversions.rb +0 -27
- data/lib/ri_cal/time_with_floating_timezone.rb +0 -59
|
@@ -455,7 +455,7 @@ module RiCal
|
|
|
455
455
|
|
|
456
456
|
# set the value of the ATTACH property to multiple values
|
|
457
457
|
# one or more instances of Uri may be passed to this method
|
|
458
|
-
def attachments=(
|
|
458
|
+
def attachments=(ruby_values)
|
|
459
459
|
@attach_property = ruby_values.map {|val| RiCal::PropertyValue::Uri.convert(self, val)}
|
|
460
460
|
end
|
|
461
461
|
|
|
@@ -468,7 +468,7 @@ module RiCal
|
|
|
468
468
|
# add one or more values to the ATTACH property
|
|
469
469
|
# one or more instances of Uri may be passed to this method
|
|
470
470
|
def add_attachments(*ruby_values)
|
|
471
|
-
ruby_values.
|
|
471
|
+
ruby_values.each {|val| self.attach_property << RiCal::PropertyValue::Uri.convert(self, val)}
|
|
472
472
|
end
|
|
473
473
|
|
|
474
474
|
# add one value to the ATTACH property
|
|
@@ -480,7 +480,7 @@ module RiCal
|
|
|
480
480
|
# remove one or more values from the ATTACH property
|
|
481
481
|
# one or more instances of Uri may be passed to this method
|
|
482
482
|
def remove_attachments(*ruby_values)
|
|
483
|
-
ruby_values.
|
|
483
|
+
ruby_values.each {|val| self.attach_property.delete(RiCal::PropertyValue::Uri.convert(self, val))}
|
|
484
484
|
end
|
|
485
485
|
|
|
486
486
|
# remove one value from the ATTACH property
|
|
@@ -492,7 +492,7 @@ module RiCal
|
|
|
492
492
|
# return the value of the ATTACH property
|
|
493
493
|
# which will be an array of instances of Uri
|
|
494
494
|
def attach
|
|
495
|
-
attach_property.map {|prop| prop ? prop.
|
|
495
|
+
attach_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
496
496
|
end
|
|
497
497
|
|
|
498
498
|
def attach_property_from_string(line) # :nodoc:
|
|
@@ -518,7 +518,7 @@ module RiCal
|
|
|
518
518
|
|
|
519
519
|
# set the value of the ATTENDEE property to multiple values
|
|
520
520
|
# one or more instances of CalAddress may be passed to this method
|
|
521
|
-
def attendees=(
|
|
521
|
+
def attendees=(ruby_values)
|
|
522
522
|
@attendee_property = ruby_values.map {|val| RiCal::PropertyValue::CalAddress.convert(self, val)}
|
|
523
523
|
end
|
|
524
524
|
|
|
@@ -531,7 +531,7 @@ module RiCal
|
|
|
531
531
|
# add one or more values to the ATTENDEE property
|
|
532
532
|
# one or more instances of CalAddress may be passed to this method
|
|
533
533
|
def add_attendees(*ruby_values)
|
|
534
|
-
ruby_values.
|
|
534
|
+
ruby_values.each {|val| self.attendee_property << RiCal::PropertyValue::CalAddress.convert(self, val)}
|
|
535
535
|
end
|
|
536
536
|
|
|
537
537
|
# add one value to the ATTENDEE property
|
|
@@ -543,7 +543,7 @@ module RiCal
|
|
|
543
543
|
# remove one or more values from the ATTENDEE property
|
|
544
544
|
# one or more instances of CalAddress may be passed to this method
|
|
545
545
|
def remove_attendees(*ruby_values)
|
|
546
|
-
ruby_values.
|
|
546
|
+
ruby_values.each {|val| self.attendee_property.delete(RiCal::PropertyValue::CalAddress.convert(self, val))}
|
|
547
547
|
end
|
|
548
548
|
|
|
549
549
|
# remove one value from the ATTENDEE property
|
|
@@ -555,7 +555,7 @@ module RiCal
|
|
|
555
555
|
# return the value of the ATTENDEE property
|
|
556
556
|
# which will be an array of instances of CalAddress
|
|
557
557
|
def attendee
|
|
558
|
-
attendee_property.map {|prop| prop ? prop.
|
|
558
|
+
attendee_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
559
559
|
end
|
|
560
560
|
|
|
561
561
|
def attendee_property_from_string(line) # :nodoc:
|
|
@@ -581,7 +581,7 @@ module RiCal
|
|
|
581
581
|
|
|
582
582
|
# set the value of the CATEGORIES property to multiple values
|
|
583
583
|
# one or more instances of Array may be passed to this method
|
|
584
|
-
def multiple_categories=(
|
|
584
|
+
def multiple_categories=(ruby_values)
|
|
585
585
|
@categories_property = ruby_values.map {|val| RiCal::PropertyValue::Array.convert(self, val)}
|
|
586
586
|
end
|
|
587
587
|
|
|
@@ -594,7 +594,7 @@ module RiCal
|
|
|
594
594
|
# add one or more values to the CATEGORIES property
|
|
595
595
|
# one or more instances of Array may be passed to this method
|
|
596
596
|
def add_multiple_categories(*ruby_values)
|
|
597
|
-
ruby_values.
|
|
597
|
+
ruby_values.each {|val| self.categories_property << RiCal::PropertyValue::Array.convert(self, val)}
|
|
598
598
|
end
|
|
599
599
|
|
|
600
600
|
# add one value to the CATEGORIES property
|
|
@@ -606,7 +606,7 @@ module RiCal
|
|
|
606
606
|
# remove one or more values from the CATEGORIES property
|
|
607
607
|
# one or more instances of Array may be passed to this method
|
|
608
608
|
def remove_multiple_categories(*ruby_values)
|
|
609
|
-
ruby_values.
|
|
609
|
+
ruby_values.each {|val| self.categories_property.delete(RiCal::PropertyValue::Array.convert(self, val))}
|
|
610
610
|
end
|
|
611
611
|
|
|
612
612
|
# remove one value from the CATEGORIES property
|
|
@@ -618,7 +618,7 @@ module RiCal
|
|
|
618
618
|
# return the value of the CATEGORIES property
|
|
619
619
|
# which will be an array of instances of Array
|
|
620
620
|
def categories
|
|
621
|
-
categories_property.map {|prop| prop ? prop.
|
|
621
|
+
categories_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
622
622
|
end
|
|
623
623
|
|
|
624
624
|
def categories_property_from_string(line) # :nodoc:
|
|
@@ -644,7 +644,7 @@ module RiCal
|
|
|
644
644
|
|
|
645
645
|
# set the value of the COMMENT property to multiple values
|
|
646
646
|
# one or more instances of String may be passed to this method
|
|
647
|
-
def comments=(
|
|
647
|
+
def comments=(ruby_values)
|
|
648
648
|
@comment_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
|
649
649
|
end
|
|
650
650
|
|
|
@@ -657,7 +657,7 @@ module RiCal
|
|
|
657
657
|
# add one or more values to the COMMENT property
|
|
658
658
|
# one or more instances of String may be passed to this method
|
|
659
659
|
def add_comments(*ruby_values)
|
|
660
|
-
ruby_values.
|
|
660
|
+
ruby_values.each {|val| self.comment_property << RiCal::PropertyValue::Text.convert(self, val)}
|
|
661
661
|
end
|
|
662
662
|
|
|
663
663
|
# add one value to the COMMENT property
|
|
@@ -669,7 +669,7 @@ module RiCal
|
|
|
669
669
|
# remove one or more values from the COMMENT property
|
|
670
670
|
# one or more instances of String may be passed to this method
|
|
671
671
|
def remove_comments(*ruby_values)
|
|
672
|
-
ruby_values.
|
|
672
|
+
ruby_values.each {|val| self.comment_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
|
673
673
|
end
|
|
674
674
|
|
|
675
675
|
# remove one value from the COMMENT property
|
|
@@ -681,7 +681,7 @@ module RiCal
|
|
|
681
681
|
# return the value of the COMMENT property
|
|
682
682
|
# which will be an array of instances of String
|
|
683
683
|
def comment
|
|
684
|
-
comment_property.map {|prop| prop ? prop.
|
|
684
|
+
comment_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
685
685
|
end
|
|
686
686
|
|
|
687
687
|
def comment_property_from_string(line) # :nodoc:
|
|
@@ -707,7 +707,7 @@ module RiCal
|
|
|
707
707
|
|
|
708
708
|
# set the value of the CONTACT property to multiple values
|
|
709
709
|
# one or more instances of String may be passed to this method
|
|
710
|
-
def contacts=(
|
|
710
|
+
def contacts=(ruby_values)
|
|
711
711
|
@contact_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
|
712
712
|
end
|
|
713
713
|
|
|
@@ -720,7 +720,7 @@ module RiCal
|
|
|
720
720
|
# add one or more values to the CONTACT property
|
|
721
721
|
# one or more instances of String may be passed to this method
|
|
722
722
|
def add_contacts(*ruby_values)
|
|
723
|
-
ruby_values.
|
|
723
|
+
ruby_values.each {|val| self.contact_property << RiCal::PropertyValue::Text.convert(self, val)}
|
|
724
724
|
end
|
|
725
725
|
|
|
726
726
|
# add one value to the CONTACT property
|
|
@@ -732,7 +732,7 @@ module RiCal
|
|
|
732
732
|
# remove one or more values from the CONTACT property
|
|
733
733
|
# one or more instances of String may be passed to this method
|
|
734
734
|
def remove_contacts(*ruby_values)
|
|
735
|
-
ruby_values.
|
|
735
|
+
ruby_values.each {|val| self.contact_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
|
736
736
|
end
|
|
737
737
|
|
|
738
738
|
# remove one value from the CONTACT property
|
|
@@ -744,7 +744,7 @@ module RiCal
|
|
|
744
744
|
# return the value of the CONTACT property
|
|
745
745
|
# which will be an array of instances of String
|
|
746
746
|
def contact
|
|
747
|
-
contact_property.map {|prop| prop ? prop.
|
|
747
|
+
contact_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
748
748
|
end
|
|
749
749
|
|
|
750
750
|
def contact_property_from_string(line) # :nodoc:
|
|
@@ -770,44 +770,44 @@ module RiCal
|
|
|
770
770
|
|
|
771
771
|
# set the value of the EXDATE property to multiple values
|
|
772
772
|
# one or more instances of OccurrenceList may be passed to this method
|
|
773
|
-
def exdates=(
|
|
774
|
-
@exdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, val)}
|
|
773
|
+
def exdates=(ruby_values)
|
|
774
|
+
@exdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
|
775
775
|
end
|
|
776
776
|
|
|
777
777
|
# set the value of the EXDATE property to a single value
|
|
778
778
|
# one instance of OccurrenceList may be passed to this method
|
|
779
|
-
def exdate=(ruby_value)
|
|
780
|
-
@exdate_property = [RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)]
|
|
779
|
+
def exdate=(*ruby_value)
|
|
780
|
+
@exdate_property = [RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)]
|
|
781
781
|
end
|
|
782
782
|
|
|
783
783
|
# add one or more values to the EXDATE property
|
|
784
784
|
# one or more instances of OccurrenceList may be passed to this method
|
|
785
785
|
def add_exdates(*ruby_values)
|
|
786
|
-
ruby_values.
|
|
786
|
+
ruby_values.each {|val| self.exdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
|
787
787
|
end
|
|
788
788
|
|
|
789
789
|
# add one value to the EXDATE property
|
|
790
790
|
# one instances of OccurrenceList may be passed to this method
|
|
791
|
-
def add_exdate(ruby_value)
|
|
792
|
-
self.exdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)
|
|
791
|
+
def add_exdate(*ruby_value)
|
|
792
|
+
self.exdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)
|
|
793
793
|
end
|
|
794
794
|
|
|
795
795
|
# remove one or more values from the EXDATE property
|
|
796
796
|
# one or more instances of OccurrenceList may be passed to this method
|
|
797
797
|
def remove_exdates(*ruby_values)
|
|
798
|
-
ruby_values.
|
|
798
|
+
ruby_values.each {|val| self.exdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *val))}
|
|
799
799
|
end
|
|
800
800
|
|
|
801
801
|
# remove one value from the EXDATE property
|
|
802
802
|
# one instances of OccurrenceList may be passed to this method
|
|
803
|
-
def remove_exdate(ruby_value)
|
|
804
|
-
self.exdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value))
|
|
803
|
+
def remove_exdate(*ruby_value)
|
|
804
|
+
self.exdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value))
|
|
805
805
|
end
|
|
806
806
|
|
|
807
807
|
# return the value of the EXDATE property
|
|
808
808
|
# which will be an array of instances of OccurrenceList
|
|
809
809
|
def exdate
|
|
810
|
-
exdate_property.map {|prop| prop ? prop.
|
|
810
|
+
exdate_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
811
811
|
end
|
|
812
812
|
|
|
813
813
|
def exdate_property_from_string(line) # :nodoc:
|
|
@@ -833,7 +833,7 @@ module RiCal
|
|
|
833
833
|
|
|
834
834
|
# set the value of the EXRULE property to multiple values
|
|
835
835
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
836
|
-
def exrules=(
|
|
836
|
+
def exrules=(ruby_values)
|
|
837
837
|
@exrule_property = ruby_values.map {|val| RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
|
838
838
|
end
|
|
839
839
|
|
|
@@ -846,7 +846,7 @@ module RiCal
|
|
|
846
846
|
# add one or more values to the EXRULE property
|
|
847
847
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
848
848
|
def add_exrules(*ruby_values)
|
|
849
|
-
ruby_values.
|
|
849
|
+
ruby_values.each {|val| self.exrule_property << RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
|
850
850
|
end
|
|
851
851
|
|
|
852
852
|
# add one value to the EXRULE property
|
|
@@ -858,7 +858,7 @@ module RiCal
|
|
|
858
858
|
# remove one or more values from the EXRULE property
|
|
859
859
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
860
860
|
def remove_exrules(*ruby_values)
|
|
861
|
-
ruby_values.
|
|
861
|
+
ruby_values.each {|val| self.exrule_property.delete(RiCal::PropertyValue::RecurrenceRule.convert(self, val))}
|
|
862
862
|
end
|
|
863
863
|
|
|
864
864
|
# remove one value from the EXRULE property
|
|
@@ -870,7 +870,7 @@ module RiCal
|
|
|
870
870
|
# return the value of the EXRULE property
|
|
871
871
|
# which will be an array of instances of RecurrenceRule
|
|
872
872
|
def exrule
|
|
873
|
-
exrule_property.map {|prop| prop ? prop.
|
|
873
|
+
exrule_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
874
874
|
end
|
|
875
875
|
|
|
876
876
|
def exrule_property_from_string(line) # :nodoc:
|
|
@@ -896,7 +896,7 @@ module RiCal
|
|
|
896
896
|
|
|
897
897
|
# set the value of the RELATED-TO property to multiple values
|
|
898
898
|
# one or more instances of String may be passed to this method
|
|
899
|
-
def multiple_related_to=(
|
|
899
|
+
def multiple_related_to=(ruby_values)
|
|
900
900
|
@related_to_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
|
901
901
|
end
|
|
902
902
|
|
|
@@ -909,7 +909,7 @@ module RiCal
|
|
|
909
909
|
# add one or more values to the RELATED-TO property
|
|
910
910
|
# one or more instances of String may be passed to this method
|
|
911
911
|
def add_multiple_related_to(*ruby_values)
|
|
912
|
-
ruby_values.
|
|
912
|
+
ruby_values.each {|val| self.related_to_property << RiCal::PropertyValue::Text.convert(self, val)}
|
|
913
913
|
end
|
|
914
914
|
|
|
915
915
|
# add one value to the RELATED-TO property
|
|
@@ -921,7 +921,7 @@ module RiCal
|
|
|
921
921
|
# remove one or more values from the RELATED-TO property
|
|
922
922
|
# one or more instances of String may be passed to this method
|
|
923
923
|
def remove_multiple_related_to(*ruby_values)
|
|
924
|
-
ruby_values.
|
|
924
|
+
ruby_values.each {|val| self.related_to_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
|
925
925
|
end
|
|
926
926
|
|
|
927
927
|
# remove one value from the RELATED-TO property
|
|
@@ -933,7 +933,7 @@ module RiCal
|
|
|
933
933
|
# return the value of the RELATED-TO property
|
|
934
934
|
# which will be an array of instances of String
|
|
935
935
|
def related_to
|
|
936
|
-
related_to_property.map {|prop| prop ? prop.
|
|
936
|
+
related_to_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
937
937
|
end
|
|
938
938
|
|
|
939
939
|
def related_to_property_from_string(line) # :nodoc:
|
|
@@ -959,44 +959,44 @@ module RiCal
|
|
|
959
959
|
|
|
960
960
|
# set the value of the RDATE property to multiple values
|
|
961
961
|
# one or more instances of OccurrenceList may be passed to this method
|
|
962
|
-
def rdates=(
|
|
963
|
-
@rdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, val)}
|
|
962
|
+
def rdates=(ruby_values)
|
|
963
|
+
@rdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
|
964
964
|
end
|
|
965
965
|
|
|
966
966
|
# set the value of the RDATE property to a single value
|
|
967
967
|
# one instance of OccurrenceList may be passed to this method
|
|
968
|
-
def rdate=(ruby_value)
|
|
969
|
-
@rdate_property = [RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)]
|
|
968
|
+
def rdate=(*ruby_value)
|
|
969
|
+
@rdate_property = [RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)]
|
|
970
970
|
end
|
|
971
971
|
|
|
972
972
|
# add one or more values to the RDATE property
|
|
973
973
|
# one or more instances of OccurrenceList may be passed to this method
|
|
974
974
|
def add_rdates(*ruby_values)
|
|
975
|
-
ruby_values.
|
|
975
|
+
ruby_values.each {|val| self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
|
976
976
|
end
|
|
977
977
|
|
|
978
978
|
# add one value to the RDATE property
|
|
979
979
|
# one instances of OccurrenceList may be passed to this method
|
|
980
|
-
def add_rdate(ruby_value)
|
|
981
|
-
self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)
|
|
980
|
+
def add_rdate(*ruby_value)
|
|
981
|
+
self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)
|
|
982
982
|
end
|
|
983
983
|
|
|
984
984
|
# remove one or more values from the RDATE property
|
|
985
985
|
# one or more instances of OccurrenceList may be passed to this method
|
|
986
986
|
def remove_rdates(*ruby_values)
|
|
987
|
-
ruby_values.
|
|
987
|
+
ruby_values.each {|val| self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *val))}
|
|
988
988
|
end
|
|
989
989
|
|
|
990
990
|
# remove one value from the RDATE property
|
|
991
991
|
# one instances of OccurrenceList may be passed to this method
|
|
992
|
-
def remove_rdate(ruby_value)
|
|
993
|
-
self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value))
|
|
992
|
+
def remove_rdate(*ruby_value)
|
|
993
|
+
self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value))
|
|
994
994
|
end
|
|
995
995
|
|
|
996
996
|
# return the value of the RDATE property
|
|
997
997
|
# which will be an array of instances of OccurrenceList
|
|
998
998
|
def rdate
|
|
999
|
-
rdate_property.map {|prop| prop ? prop.
|
|
999
|
+
rdate_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
1000
1000
|
end
|
|
1001
1001
|
|
|
1002
1002
|
def rdate_property_from_string(line) # :nodoc:
|
|
@@ -1022,7 +1022,7 @@ module RiCal
|
|
|
1022
1022
|
|
|
1023
1023
|
# set the value of the RRULE property to multiple values
|
|
1024
1024
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
1025
|
-
def rrules=(
|
|
1025
|
+
def rrules=(ruby_values)
|
|
1026
1026
|
@rrule_property = ruby_values.map {|val| RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
|
1027
1027
|
end
|
|
1028
1028
|
|
|
@@ -1035,7 +1035,7 @@ module RiCal
|
|
|
1035
1035
|
# add one or more values to the RRULE property
|
|
1036
1036
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
1037
1037
|
def add_rrules(*ruby_values)
|
|
1038
|
-
ruby_values.
|
|
1038
|
+
ruby_values.each {|val| self.rrule_property << RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
|
1039
1039
|
end
|
|
1040
1040
|
|
|
1041
1041
|
# add one value to the RRULE property
|
|
@@ -1047,7 +1047,7 @@ module RiCal
|
|
|
1047
1047
|
# remove one or more values from the RRULE property
|
|
1048
1048
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
1049
1049
|
def remove_rrules(*ruby_values)
|
|
1050
|
-
ruby_values.
|
|
1050
|
+
ruby_values.each {|val| self.rrule_property.delete(RiCal::PropertyValue::RecurrenceRule.convert(self, val))}
|
|
1051
1051
|
end
|
|
1052
1052
|
|
|
1053
1053
|
# remove one value from the RRULE property
|
|
@@ -1059,7 +1059,7 @@ module RiCal
|
|
|
1059
1059
|
# return the value of the RRULE property
|
|
1060
1060
|
# which will be an array of instances of RecurrenceRule
|
|
1061
1061
|
def rrule
|
|
1062
|
-
rrule_property.map {|prop| prop ? prop.
|
|
1062
|
+
rrule_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
1063
1063
|
end
|
|
1064
1064
|
|
|
1065
1065
|
def rrule_property_from_string(line) # :nodoc:
|
|
@@ -1082,7 +1082,7 @@ module RiCal
|
|
|
1082
1082
|
|
|
1083
1083
|
# set the value of the REQUEST-STATUS property to multiple values
|
|
1084
1084
|
# one or more instances of String may be passed to this method
|
|
1085
|
-
def request_statuses=(
|
|
1085
|
+
def request_statuses=(ruby_values)
|
|
1086
1086
|
@request_status_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
|
1087
1087
|
end
|
|
1088
1088
|
|
|
@@ -1095,7 +1095,7 @@ module RiCal
|
|
|
1095
1095
|
# add one or more values to the REQUEST-STATUS property
|
|
1096
1096
|
# one or more instances of String may be passed to this method
|
|
1097
1097
|
def add_request_statuses(*ruby_values)
|
|
1098
|
-
ruby_values.
|
|
1098
|
+
ruby_values.each {|val| self.request_status_property << RiCal::PropertyValue::Text.convert(self, val)}
|
|
1099
1099
|
end
|
|
1100
1100
|
|
|
1101
1101
|
# add one value to the REQUEST-STATUS property
|
|
@@ -1107,7 +1107,7 @@ module RiCal
|
|
|
1107
1107
|
# remove one or more values from the REQUEST-STATUS property
|
|
1108
1108
|
# one or more instances of String may be passed to this method
|
|
1109
1109
|
def remove_request_statuses(*ruby_values)
|
|
1110
|
-
ruby_values.
|
|
1110
|
+
ruby_values.each {|val| self.request_status_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
|
1111
1111
|
end
|
|
1112
1112
|
|
|
1113
1113
|
# remove one value from the REQUEST-STATUS property
|
|
@@ -1119,7 +1119,7 @@ module RiCal
|
|
|
1119
1119
|
# return the value of the REQUEST-STATUS property
|
|
1120
1120
|
# which will be an array of instances of String
|
|
1121
1121
|
def request_status
|
|
1122
|
-
request_status_property.map {|prop| prop ? prop.
|
|
1122
|
+
request_status_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
1123
1123
|
end
|
|
1124
1124
|
|
|
1125
1125
|
def request_status_property_from_string(line) # :nodoc:
|
|
@@ -125,7 +125,7 @@ module RiCal
|
|
|
125
125
|
|
|
126
126
|
# set the value of the COMMENT property to multiple values
|
|
127
127
|
# one or more instances of String may be passed to this method
|
|
128
|
-
def comments=(
|
|
128
|
+
def comments=(ruby_values)
|
|
129
129
|
@comment_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
|
130
130
|
end
|
|
131
131
|
|
|
@@ -138,7 +138,7 @@ module RiCal
|
|
|
138
138
|
# add one or more values to the COMMENT property
|
|
139
139
|
# one or more instances of String may be passed to this method
|
|
140
140
|
def add_comments(*ruby_values)
|
|
141
|
-
ruby_values.
|
|
141
|
+
ruby_values.each {|val| self.comment_property << RiCal::PropertyValue::Text.convert(self, val)}
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
# add one value to the COMMENT property
|
|
@@ -150,7 +150,7 @@ module RiCal
|
|
|
150
150
|
# remove one or more values from the COMMENT property
|
|
151
151
|
# one or more instances of String may be passed to this method
|
|
152
152
|
def remove_comments(*ruby_values)
|
|
153
|
-
ruby_values.
|
|
153
|
+
ruby_values.each {|val| self.comment_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
# remove one value from the COMMENT property
|
|
@@ -162,7 +162,7 @@ module RiCal
|
|
|
162
162
|
# return the value of the COMMENT property
|
|
163
163
|
# which will be an array of instances of String
|
|
164
164
|
def comment
|
|
165
|
-
comment_property.map {|prop| prop ? prop.
|
|
165
|
+
comment_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
def comment_property_from_string(line) # :nodoc:
|
|
@@ -188,44 +188,44 @@ module RiCal
|
|
|
188
188
|
|
|
189
189
|
# set the value of the RDATE property to multiple values
|
|
190
190
|
# one or more instances of OccurrenceList may be passed to this method
|
|
191
|
-
def rdates=(
|
|
192
|
-
@rdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, val)}
|
|
191
|
+
def rdates=(ruby_values)
|
|
192
|
+
@rdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
# set the value of the RDATE property to a single value
|
|
196
196
|
# one instance of OccurrenceList may be passed to this method
|
|
197
|
-
def rdate=(ruby_value)
|
|
198
|
-
@rdate_property = [RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)]
|
|
197
|
+
def rdate=(*ruby_value)
|
|
198
|
+
@rdate_property = [RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)]
|
|
199
199
|
end
|
|
200
200
|
|
|
201
201
|
# add one or more values to the RDATE property
|
|
202
202
|
# one or more instances of OccurrenceList may be passed to this method
|
|
203
203
|
def add_rdates(*ruby_values)
|
|
204
|
-
ruby_values.
|
|
204
|
+
ruby_values.each {|val| self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
|
205
205
|
end
|
|
206
206
|
|
|
207
207
|
# add one value to the RDATE property
|
|
208
208
|
# one instances of OccurrenceList may be passed to this method
|
|
209
|
-
def add_rdate(ruby_value)
|
|
210
|
-
self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)
|
|
209
|
+
def add_rdate(*ruby_value)
|
|
210
|
+
self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)
|
|
211
211
|
end
|
|
212
212
|
|
|
213
213
|
# remove one or more values from the RDATE property
|
|
214
214
|
# one or more instances of OccurrenceList may be passed to this method
|
|
215
215
|
def remove_rdates(*ruby_values)
|
|
216
|
-
ruby_values.
|
|
216
|
+
ruby_values.each {|val| self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *val))}
|
|
217
217
|
end
|
|
218
218
|
|
|
219
219
|
# remove one value from the RDATE property
|
|
220
220
|
# one instances of OccurrenceList may be passed to this method
|
|
221
|
-
def remove_rdate(ruby_value)
|
|
222
|
-
self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value))
|
|
221
|
+
def remove_rdate(*ruby_value)
|
|
222
|
+
self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value))
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# return the value of the RDATE property
|
|
226
226
|
# which will be an array of instances of OccurrenceList
|
|
227
227
|
def rdate
|
|
228
|
-
rdate_property.map {|prop| prop ? prop.
|
|
228
|
+
rdate_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
def rdate_property_from_string(line) # :nodoc:
|
|
@@ -251,7 +251,7 @@ module RiCal
|
|
|
251
251
|
|
|
252
252
|
# set the value of the RRULE property to multiple values
|
|
253
253
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
254
|
-
def rrules=(
|
|
254
|
+
def rrules=(ruby_values)
|
|
255
255
|
@rrule_property = ruby_values.map {|val| RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
|
256
256
|
end
|
|
257
257
|
|
|
@@ -264,7 +264,7 @@ module RiCal
|
|
|
264
264
|
# add one or more values to the RRULE property
|
|
265
265
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
266
266
|
def add_rrules(*ruby_values)
|
|
267
|
-
ruby_values.
|
|
267
|
+
ruby_values.each {|val| self.rrule_property << RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
|
268
268
|
end
|
|
269
269
|
|
|
270
270
|
# add one value to the RRULE property
|
|
@@ -276,7 +276,7 @@ module RiCal
|
|
|
276
276
|
# remove one or more values from the RRULE property
|
|
277
277
|
# one or more instances of RecurrenceRule may be passed to this method
|
|
278
278
|
def remove_rrules(*ruby_values)
|
|
279
|
-
ruby_values.
|
|
279
|
+
ruby_values.each {|val| self.rrule_property.delete(RiCal::PropertyValue::RecurrenceRule.convert(self, val))}
|
|
280
280
|
end
|
|
281
281
|
|
|
282
282
|
# remove one value from the RRULE property
|
|
@@ -288,7 +288,7 @@ module RiCal
|
|
|
288
288
|
# return the value of the RRULE property
|
|
289
289
|
# which will be an array of instances of RecurrenceRule
|
|
290
290
|
def rrule
|
|
291
|
-
rrule_property.map {|prop| prop ? prop.
|
|
291
|
+
rrule_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
292
292
|
end
|
|
293
293
|
|
|
294
294
|
def rrule_property_from_string(line) # :nodoc:
|
|
@@ -314,7 +314,7 @@ module RiCal
|
|
|
314
314
|
|
|
315
315
|
# set the value of the TZNAME property to multiple values
|
|
316
316
|
# one or more instances of String may be passed to this method
|
|
317
|
-
def tznames=(
|
|
317
|
+
def tznames=(ruby_values)
|
|
318
318
|
@tzname_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
|
319
319
|
end
|
|
320
320
|
|
|
@@ -327,7 +327,7 @@ module RiCal
|
|
|
327
327
|
# add one or more values to the TZNAME property
|
|
328
328
|
# one or more instances of String may be passed to this method
|
|
329
329
|
def add_tznames(*ruby_values)
|
|
330
|
-
ruby_values.
|
|
330
|
+
ruby_values.each {|val| self.tzname_property << RiCal::PropertyValue::Text.convert(self, val)}
|
|
331
331
|
end
|
|
332
332
|
|
|
333
333
|
# add one value to the TZNAME property
|
|
@@ -339,7 +339,7 @@ module RiCal
|
|
|
339
339
|
# remove one or more values from the TZNAME property
|
|
340
340
|
# one or more instances of String may be passed to this method
|
|
341
341
|
def remove_tznames(*ruby_values)
|
|
342
|
-
ruby_values.
|
|
342
|
+
ruby_values.each {|val| self.tzname_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
|
343
343
|
end
|
|
344
344
|
|
|
345
345
|
# remove one value from the TZNAME property
|
|
@@ -351,7 +351,7 @@ module RiCal
|
|
|
351
351
|
# return the value of the TZNAME property
|
|
352
352
|
# which will be an array of instances of String
|
|
353
353
|
def tzname
|
|
354
|
-
tzname_property.map {|prop| prop ? prop.
|
|
354
|
+
tzname_property.map {|prop| prop ? prop.ruby_value : prop}
|
|
355
355
|
end
|
|
356
356
|
|
|
357
357
|
def tzname_property_from_string(line) # :nodoc:
|