cronofy 0.23.0 → 0.24.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f49556775f54db6e9d33b86eb11a597abd666d74
4
- data.tar.gz: b1fcdc132ab95869f21173f4e5b2f0d07f75ae89
3
+ metadata.gz: fa7e6a2224cf42059e1fcd9ec2cbe7a24c3f4c2f
4
+ data.tar.gz: 281145fb34777b3ea9edb282380251c2746d600e
5
5
  SHA512:
6
- metadata.gz: 079b7acfd635b54c5455e729825e501ed0a98468b0879159ea5bb7949ca0088e41cddbc55d139a8de077e864403a643e4fc5d8f2e656c001921a1a8ba500b5c1
7
- data.tar.gz: 9c21a0271003820802875da88e19b8fa157e37720ac2f5c434ec3cd8d1b945c7220b3fce18071b2c02f402ee6b8fd88d1fe871651a6e019bc8edd74e8d900d01
6
+ metadata.gz: c4d20a06861fd14a1a70f67a77b7065f695e0b33e347024c4fe3aab58bcfdf12efa2aa4029e2639a9af5ce6966299c03d5dcaaf30048a59e84047e511f212d6a
7
+ data.tar.gz: da6d9a983f352fbf774a5670d08d817d3615ed74020c3524bf0cd467c159679a7358634315d0225a702dc74508e3847db96fab870a528feb4020426f39ec929d
@@ -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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Cronofy
2
- VERSION = "0.23.0".freeze
2
+ VERSION = "0.24.0".freeze
3
3
  end
@@ -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.23.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-07-21 00:00:00.000000000 Z
12
+ date: 2017-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2