h13ronim-gcal4ruby 0.2.6 → 0.2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gcal4ruby/calendar.rb +4 -1
- metadata +5 -4
data/lib/gcal4ruby/calendar.rb
CHANGED
@@ -89,6 +89,9 @@ class Calendar
|
|
89
89
|
#Set the calendar to public (p = true) or private (p = false). Publically viewable
|
90
90
|
#calendars can be accessed by anyone without having to log in to google calendar. See
|
91
91
|
#Calendar#to_iframe for options to display a public calendar in a webpage.
|
92
|
+
#
|
93
|
+
#The calendar must exist on the google service before setting the calendar to public.
|
94
|
+
#The setting is saved immediately--it's not necessary to call save.
|
92
95
|
def public=(p)
|
93
96
|
if p
|
94
97
|
permissions = 'http://schemas.google.com/gCal/2005#read'
|
@@ -299,7 +302,7 @@ class Calendar
|
|
299
302
|
ele.elements.each do |e|
|
300
303
|
#puts "e = "+e.to_s if @service.debug
|
301
304
|
#puts "previous element = "+e.previous_element.to_s if @service.debug
|
302
|
-
if e.name == 'role' and e.previous_element.name == 'scope' and e.previous_element.attributes['type'] == 'default'
|
305
|
+
if e.name == 'role' and e.previous_element and e.previous_element.name == 'scope' and e.previous_element.attributes['type'] == 'default'
|
303
306
|
if e.attributes['value'].match('#read')
|
304
307
|
@public = true
|
305
308
|
else
|
metadata
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: h13ronim-gcal4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.6
|
4
|
+
version: 0.2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Reich
|
8
|
+
- "Marcin Micha\xC5\x82owski"
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date: 2009-
|
13
|
+
date: 2009-12-19 00:00:00 +01:00
|
13
14
|
default_executable:
|
14
15
|
dependencies: []
|
15
16
|
|
16
17
|
description: A full featured wrapper for interacting with the Google Calendar API
|
17
|
-
email:
|
18
|
+
email: h13ronim@gmail.com
|
18
19
|
executables: []
|
19
20
|
|
20
21
|
extensions: []
|
@@ -31,7 +32,7 @@ files:
|
|
31
32
|
- lib/gcal4ruby/event.rb
|
32
33
|
- lib/gcal4ruby/recurrence.rb
|
33
34
|
has_rdoc: true
|
34
|
-
homepage: http://
|
35
|
+
homepage: http://github.com/h13ronim/gcal4ruby
|
35
36
|
licenses: []
|
36
37
|
|
37
38
|
post_install_message:
|