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.
Files changed (2) hide show
  1. data/lib/gcal4ruby/recurrence.rb +6 -6
  2. metadata +1 -1
@@ -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.utc.complete}\n"
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.utc.complete}\n"
176
+ output += "DTEND;VALUE=DATE-TIME:#{@end_time.complete}\n"
177
177
  end
178
178
  output += "RRULE:"
179
179
  if @frequency
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: intouch-gcal4ruby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.9
5
+ version: 0.5.9.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Reich