cronofy 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/cronofy/client.rb +13 -0
- data/lib/cronofy/version.rb +1 -1
- data/spec/lib/cronofy/client_spec.rb +14 -0
- 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: fa7e6a2224cf42059e1fcd9ec2cbe7a24c3f4c2f
|
4
|
+
data.tar.gz: 281145fb34777b3ea9edb282380251c2746d600e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4d20a06861fd14a1a70f67a77b7065f695e0b33e347024c4fe3aab58bcfdf12efa2aa4029e2639a9af5ce6966299c03d5dcaaf30048a59e84047e511f212d6a
|
7
|
+
data.tar.gz: da6d9a983f352fbf774a5670d08d817d3615ed74020c3524bf0cd467c159679a7358634315d0225a702dc74508e3847db96fab870a528feb4020426f39ec929d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [0.24.0]
|
2
|
+
|
3
|
+
* Support for revoking profile authorization [#48]
|
4
|
+
|
1
5
|
## [0.23.0]
|
2
6
|
|
3
7
|
* Support for color with calendar creation and event upsert [#46]
|
@@ -70,6 +74,7 @@
|
|
70
74
|
[0.21.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.21.0
|
71
75
|
[0.22.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.22.0
|
72
76
|
[0.23.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.23.0
|
77
|
+
[0.24.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.24.0
|
73
78
|
|
74
79
|
[#13]: https://github.com/cronofy/cronofy-ruby/pull/13
|
75
80
|
[#16]: https://github.com/cronofy/cronofy-ruby/pull/16
|
@@ -90,3 +95,4 @@
|
|
90
95
|
[#44]: https://github.com/cronofy/cronofy-ruby/pull/44
|
91
96
|
[#45]: https://github.com/cronofy/cronofy-ruby/pull/45
|
92
97
|
[#46]: https://github.com/cronofy/cronofy-ruby/pull/46
|
98
|
+
[#48]: https://github.com/cronofy/cronofy-ruby/pull/48
|
data/lib/cronofy/client.rb
CHANGED
@@ -961,6 +961,19 @@ module Cronofy
|
|
961
961
|
parse_json(String, 'link_token', response)
|
962
962
|
end
|
963
963
|
|
964
|
+
# Public: Revokes the authorization to the given profile.
|
965
|
+
#
|
966
|
+
# See https://www.cronofy.com/developers/api/alpha/#revoke-profile for
|
967
|
+
# reference.
|
968
|
+
#
|
969
|
+
# Returns nothing.
|
970
|
+
#
|
971
|
+
# Raises Cronofy::CredentialsMissingError if no credentials available.
|
972
|
+
def revoke_profile_authorization(profile_id)
|
973
|
+
post("/v1/profiles/#{profile_id}/revoke", nil)
|
974
|
+
nil
|
975
|
+
end
|
976
|
+
|
964
977
|
private
|
965
978
|
|
966
979
|
def translate_available_periods(periods)
|
data/lib/cronofy/version.rb
CHANGED
@@ -1172,6 +1172,20 @@ describe Cronofy::Client do
|
|
1172
1172
|
it_behaves_like 'a Cronofy request with mapped return value'
|
1173
1173
|
end
|
1174
1174
|
|
1175
|
+
describe '#revoke_profile_authorization' do
|
1176
|
+
let(:request_url) { "https://api.cronofy.com/v1/profiles/#{profile_id}/revoke" }
|
1177
|
+
let(:method) { :post }
|
1178
|
+
let(:request_body) { nil }
|
1179
|
+
let(:profile_id) { "pro_1234abc" }
|
1180
|
+
|
1181
|
+
let(:correct_response_code) { 202 }
|
1182
|
+
let(:correct_response_body) { nil }
|
1183
|
+
|
1184
|
+
subject { client.revoke_profile_authorization(profile_id) }
|
1185
|
+
|
1186
|
+
it_behaves_like 'a Cronofy request'
|
1187
|
+
end
|
1188
|
+
|
1175
1189
|
describe 'Availability' do
|
1176
1190
|
describe '#availability' do
|
1177
1191
|
let(:method) { :post }
|
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.
|
4
|
+
version: 0.24.0
|
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: 2017-
|
12
|
+
date: 2017-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|