gcal4ruby 0.1.1 → 0.1.2
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/CHANGELOG +2 -0
- data/lib/gcal4ruby/calendar.rb +10 -3
- metadata +5 -3
data/CHANGELOG
CHANGED
data/lib/gcal4ruby/calendar.rb
CHANGED
@@ -221,11 +221,11 @@ class Calendar
|
|
221
221
|
when "timezone"
|
222
222
|
ele.attributes["value"] = @timezone
|
223
223
|
when "hidden"
|
224
|
-
ele.attributes["value"] = @hidden
|
224
|
+
ele.attributes["value"] = @hidden.to_s
|
225
225
|
when "color"
|
226
226
|
ele.attributes["value"] = @color
|
227
227
|
when "selected"
|
228
|
-
ele.attributes["value"] = @selected
|
228
|
+
ele.attributes["value"] = @selected.to_s
|
229
229
|
end
|
230
230
|
end
|
231
231
|
xml.to_s
|
@@ -262,7 +262,14 @@ class Calendar
|
|
262
262
|
@event_feed = "http://www.google.com/calendar/feeds/#{@id}/private/full"
|
263
263
|
|
264
264
|
puts "Getting ACL Feed" if @service.debug
|
265
|
-
|
265
|
+
|
266
|
+
#rescue error on shared calenar ACL list access
|
267
|
+
begin
|
268
|
+
ret = @service.send_get("http://www.google.com/calendar/feeds/#{@id}/acl/full/")
|
269
|
+
rescue Exception => e
|
270
|
+
@public = false
|
271
|
+
return true
|
272
|
+
end
|
266
273
|
r = REXML::Document.new(ret.read_body)
|
267
274
|
r.root.elements.each("entry") do |ele|
|
268
275
|
ele.elements.each do |e|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gcal4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Reich
|
@@ -32,6 +32,8 @@ files:
|
|
32
32
|
- lib/gcal4ruby/recurrence.rb
|
33
33
|
has_rdoc: true
|
34
34
|
homepage: http://gcal4ruby.rubyforge.org/
|
35
|
+
licenses: []
|
36
|
+
|
35
37
|
post_install_message:
|
36
38
|
rdoc_options: []
|
37
39
|
|
@@ -52,9 +54,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
54
|
requirements: []
|
53
55
|
|
54
56
|
rubyforge_project: gcal4ruby
|
55
|
-
rubygems_version: 1.3.
|
57
|
+
rubygems_version: 1.3.4
|
56
58
|
signing_key:
|
57
|
-
specification_version:
|
59
|
+
specification_version: 3
|
58
60
|
summary: A full featured wrapper for interacting with the Google Calendar API
|
59
61
|
test_files:
|
60
62
|
- test/unit.rb
|