rubyredrick-ri_cal 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -655,7 +655,7 @@ module RiCal
|
|
655
655
|
|
656
656
|
# set the value of the ATTACH property to multiple values
|
657
657
|
# one or more instances of Uri may be passed to this method
|
658
|
-
def attachments=(
|
658
|
+
def attachments=(ruby_values)
|
659
659
|
@attach_property = ruby_values.map {|val| RiCal::PropertyValue::Uri.convert(self, val)}
|
660
660
|
end
|
661
661
|
|
@@ -668,7 +668,7 @@ module RiCal
|
|
668
668
|
# add one or more values to the ATTACH property
|
669
669
|
# one or more instances of Uri may be passed to this method
|
670
670
|
def add_attachments(*ruby_values)
|
671
|
-
ruby_values.
|
671
|
+
ruby_values.each {|val| self.attach_property << RiCal::PropertyValue::Uri.convert(self, val)}
|
672
672
|
end
|
673
673
|
|
674
674
|
# add one value to the ATTACH property
|
@@ -680,7 +680,7 @@ module RiCal
|
|
680
680
|
# remove one or more values from the ATTACH property
|
681
681
|
# one or more instances of Uri may be passed to this method
|
682
682
|
def remove_attachments(*ruby_values)
|
683
|
-
ruby_values.
|
683
|
+
ruby_values.each {|val| self.attach_property.delete(RiCal::PropertyValue::Uri.convert(self, val))}
|
684
684
|
end
|
685
685
|
|
686
686
|
# remove one value from the ATTACH property
|
@@ -692,7 +692,7 @@ module RiCal
|
|
692
692
|
# return the value of the ATTACH property
|
693
693
|
# which will be an array of instances of Uri
|
694
694
|
def attach
|
695
|
-
attach_property.map {|prop| prop ? prop.
|
695
|
+
attach_property.map {|prop| prop ? prop.ruby_value : prop}
|
696
696
|
end
|
697
697
|
|
698
698
|
def attach_property_from_string(line) # :nodoc:
|
@@ -718,7 +718,7 @@ module RiCal
|
|
718
718
|
|
719
719
|
# set the value of the ATTENDEE property to multiple values
|
720
720
|
# one or more instances of CalAddress may be passed to this method
|
721
|
-
def attendees=(
|
721
|
+
def attendees=(ruby_values)
|
722
722
|
@attendee_property = ruby_values.map {|val| RiCal::PropertyValue::CalAddress.convert(self, val)}
|
723
723
|
end
|
724
724
|
|
@@ -731,7 +731,7 @@ module RiCal
|
|
731
731
|
# add one or more values to the ATTENDEE property
|
732
732
|
# one or more instances of CalAddress may be passed to this method
|
733
733
|
def add_attendees(*ruby_values)
|
734
|
-
ruby_values.
|
734
|
+
ruby_values.each {|val| self.attendee_property << RiCal::PropertyValue::CalAddress.convert(self, val)}
|
735
735
|
end
|
736
736
|
|
737
737
|
# add one value to the ATTENDEE property
|
@@ -743,7 +743,7 @@ module RiCal
|
|
743
743
|
# remove one or more values from the ATTENDEE property
|
744
744
|
# one or more instances of CalAddress may be passed to this method
|
745
745
|
def remove_attendees(*ruby_values)
|
746
|
-
ruby_values.
|
746
|
+
ruby_values.each {|val| self.attendee_property.delete(RiCal::PropertyValue::CalAddress.convert(self, val))}
|
747
747
|
end
|
748
748
|
|
749
749
|
# remove one value from the ATTENDEE property
|
@@ -755,7 +755,7 @@ module RiCal
|
|
755
755
|
# return the value of the ATTENDEE property
|
756
756
|
# which will be an array of instances of CalAddress
|
757
757
|
def attendee
|
758
|
-
attendee_property.map {|prop| prop ? prop.
|
758
|
+
attendee_property.map {|prop| prop ? prop.ruby_value : prop}
|
759
759
|
end
|
760
760
|
|
761
761
|
def attendee_property_from_string(line) # :nodoc:
|
@@ -781,7 +781,7 @@ module RiCal
|
|
781
781
|
|
782
782
|
# set the value of the CATEGORIES property to multiple values
|
783
783
|
# one or more instances of Array may be passed to this method
|
784
|
-
def multiple_categories=(
|
784
|
+
def multiple_categories=(ruby_values)
|
785
785
|
@categories_property = ruby_values.map {|val| RiCal::PropertyValue::Array.convert(self, val)}
|
786
786
|
end
|
787
787
|
|
@@ -794,7 +794,7 @@ module RiCal
|
|
794
794
|
# add one or more values to the CATEGORIES property
|
795
795
|
# one or more instances of Array may be passed to this method
|
796
796
|
def add_multiple_categories(*ruby_values)
|
797
|
-
ruby_values.
|
797
|
+
ruby_values.each {|val| self.categories_property << RiCal::PropertyValue::Array.convert(self, val)}
|
798
798
|
end
|
799
799
|
|
800
800
|
# add one value to the CATEGORIES property
|
@@ -806,7 +806,7 @@ module RiCal
|
|
806
806
|
# remove one or more values from the CATEGORIES property
|
807
807
|
# one or more instances of Array may be passed to this method
|
808
808
|
def remove_multiple_categories(*ruby_values)
|
809
|
-
ruby_values.
|
809
|
+
ruby_values.each {|val| self.categories_property.delete(RiCal::PropertyValue::Array.convert(self, val))}
|
810
810
|
end
|
811
811
|
|
812
812
|
# remove one value from the CATEGORIES property
|
@@ -818,7 +818,7 @@ module RiCal
|
|
818
818
|
# return the value of the CATEGORIES property
|
819
819
|
# which will be an array of instances of Array
|
820
820
|
def categories
|
821
|
-
categories_property.map {|prop| prop ? prop.
|
821
|
+
categories_property.map {|prop| prop ? prop.ruby_value : prop}
|
822
822
|
end
|
823
823
|
|
824
824
|
def categories_property_from_string(line) # :nodoc:
|
@@ -844,7 +844,7 @@ module RiCal
|
|
844
844
|
|
845
845
|
# set the value of the COMMENT property to multiple values
|
846
846
|
# one or more instances of String may be passed to this method
|
847
|
-
def comments=(
|
847
|
+
def comments=(ruby_values)
|
848
848
|
@comment_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
849
849
|
end
|
850
850
|
|
@@ -857,7 +857,7 @@ module RiCal
|
|
857
857
|
# add one or more values to the COMMENT property
|
858
858
|
# one or more instances of String may be passed to this method
|
859
859
|
def add_comments(*ruby_values)
|
860
|
-
ruby_values.
|
860
|
+
ruby_values.each {|val| self.comment_property << RiCal::PropertyValue::Text.convert(self, val)}
|
861
861
|
end
|
862
862
|
|
863
863
|
# add one value to the COMMENT property
|
@@ -869,7 +869,7 @@ module RiCal
|
|
869
869
|
# remove one or more values from the COMMENT property
|
870
870
|
# one or more instances of String may be passed to this method
|
871
871
|
def remove_comments(*ruby_values)
|
872
|
-
ruby_values.
|
872
|
+
ruby_values.each {|val| self.comment_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
873
873
|
end
|
874
874
|
|
875
875
|
# remove one value from the COMMENT property
|
@@ -881,7 +881,7 @@ module RiCal
|
|
881
881
|
# return the value of the COMMENT property
|
882
882
|
# which will be an array of instances of String
|
883
883
|
def comment
|
884
|
-
comment_property.map {|prop| prop ? prop.
|
884
|
+
comment_property.map {|prop| prop ? prop.ruby_value : prop}
|
885
885
|
end
|
886
886
|
|
887
887
|
def comment_property_from_string(line) # :nodoc:
|
@@ -907,7 +907,7 @@ module RiCal
|
|
907
907
|
|
908
908
|
# set the value of the CONTACT property to multiple values
|
909
909
|
# one or more instances of String may be passed to this method
|
910
|
-
def contacts=(
|
910
|
+
def contacts=(ruby_values)
|
911
911
|
@contact_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
912
912
|
end
|
913
913
|
|
@@ -920,7 +920,7 @@ module RiCal
|
|
920
920
|
# add one or more values to the CONTACT property
|
921
921
|
# one or more instances of String may be passed to this method
|
922
922
|
def add_contacts(*ruby_values)
|
923
|
-
ruby_values.
|
923
|
+
ruby_values.each {|val| self.contact_property << RiCal::PropertyValue::Text.convert(self, val)}
|
924
924
|
end
|
925
925
|
|
926
926
|
# add one value to the CONTACT property
|
@@ -932,7 +932,7 @@ module RiCal
|
|
932
932
|
# remove one or more values from the CONTACT property
|
933
933
|
# one or more instances of String may be passed to this method
|
934
934
|
def remove_contacts(*ruby_values)
|
935
|
-
ruby_values.
|
935
|
+
ruby_values.each {|val| self.contact_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
936
936
|
end
|
937
937
|
|
938
938
|
# remove one value from the CONTACT property
|
@@ -944,7 +944,7 @@ module RiCal
|
|
944
944
|
# return the value of the CONTACT property
|
945
945
|
# which will be an array of instances of String
|
946
946
|
def contact
|
947
|
-
contact_property.map {|prop| prop ? prop.
|
947
|
+
contact_property.map {|prop| prop ? prop.ruby_value : prop}
|
948
948
|
end
|
949
949
|
|
950
950
|
def contact_property_from_string(line) # :nodoc:
|
@@ -970,44 +970,44 @@ module RiCal
|
|
970
970
|
|
971
971
|
# set the value of the EXDATE property to multiple values
|
972
972
|
# one or more instances of OccurrenceList may be passed to this method
|
973
|
-
def exdates=(
|
974
|
-
@exdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, val)}
|
973
|
+
def exdates=(ruby_values)
|
974
|
+
@exdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
975
975
|
end
|
976
976
|
|
977
977
|
# set the value of the EXDATE property to a single value
|
978
978
|
# one instance of OccurrenceList may be passed to this method
|
979
|
-
def exdate=(ruby_value)
|
980
|
-
@exdate_property = [RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)]
|
979
|
+
def exdate=(*ruby_value)
|
980
|
+
@exdate_property = [RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)]
|
981
981
|
end
|
982
982
|
|
983
983
|
# add one or more values to the EXDATE property
|
984
984
|
# one or more instances of OccurrenceList may be passed to this method
|
985
985
|
def add_exdates(*ruby_values)
|
986
|
-
ruby_values.
|
986
|
+
ruby_values.each {|val| self.exdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
987
987
|
end
|
988
988
|
|
989
989
|
# add one value to the EXDATE property
|
990
990
|
# one instances of OccurrenceList may be passed to this method
|
991
|
-
def add_exdate(ruby_value)
|
992
|
-
self.exdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)
|
991
|
+
def add_exdate(*ruby_value)
|
992
|
+
self.exdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)
|
993
993
|
end
|
994
994
|
|
995
995
|
# remove one or more values from the EXDATE property
|
996
996
|
# one or more instances of OccurrenceList may be passed to this method
|
997
997
|
def remove_exdates(*ruby_values)
|
998
|
-
ruby_values.
|
998
|
+
ruby_values.each {|val| self.exdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *val))}
|
999
999
|
end
|
1000
1000
|
|
1001
1001
|
# remove one value from the EXDATE property
|
1002
1002
|
# one instances of OccurrenceList may be passed to this method
|
1003
|
-
def remove_exdate(ruby_value)
|
1004
|
-
self.exdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value))
|
1003
|
+
def remove_exdate(*ruby_value)
|
1004
|
+
self.exdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value))
|
1005
1005
|
end
|
1006
1006
|
|
1007
1007
|
# return the value of the EXDATE property
|
1008
1008
|
# which will be an array of instances of OccurrenceList
|
1009
1009
|
def exdate
|
1010
|
-
exdate_property.map {|prop| prop ? prop.
|
1010
|
+
exdate_property.map {|prop| prop ? prop.ruby_value : prop}
|
1011
1011
|
end
|
1012
1012
|
|
1013
1013
|
def exdate_property_from_string(line) # :nodoc:
|
@@ -1033,8 +1033,8 @@ module RiCal
|
|
1033
1033
|
|
1034
1034
|
# set the value of the RDATE property to multiple values
|
1035
1035
|
# one or more instances of OccurrenceList may be passed to this method
|
1036
|
-
def rdates=(
|
1037
|
-
@rdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, val)}
|
1036
|
+
def rdates=(ruby_values)
|
1037
|
+
@rdate_property = ruby_values.map {|val| RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
1038
1038
|
end
|
1039
1039
|
|
1040
1040
|
# set the value of the RDATE property to a single value
|
@@ -1046,31 +1046,31 @@ module RiCal
|
|
1046
1046
|
# add one or more values to the RDATE property
|
1047
1047
|
# one or more instances of OccurrenceList may be passed to this method
|
1048
1048
|
def add_rdates(*ruby_values)
|
1049
|
-
ruby_values.
|
1049
|
+
ruby_values.each {|val| self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *val)}
|
1050
1050
|
end
|
1051
1051
|
|
1052
1052
|
# add one value to the RDATE property
|
1053
1053
|
# one instances of OccurrenceList may be passed to this method
|
1054
|
-
def add_rdate(ruby_value)
|
1055
|
-
self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value)
|
1054
|
+
def add_rdate(*ruby_value)
|
1055
|
+
self.rdate_property << RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value)
|
1056
1056
|
end
|
1057
1057
|
|
1058
1058
|
# remove one or more values from the RDATE property
|
1059
1059
|
# one or more instances of OccurrenceList may be passed to this method
|
1060
1060
|
def remove_rdates(*ruby_values)
|
1061
|
-
ruby_values.
|
1061
|
+
ruby_values.each {|val| self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *val))}
|
1062
1062
|
end
|
1063
1063
|
|
1064
1064
|
# remove one value from the RDATE property
|
1065
1065
|
# one instances of OccurrenceList may be passed to this method
|
1066
|
-
def remove_rdate(ruby_value)
|
1067
|
-
self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, ruby_value))
|
1066
|
+
def remove_rdate(*ruby_value)
|
1067
|
+
self.rdate_property.delete(RiCal::PropertyValue::OccurrenceList.convert(self, *ruby_value))
|
1068
1068
|
end
|
1069
1069
|
|
1070
1070
|
# return the value of the RDATE property
|
1071
1071
|
# which will be an array of instances of OccurrenceList
|
1072
1072
|
def rdate
|
1073
|
-
rdate_property.map {|prop| prop ? prop.
|
1073
|
+
rdate_property.map {|prop| prop ? prop.ruby_value : prop}
|
1074
1074
|
end
|
1075
1075
|
|
1076
1076
|
def rdate_property_from_string(line) # :nodoc:
|
@@ -1096,7 +1096,7 @@ module RiCal
|
|
1096
1096
|
|
1097
1097
|
# set the value of the EXRULE property to multiple values
|
1098
1098
|
# one or more instances of RecurrenceRule may be passed to this method
|
1099
|
-
def exrules=(
|
1099
|
+
def exrules=(ruby_values)
|
1100
1100
|
@exrule_property = ruby_values.map {|val| RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
1101
1101
|
end
|
1102
1102
|
|
@@ -1109,7 +1109,7 @@ module RiCal
|
|
1109
1109
|
# add one or more values to the EXRULE property
|
1110
1110
|
# one or more instances of RecurrenceRule may be passed to this method
|
1111
1111
|
def add_exrules(*ruby_values)
|
1112
|
-
ruby_values.
|
1112
|
+
ruby_values.each {|val| self.exrule_property << RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
1113
1113
|
end
|
1114
1114
|
|
1115
1115
|
# add one value to the EXRULE property
|
@@ -1121,7 +1121,7 @@ module RiCal
|
|
1121
1121
|
# remove one or more values from the EXRULE property
|
1122
1122
|
# one or more instances of RecurrenceRule may be passed to this method
|
1123
1123
|
def remove_exrules(*ruby_values)
|
1124
|
-
ruby_values.
|
1124
|
+
ruby_values.each {|val| self.exrule_property.delete(RiCal::PropertyValue::RecurrenceRule.convert(self, val))}
|
1125
1125
|
end
|
1126
1126
|
|
1127
1127
|
# remove one value from the EXRULE property
|
@@ -1133,7 +1133,7 @@ module RiCal
|
|
1133
1133
|
# return the value of the EXRULE property
|
1134
1134
|
# which will be an array of instances of RecurrenceRule
|
1135
1135
|
def exrule
|
1136
|
-
exrule_property.map {|prop| prop ? prop.
|
1136
|
+
exrule_property.map {|prop| prop ? prop.ruby_value : prop}
|
1137
1137
|
end
|
1138
1138
|
|
1139
1139
|
def exrule_property_from_string(line) # :nodoc:
|
@@ -1156,7 +1156,7 @@ module RiCal
|
|
1156
1156
|
|
1157
1157
|
# set the value of the REQUEST-STATUS property to multiple values
|
1158
1158
|
# one or more instances of String may be passed to this method
|
1159
|
-
def request_statuses=(
|
1159
|
+
def request_statuses=(ruby_values)
|
1160
1160
|
@request_status_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
1161
1161
|
end
|
1162
1162
|
|
@@ -1169,7 +1169,7 @@ module RiCal
|
|
1169
1169
|
# add one or more values to the REQUEST-STATUS property
|
1170
1170
|
# one or more instances of String may be passed to this method
|
1171
1171
|
def add_request_statuses(*ruby_values)
|
1172
|
-
ruby_values.
|
1172
|
+
ruby_values.each {|val| self.request_status_property << RiCal::PropertyValue::Text.convert(self, val)}
|
1173
1173
|
end
|
1174
1174
|
|
1175
1175
|
# add one value to the REQUEST-STATUS property
|
@@ -1181,7 +1181,7 @@ module RiCal
|
|
1181
1181
|
# remove one or more values from the REQUEST-STATUS property
|
1182
1182
|
# one or more instances of String may be passed to this method
|
1183
1183
|
def remove_request_statuses(*ruby_values)
|
1184
|
-
ruby_values.
|
1184
|
+
ruby_values.each {|val| self.request_status_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
1185
1185
|
end
|
1186
1186
|
|
1187
1187
|
# remove one value from the REQUEST-STATUS property
|
@@ -1193,7 +1193,7 @@ module RiCal
|
|
1193
1193
|
# return the value of the REQUEST-STATUS property
|
1194
1194
|
# which will be an array of instances of String
|
1195
1195
|
def request_status
|
1196
|
-
request_status_property.map {|prop| prop ? prop.
|
1196
|
+
request_status_property.map {|prop| prop ? prop.ruby_value : prop}
|
1197
1197
|
end
|
1198
1198
|
|
1199
1199
|
def request_status_property_from_string(line) # :nodoc:
|
@@ -1219,7 +1219,7 @@ module RiCal
|
|
1219
1219
|
|
1220
1220
|
# set the value of the RELATED-TO property to multiple values
|
1221
1221
|
# one or more instances of String may be passed to this method
|
1222
|
-
def multiple_related_to=(
|
1222
|
+
def multiple_related_to=(ruby_values)
|
1223
1223
|
@related_to_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
1224
1224
|
end
|
1225
1225
|
|
@@ -1232,7 +1232,7 @@ module RiCal
|
|
1232
1232
|
# add one or more values to the RELATED-TO property
|
1233
1233
|
# one or more instances of String may be passed to this method
|
1234
1234
|
def add_multiple_related_to(*ruby_values)
|
1235
|
-
ruby_values.
|
1235
|
+
ruby_values.each {|val| self.related_to_property << RiCal::PropertyValue::Text.convert(self, val)}
|
1236
1236
|
end
|
1237
1237
|
|
1238
1238
|
# add one value to the RELATED-TO property
|
@@ -1244,7 +1244,7 @@ module RiCal
|
|
1244
1244
|
# remove one or more values from the RELATED-TO property
|
1245
1245
|
# one or more instances of String may be passed to this method
|
1246
1246
|
def remove_multiple_related_to(*ruby_values)
|
1247
|
-
ruby_values.
|
1247
|
+
ruby_values.each {|val| self.related_to_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
1248
1248
|
end
|
1249
1249
|
|
1250
1250
|
# remove one value from the RELATED-TO property
|
@@ -1256,7 +1256,7 @@ module RiCal
|
|
1256
1256
|
# return the value of the RELATED-TO property
|
1257
1257
|
# which will be an array of instances of String
|
1258
1258
|
def related_to
|
1259
|
-
related_to_property.map {|prop| prop ? prop.
|
1259
|
+
related_to_property.map {|prop| prop ? prop.ruby_value : prop}
|
1260
1260
|
end
|
1261
1261
|
|
1262
1262
|
def related_to_property_from_string(line) # :nodoc:
|
@@ -1282,7 +1282,7 @@ module RiCal
|
|
1282
1282
|
|
1283
1283
|
# set the value of the RESOURCES property to multiple values
|
1284
1284
|
# one or more instances of Array may be passed to this method
|
1285
|
-
def multiple_resources=(
|
1285
|
+
def multiple_resources=(ruby_values)
|
1286
1286
|
@resources_property = ruby_values.map {|val| RiCal::PropertyValue::Array.convert(self, val)}
|
1287
1287
|
end
|
1288
1288
|
|
@@ -1295,7 +1295,7 @@ module RiCal
|
|
1295
1295
|
# add one or more values to the RESOURCES property
|
1296
1296
|
# one or more instances of Array may be passed to this method
|
1297
1297
|
def add_multiple_resources(*ruby_values)
|
1298
|
-
ruby_values.
|
1298
|
+
ruby_values.each {|val| self.resources_property << RiCal::PropertyValue::Array.convert(self, val)}
|
1299
1299
|
end
|
1300
1300
|
|
1301
1301
|
# add one value to the RESOURCES property
|
@@ -1307,7 +1307,7 @@ module RiCal
|
|
1307
1307
|
# remove one or more values from the RESOURCES property
|
1308
1308
|
# one or more instances of Array may be passed to this method
|
1309
1309
|
def remove_multiple_resources(*ruby_values)
|
1310
|
-
ruby_values.
|
1310
|
+
ruby_values.each {|val| self.resources_property.delete(RiCal::PropertyValue::Array.convert(self, val))}
|
1311
1311
|
end
|
1312
1312
|
|
1313
1313
|
# remove one value from the RESOURCES property
|
@@ -1319,7 +1319,7 @@ module RiCal
|
|
1319
1319
|
# return the value of the RESOURCES property
|
1320
1320
|
# which will be an array of instances of Array
|
1321
1321
|
def resources
|
1322
|
-
resources_property.map {|prop| prop ? prop.
|
1322
|
+
resources_property.map {|prop| prop ? prop.ruby_value : prop}
|
1323
1323
|
end
|
1324
1324
|
|
1325
1325
|
def resources_property_from_string(line) # :nodoc:
|
@@ -1345,7 +1345,7 @@ module RiCal
|
|
1345
1345
|
|
1346
1346
|
# set the value of the RRULE property to multiple values
|
1347
1347
|
# one or more instances of RecurrenceRule may be passed to this method
|
1348
|
-
def rrules=(
|
1348
|
+
def rrules=(ruby_values)
|
1349
1349
|
@rrule_property = ruby_values.map {|val| RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
1350
1350
|
end
|
1351
1351
|
|
@@ -1358,7 +1358,7 @@ module RiCal
|
|
1358
1358
|
# add one or more values to the RRULE property
|
1359
1359
|
# one or more instances of RecurrenceRule may be passed to this method
|
1360
1360
|
def add_rrules(*ruby_values)
|
1361
|
-
ruby_values.
|
1361
|
+
ruby_values.each {|val| self.rrule_property << RiCal::PropertyValue::RecurrenceRule.convert(self, val)}
|
1362
1362
|
end
|
1363
1363
|
|
1364
1364
|
# add one value to the RRULE property
|
@@ -1370,7 +1370,7 @@ module RiCal
|
|
1370
1370
|
# remove one or more values from the RRULE property
|
1371
1371
|
# one or more instances of RecurrenceRule may be passed to this method
|
1372
1372
|
def remove_rrules(*ruby_values)
|
1373
|
-
ruby_values.
|
1373
|
+
ruby_values.each {|val| self.rrule_property.delete(RiCal::PropertyValue::RecurrenceRule.convert(self, val))}
|
1374
1374
|
end
|
1375
1375
|
|
1376
1376
|
# remove one value from the RRULE property
|
@@ -1382,7 +1382,7 @@ module RiCal
|
|
1382
1382
|
# return the value of the RRULE property
|
1383
1383
|
# which will be an array of instances of RecurrenceRule
|
1384
1384
|
def rrule
|
1385
|
-
rrule_property.map {|prop| prop ? prop.
|
1385
|
+
rrule_property.map {|prop| prop ? prop.ruby_value : prop}
|
1386
1386
|
end
|
1387
1387
|
|
1388
1388
|
def rrule_property_from_string(line) # :nodoc:
|
@@ -290,7 +290,7 @@ module RiCal
|
|
290
290
|
|
291
291
|
# set the value of the ATTENDEE property to multiple values
|
292
292
|
# one or more instances of CalAddress may be passed to this method
|
293
|
-
def attendees=(
|
293
|
+
def attendees=(ruby_values)
|
294
294
|
@attendee_property = ruby_values.map {|val| RiCal::PropertyValue::CalAddress.convert(self, val)}
|
295
295
|
end
|
296
296
|
|
@@ -303,7 +303,7 @@ module RiCal
|
|
303
303
|
# add one or more values to the ATTENDEE property
|
304
304
|
# one or more instances of CalAddress may be passed to this method
|
305
305
|
def add_attendees(*ruby_values)
|
306
|
-
ruby_values.
|
306
|
+
ruby_values.each {|val| self.attendee_property << RiCal::PropertyValue::CalAddress.convert(self, val)}
|
307
307
|
end
|
308
308
|
|
309
309
|
# add one value to the ATTENDEE property
|
@@ -315,7 +315,7 @@ module RiCal
|
|
315
315
|
# remove one or more values from the ATTENDEE property
|
316
316
|
# one or more instances of CalAddress may be passed to this method
|
317
317
|
def remove_attendees(*ruby_values)
|
318
|
-
ruby_values.
|
318
|
+
ruby_values.each {|val| self.attendee_property.delete(RiCal::PropertyValue::CalAddress.convert(self, val))}
|
319
319
|
end
|
320
320
|
|
321
321
|
# remove one value from the ATTENDEE property
|
@@ -327,7 +327,7 @@ module RiCal
|
|
327
327
|
# return the value of the ATTENDEE property
|
328
328
|
# which will be an array of instances of CalAddress
|
329
329
|
def attendee
|
330
|
-
attendee_property.map {|prop| prop ? prop.
|
330
|
+
attendee_property.map {|prop| prop ? prop.ruby_value : prop}
|
331
331
|
end
|
332
332
|
|
333
333
|
def attendee_property_from_string(line) # :nodoc:
|
@@ -353,7 +353,7 @@ module RiCal
|
|
353
353
|
|
354
354
|
# set the value of the COMMENT property to multiple values
|
355
355
|
# one or more instances of String may be passed to this method
|
356
|
-
def comments=(
|
356
|
+
def comments=(ruby_values)
|
357
357
|
@comment_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
358
358
|
end
|
359
359
|
|
@@ -366,7 +366,7 @@ module RiCal
|
|
366
366
|
# add one or more values to the COMMENT property
|
367
367
|
# one or more instances of String may be passed to this method
|
368
368
|
def add_comments(*ruby_values)
|
369
|
-
ruby_values.
|
369
|
+
ruby_values.each {|val| self.comment_property << RiCal::PropertyValue::Text.convert(self, val)}
|
370
370
|
end
|
371
371
|
|
372
372
|
# add one value to the COMMENT property
|
@@ -378,7 +378,7 @@ module RiCal
|
|
378
378
|
# remove one or more values from the COMMENT property
|
379
379
|
# one or more instances of String may be passed to this method
|
380
380
|
def remove_comments(*ruby_values)
|
381
|
-
ruby_values.
|
381
|
+
ruby_values.each {|val| self.comment_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
382
382
|
end
|
383
383
|
|
384
384
|
# remove one value from the COMMENT property
|
@@ -390,7 +390,7 @@ module RiCal
|
|
390
390
|
# return the value of the COMMENT property
|
391
391
|
# which will be an array of instances of String
|
392
392
|
def comment
|
393
|
-
comment_property.map {|prop| prop ? prop.
|
393
|
+
comment_property.map {|prop| prop ? prop.ruby_value : prop}
|
394
394
|
end
|
395
395
|
|
396
396
|
def comment_property_from_string(line) # :nodoc:
|
@@ -416,7 +416,7 @@ module RiCal
|
|
416
416
|
|
417
417
|
# set the value of the FREEBUSY property to multiple values
|
418
418
|
# one or more instances of Period may be passed to this method
|
419
|
-
def freebusys=(
|
419
|
+
def freebusys=(ruby_values)
|
420
420
|
@freebusy_property = ruby_values.map {|val| RiCal::PropertyValue::Period.convert(self, val)}
|
421
421
|
end
|
422
422
|
|
@@ -429,7 +429,7 @@ module RiCal
|
|
429
429
|
# add one or more values to the FREEBUSY property
|
430
430
|
# one or more instances of Period may be passed to this method
|
431
431
|
def add_freebusys(*ruby_values)
|
432
|
-
ruby_values.
|
432
|
+
ruby_values.each {|val| self.freebusy_property << RiCal::PropertyValue::Period.convert(self, val)}
|
433
433
|
end
|
434
434
|
|
435
435
|
# add one value to the FREEBUSY property
|
@@ -441,7 +441,7 @@ module RiCal
|
|
441
441
|
# remove one or more values from the FREEBUSY property
|
442
442
|
# one or more instances of Period may be passed to this method
|
443
443
|
def remove_freebusys(*ruby_values)
|
444
|
-
ruby_values.
|
444
|
+
ruby_values.each {|val| self.freebusy_property.delete(RiCal::PropertyValue::Period.convert(self, val))}
|
445
445
|
end
|
446
446
|
|
447
447
|
# remove one value from the FREEBUSY property
|
@@ -453,7 +453,7 @@ module RiCal
|
|
453
453
|
# return the value of the FREEBUSY property
|
454
454
|
# which will be an array of instances of Period
|
455
455
|
def freebusy
|
456
|
-
freebusy_property.map {|prop| prop ? prop.
|
456
|
+
freebusy_property.map {|prop| prop ? prop.ruby_value : prop}
|
457
457
|
end
|
458
458
|
|
459
459
|
def freebusy_property_from_string(line) # :nodoc:
|
@@ -476,7 +476,7 @@ module RiCal
|
|
476
476
|
|
477
477
|
# set the value of the REQUEST-STATUS property to multiple values
|
478
478
|
# one or more instances of String may be passed to this method
|
479
|
-
def request_statuses=(
|
479
|
+
def request_statuses=(ruby_values)
|
480
480
|
@request_status_property = ruby_values.map {|val| RiCal::PropertyValue::Text.convert(self, val)}
|
481
481
|
end
|
482
482
|
|
@@ -489,7 +489,7 @@ module RiCal
|
|
489
489
|
# add one or more values to the REQUEST-STATUS property
|
490
490
|
# one or more instances of String may be passed to this method
|
491
491
|
def add_request_statuses(*ruby_values)
|
492
|
-
ruby_values.
|
492
|
+
ruby_values.each {|val| self.request_status_property << RiCal::PropertyValue::Text.convert(self, val)}
|
493
493
|
end
|
494
494
|
|
495
495
|
# add one value to the REQUEST-STATUS property
|
@@ -501,7 +501,7 @@ module RiCal
|
|
501
501
|
# remove one or more values from the REQUEST-STATUS property
|
502
502
|
# one or more instances of String may be passed to this method
|
503
503
|
def remove_request_statuses(*ruby_values)
|
504
|
-
ruby_values.
|
504
|
+
ruby_values.each {|val| self.request_status_property.delete(RiCal::PropertyValue::Text.convert(self, val))}
|
505
505
|
end
|
506
506
|
|
507
507
|
# remove one value from the REQUEST-STATUS property
|
@@ -513,7 +513,7 @@ module RiCal
|
|
513
513
|
# return the value of the REQUEST-STATUS property
|
514
514
|
# which will be an array of instances of String
|
515
515
|
def request_status
|
516
|
-
request_status_property.map {|prop| prop ? prop.
|
516
|
+
request_status_property.map {|prop| prop ? prop.ruby_value : prop}
|
517
517
|
end
|
518
518
|
|
519
519
|
def request_status_property_from_string(line) # :nodoc:
|