intouch-gcal4ruby 0.5.9 → 0.5.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/gcal4ruby/recurrence.rb +6 -6
- metadata +1 -1
data/lib/gcal4ruby/recurrence.rb
CHANGED
@@ -91,16 +91,16 @@ module GCal4Ruby
|
|
91
91
|
when 'DAILY'
|
92
92
|
@frequency['daily'] = true
|
93
93
|
when 'WEEKLY'
|
94
|
-
@frequency['weekly'] = args[:byday].split(',')
|
94
|
+
@frequency['weekly'] = args[:byday] && args[:byday].split(',')
|
95
95
|
when 'MONTHLY'
|
96
96
|
if args[:byday]
|
97
|
-
@frequency['monthly'] = args[:byday]
|
97
|
+
@frequency['monthly'] = args[:byday] || ""
|
98
98
|
@frequency[:day_of_week] = true
|
99
99
|
else
|
100
|
-
@frequency['monthly'] = args[:bymonthday].to_i
|
100
|
+
@frequency['monthly'] = args[:bymonthday] && args[:bymonthday].to_i
|
101
101
|
end
|
102
102
|
when 'YEARLY'
|
103
|
-
@frequency['yearly'] = args[:byyearday].to_i
|
103
|
+
@frequency['yearly'] = args[:byyearday] && args[:byyearday].to_i
|
104
104
|
end
|
105
105
|
elsif key == 'INTERVAL'
|
106
106
|
@frequency[:interval] = value.to_i unless value.nil? || value.empty?
|
@@ -168,12 +168,12 @@ module GCal4Ruby
|
|
168
168
|
if @all_day
|
169
169
|
output += "DTSTART;VALUE=DATE:#{@start_time.utc.strftime("%Y%m%d")}\n"
|
170
170
|
else
|
171
|
-
output += "DTSTART;VALUE=DATE-TIME:#{@start_time.
|
171
|
+
output += "DTSTART;VALUE=DATE-TIME:#{@start_time.complete}\n"
|
172
172
|
end
|
173
173
|
if @all_day
|
174
174
|
output += "DTEND;VALUE=DATE:#{@end_time.utc.strftime("%Y%m%d")}\n"
|
175
175
|
else
|
176
|
-
output += "DTEND;VALUE=DATE-TIME:#{@end_time.
|
176
|
+
output += "DTEND;VALUE=DATE-TIME:#{@end_time.complete}\n"
|
177
177
|
end
|
178
178
|
output += "RRULE:"
|
179
179
|
if @frequency
|