gcal4ruby 0.3.0 → 0.3.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/CHANGELOG +3 -0
- data/lib/gcal4ruby/calendar.rb +1 -1
- data/lib/gcal4ruby/event.rb +3 -3
- data/lib/gcal4ruby/service.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
#=CHANGELOG
|
2
|
+
#==version 0.3.1
|
3
|
+
#* Fixed Event.find method to work with secondary calendars and google apps accounts. Fix provided by groesser3.
|
4
|
+
#* Added max results to Calendar.find.
|
2
5
|
#==version 0.3.0
|
3
6
|
#* Rewrote Event.find to improve performance significantly.
|
4
7
|
#* Added improvements to event recurrence handling, including loading existing recurrences, changing recurring events to non recurring and vice versa.
|
data/lib/gcal4ruby/calendar.rb
CHANGED
@@ -185,7 +185,7 @@ class Calendar
|
|
185
185
|
#scope parameter may be either :all to return an array of matches, or :first to return
|
186
186
|
#the first match as a Calendar object.
|
187
187
|
def self.find(service, query_term=nil, params = {})
|
188
|
-
t = query_term.downcase
|
188
|
+
t = query_term.downcase if query_term
|
189
189
|
cals = service.calendars
|
190
190
|
ret = []
|
191
191
|
cals.each do |cal|
|
data/lib/gcal4ruby/event.rb
CHANGED
@@ -392,9 +392,9 @@ module GCal4Ruby
|
|
392
392
|
|
393
393
|
if test
|
394
394
|
puts "id passed, finding event by id" if calendar.service.debug
|
395
|
-
|
396
|
-
event_id = query.gsub("
|
397
|
-
|
395
|
+
puts "id = "+query if calendar.service.debug
|
396
|
+
event_id = query.gsub("/events/","/private/full/") #fix provided by groesser3
|
397
|
+
|
398
398
|
es = calendar.service.send_get(event_id)
|
399
399
|
puts es.inspect if calendar.service.debug
|
400
400
|
if es
|
data/lib/gcal4ruby/service.rb
CHANGED
@@ -58,7 +58,7 @@ class Service < Base
|
|
58
58
|
if not @auth_token
|
59
59
|
raise NotAuthenticated
|
60
60
|
end
|
61
|
-
ret = send_get(CALENDAR_LIST_FEED)
|
61
|
+
ret = send_get(CALENDAR_LIST_FEED+"?max-results=10000")
|
62
62
|
cals = []
|
63
63
|
REXML::Document.new(ret.body).root.elements.each("entry"){}.map do |entry|
|
64
64
|
entry.attributes["xmlns:gCal"] = "http://schemas.google.com/gCal/2005"
|
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.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Reich
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-02-02 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|