relevant-google-calendar 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'gcal4ruby'
3
3
 
4
4
  module Relevant
5
5
  class GoogleCalendar
6
- Version = "0.0.1"
6
+ Version = "0.0.2"
7
7
  include Relevant::Widget
8
8
 
9
9
  available_options :title => :string, :username => :string, :password => :password, :calendar => :string, :search => :string
@@ -57,7 +57,7 @@ module Relevant
57
57
  end
58
58
 
59
59
  def events
60
- event_options = {'calendar' => calendar.id, 'start-min' => Date.today.beginning_of_day.utc.xmlschema, 'start-max' => 6.days.from_now.end_of_day.utc.xmlschema}
60
+ event_options = {'start-min' => Date.today.beginning_of_day.utc.xmlschema, 'start-max' => 6.days.from_now.end_of_day.utc.xmlschema, :calendar => calendar.id}
61
61
  @events ||= GCal4Ruby::Event.find(gcal, options[:search], event_options)
62
62
  end
63
63
 
@@ -67,4 +67,4 @@ module Relevant
67
67
  end
68
68
  end
69
69
 
70
- Relevant.register Relevant::GoogleCalendar
70
+ Relevant.register Relevant::GoogleCalendar
@@ -19,7 +19,7 @@ describe Relevant::GoogleCalendar do
19
19
  it 'calls out to the Google Calendar api' do
20
20
  widget.stubs(:calendar).returns(stub('calendar', :id => 123))
21
21
  expected_options = {
22
- 'calendar' => 123,
22
+ :calendar => 123,
23
23
  'start-min' => Date.today.beginning_of_day.utc.xmlschema,
24
24
  'start-max' => 6.days.from_now.end_of_day.utc.xmlschema
25
25
  }
@@ -40,4 +40,4 @@ describe Relevant::GoogleCalendar do
40
40
  end
41
41
  end
42
42
 
43
- end
43
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jared Pace
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-29 00:00:00 -04:00
17
+ date: 2010-10-08 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency