google_calendar 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -11
- data/google_calendar.gemspec +13 -13
- data/lib/google/calendar.rb +1 -1
- data/test/test_google_calendar.rb +6 -6
- metadata +48 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c297b3a72681304aedd3ab416624ad08cf0a81a0
|
4
|
+
data.tar.gz: e442a228ba475e8aaffc59450146ba5f1ebe0fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e9f87759fb2caaecc84a997afef82fcced67b8551d5c71da44d4043106f192bed69c520951dde71c9b1d870f681433ab1b52b0255fc5d9cffa1035012900f7e
|
7
|
+
data.tar.gz: 5fcd845f10346f292710c16c5cba98c35aae2a0889fc1affb3ea623bf02b89877998c8c734baef722b63d648364cbe0f802c8147f11df88779260c22961a69ca
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
google_calendar (0.4.
|
5
|
-
signet (
|
4
|
+
google_calendar (0.4.1)
|
5
|
+
signet (~> 0.5)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
@@ -81,15 +81,15 @@ PLATFORMS
|
|
81
81
|
ruby
|
82
82
|
|
83
83
|
DEPENDENCIES
|
84
|
-
bundler (>= 1.
|
84
|
+
bundler (>= 1.2)
|
85
85
|
codeclimate-test-reporter
|
86
86
|
google_calendar!
|
87
|
-
guard-minitest
|
87
|
+
guard-minitest (~> 2.3)
|
88
88
|
minitest (~> 5.1)
|
89
|
-
minitest-reporters
|
90
|
-
mocha
|
91
|
-
rake (
|
92
|
-
rb-fsevent
|
93
|
-
rdoc (
|
94
|
-
shoulda-context
|
95
|
-
terminal-notifier-guard
|
89
|
+
minitest-reporters (~> 1.0)
|
90
|
+
mocha (~> 1.1)
|
91
|
+
rake (~> 10)
|
92
|
+
rb-fsevent (~> 0.9)
|
93
|
+
rdoc (~> 4.1)
|
94
|
+
shoulda-context (~> 1.2)
|
95
|
+
terminal-notifier-guard (~> 1.6)
|
data/google_calendar.gemspec
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "google_calendar"
|
5
|
-
s.version = "0.4.
|
6
|
-
s.date = "2014-11-
|
5
|
+
s.version = "0.4.2"
|
6
|
+
s.date = "2014-11-23"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
|
@@ -24,19 +24,19 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
25
25
|
|
26
26
|
s.require_paths = ["lib"]
|
27
|
-
s.rubygems_version = "
|
27
|
+
s.rubygems_version = "2.2.2"
|
28
28
|
|
29
|
-
s.add_runtime_dependency(%q<signet>, ["
|
29
|
+
s.add_runtime_dependency(%q<signet>, ["~> 0.5"])
|
30
30
|
|
31
|
-
s.add_development_dependency(%q<terminal-notifier-guard>, ["
|
32
|
-
s.add_development_dependency(%q<rb-fsevent>, ["
|
33
|
-
s.add_development_dependency(%q<guard-minitest>, ["
|
31
|
+
s.add_development_dependency(%q<terminal-notifier-guard>, ["~> 1.6"])
|
32
|
+
s.add_development_dependency(%q<rb-fsevent>, ["~> 0.9"])
|
33
|
+
s.add_development_dependency(%q<guard-minitest>, ["~> 2.3"])
|
34
34
|
s.add_development_dependency(%q<minitest>, ["~> 5.1"])
|
35
|
-
s.add_development_dependency(%q<minitest-reporters>, ["
|
36
|
-
s.add_development_dependency(%q<shoulda-context>, ["
|
37
|
-
s.add_development_dependency(%q<bundler>, [">= 1.
|
38
|
-
s.add_development_dependency(%q<mocha>, ["
|
39
|
-
s.add_development_dependency(%q<rake>, ["
|
40
|
-
s.add_development_dependency(%q<rdoc>, ["
|
35
|
+
s.add_development_dependency(%q<minitest-reporters>, ["~> 1.0"])
|
36
|
+
s.add_development_dependency(%q<shoulda-context>, ["~> 1.2"])
|
37
|
+
s.add_development_dependency(%q<bundler>, [">= 1.2"])
|
38
|
+
s.add_development_dependency(%q<mocha>, ["~> 1.1"])
|
39
|
+
s.add_development_dependency(%q<rake>, ["~> 10"])
|
40
|
+
s.add_development_dependency(%q<rdoc>, ["~> 4.1"])
|
41
41
|
|
42
42
|
end
|
data/lib/google/calendar.rb
CHANGED
@@ -79,16 +79,16 @@ class TestGoogleCalendar < Minitest::Test
|
|
79
79
|
end
|
80
80
|
|
81
81
|
should "find events in range" do
|
82
|
-
start_min =
|
83
|
-
start_max =
|
84
|
-
@calendar.expects(:event_lookup).with('?timeMin=2011-02-
|
82
|
+
start_min = Time.new(2011, 2, 1, 11, 1, 1).utc
|
83
|
+
start_max = Time.new(2011, 2, 28, 23, 59, 59).utc
|
84
|
+
@calendar.expects(:event_lookup).with('?timeMin=2011-02-01T19:01:01Z&timeMax=2011-03-01T07:59:59Z&orderBy=startTime&maxResults=25&singleEvents=true')
|
85
85
|
events = @calendar.find_events_in_range(start_min, start_max)
|
86
86
|
end
|
87
87
|
|
88
88
|
should "find future events" do
|
89
|
-
now =
|
90
|
-
|
91
|
-
formatted_time = now.strftime("%FT%
|
89
|
+
now = Time.now.utc
|
90
|
+
Time.stubs(:now).returns(now)
|
91
|
+
formatted_time = now.strftime("%FT%TZ")
|
92
92
|
@calendar.expects(:event_lookup).with("?timeMin=#{formatted_time}&orderBy=startTime&maxResults=25&singleEvents=true")
|
93
93
|
events = @calendar.find_future_events()
|
94
94
|
end
|
metadata
CHANGED
@@ -1,169 +1,169 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Zich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: signet
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.5
|
19
|
+
version: '0.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.5
|
26
|
+
version: '0.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: terminal-notifier-guard
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.6'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rb-fsevent
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '0.9'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '0.9'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: guard-minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '5.1'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '5.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest-reporters
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '1.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '1.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: shoulda-context
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '1.2'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '1.2'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: bundler
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: '1.2'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: '1.2'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: mocha
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '1.1'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ~>
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '1.1'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rake
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '10'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '10'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rdoc
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '4.1'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ~>
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '4.1'
|
167
167
|
description: A minimal wrapper around the google calendar API
|
168
168
|
email: steve.zich@gmail.com
|
169
169
|
executables: []
|
@@ -172,9 +172,9 @@ extra_rdoc_files:
|
|
172
172
|
- LICENSE.txt
|
173
173
|
- README.rdoc
|
174
174
|
files:
|
175
|
-
-
|
176
|
-
-
|
177
|
-
-
|
175
|
+
- .document
|
176
|
+
- .gitignore
|
177
|
+
- .travis.yml
|
178
178
|
- Gemfile
|
179
179
|
- Gemfile.lock
|
180
180
|
- Guardfile
|
@@ -215,17 +215,17 @@ require_paths:
|
|
215
215
|
- lib
|
216
216
|
required_ruby_version: !ruby/object:Gem::Requirement
|
217
217
|
requirements:
|
218
|
-
- -
|
218
|
+
- - '>='
|
219
219
|
- !ruby/object:Gem::Version
|
220
220
|
version: '0'
|
221
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
222
|
requirements:
|
223
|
-
- -
|
223
|
+
- - '>='
|
224
224
|
- !ruby/object:Gem::Version
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
227
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.
|
228
|
+
rubygems_version: 2.0.3
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: A lightweight Google Calendar API wrapper
|