cronofy 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cronofy/client.rb +15 -3
- data/lib/cronofy/version.rb +1 -1
- data/spec/lib/cronofy/client_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ef54cf80598736effb76cce568f2e62068814df
|
4
|
+
data.tar.gz: 1d6a3ea42bf9aed5dd5baf87bcf8d0d3f102d3cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62669f6fef7ca94d82076133a01c6253cab630bf7d41a7f8c304113cd7a0ee90dfcba7c8bc929463e2329dc3afbeef1d96909c3f8ef950e4e4e4f37d7ba4c095
|
7
|
+
data.tar.gz: 3fdffca4993dcd83c62f901dc6a3b422c6b5c98a8183116a869f94eb7e785499c53cb518bfef154dc72a363ebd440d37f5356ff2a7393232d86a9980fdde3d33
|
data/lib/cronofy/client.rb
CHANGED
@@ -121,8 +121,8 @@ module Cronofy
|
|
121
121
|
# identifier from the IANA Time Zone Database
|
122
122
|
# (default: Etc/UTC).
|
123
123
|
# :include_deleted - A Boolean specifying whether events that have
|
124
|
-
# been deleted should included or excluded
|
125
|
-
# the results (optional).
|
124
|
+
# been deleted should be included or excluded
|
125
|
+
# from the results (optional).
|
126
126
|
# :include_moved - A Boolean specifying whether events that have
|
127
127
|
# ever existed within the given window should
|
128
128
|
# be included or excluded from the results
|
@@ -134,8 +134,14 @@ module Cronofy
|
|
134
134
|
# :only_managed - A Boolean specifying whether only events that
|
135
135
|
# you are managing for the account should
|
136
136
|
# trigger notifications (optional).
|
137
|
+
# :localized_times - A Boolean specifying whether the start and
|
138
|
+
# end times should be returned with any
|
139
|
+
# available localization information
|
140
|
+
# (optional).
|
137
141
|
# :last_modified - The Time that events must be modified on or
|
138
142
|
# after in order to be returned (optional).
|
143
|
+
# :calendar_ids - An Array of calendar ids for restricting the
|
144
|
+
# returned events (optional).
|
139
145
|
#
|
140
146
|
# The first page will be retrieved eagerly so that common errors will happen
|
141
147
|
# inline. However, subsequent pages (if any) will be requested lazily.
|
@@ -178,6 +184,12 @@ module Cronofy
|
|
178
184
|
# are managing for the account should be
|
179
185
|
# included or excluded from the results
|
180
186
|
# (optional).
|
187
|
+
# :localized_times - A Boolean specifying whether the start and
|
188
|
+
# end times should be returned with any
|
189
|
+
# available localization information
|
190
|
+
# (optional).
|
191
|
+
# :calendar_ids - An Array of calendar ids for restricting the
|
192
|
+
# returned events (optional).
|
181
193
|
#
|
182
194
|
# The first page will be retrieved eagerly so that common errors will happen
|
183
195
|
# inline. However, subsequent pages (if any) will be requested lazily.
|
@@ -250,7 +262,7 @@ module Cronofy
|
|
250
262
|
# Raises Cronofy::TooManyRequestsError if the request exceeds the rate
|
251
263
|
# limits for the application.
|
252
264
|
def delete_all_events
|
253
|
-
delete("/v1/events",
|
265
|
+
delete("/v1/events", delete_all: true)
|
254
266
|
nil
|
255
267
|
end
|
256
268
|
|
data/lib/cronofy/version.rb
CHANGED
@@ -457,7 +457,7 @@ describe Cronofy::Client do
|
|
457
457
|
let(:request_url) { "https://api.cronofy.com/v1/events" }
|
458
458
|
let(:method) { :delete }
|
459
459
|
let(:request_headers) { json_request_headers }
|
460
|
-
let(:request_body) { { :
|
460
|
+
let(:request_body) { { :delete_all => true } }
|
461
461
|
let(:correct_response_code) { 202 }
|
462
462
|
let(:correct_response_body) { nil }
|
463
463
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cronofy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergii Paryzhskyi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|