cronofy 0.27.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4e2e097925e5ee3b1dce3ec0ac5dd539df7640b
4
- data.tar.gz: 91614467858b2955a9658a23beb6c0cd9de44712
3
+ metadata.gz: 7712c2351147592f8b389f18e38dc70322a5f80c
4
+ data.tar.gz: 97765e76a782494c26b24df7cf3a6071b715d89c
5
5
  SHA512:
6
- metadata.gz: 893a65940415df45c8e5b7c6c49c0cda2ae3302196078c20b420a29166a2a060704192b8ffbfe5926e2de9c1aafd089a698304548a09181c46124c874ea5ec74
7
- data.tar.gz: bcfa6bbf8bfc19c637f206a29b37eedb38c3320cb7316a7878e7a0defc60891995601a9600c46a04a126d05d666a3177fbc1b834cea8151edfd6de3001bb2dc7
6
+ metadata.gz: a9059c6117724bc2ee2ce85e328ff87aa4f87ba50a785e3b43a61b6592e1f9193f2092aee5f7b13c687f714e4f11ef65aab54d81142aa317bd8ccd2862b37fe9
7
+ data.tar.gz: a2c514b31dd918278abc9e1914672c814953ddab668c57a783380223fe852d5c4815526d4dcf1bc8f2d0007b19f864aba18edae4e537de6c1f8da58a3f62f48c
@@ -1,3 +1,7 @@
1
+ ## [0.28.0]
2
+
3
+ * Added support for handling subs from Token responses [#58]
4
+
1
5
  ## [0.27.0]
2
6
 
3
7
  * Added support for Application Calendars [#57]
@@ -106,6 +110,7 @@
106
110
  [0.26.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.26.0
107
111
  [0.26.1]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.26.1
108
112
  [0.27.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.27.0
113
+ [0.28.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.28.0
109
114
 
110
115
  [#13]: https://github.com/cronofy/cronofy-ruby/pull/13
111
116
  [#16]: https://github.com/cronofy/cronofy-ruby/pull/16
@@ -134,3 +139,4 @@
134
139
  [#55]: https://github.com/cronofy/cronofy-ruby/pull/55
135
140
  [#56]: https://github.com/cronofy/cronofy-ruby/pull/56
136
141
  [#57]: https://github.com/cronofy/cronofy-ruby/pull/57
142
+ [#58]: https://github.com/cronofy/cronofy-ruby/pull/58
@@ -36,6 +36,7 @@ module Cronofy
36
36
  attr_reader :access_token
37
37
  attr_reader :account_id
38
38
  attr_reader :application_calendar_id
39
+ attr_reader :sub
39
40
  attr_reader :expires_at
40
41
  attr_reader :expires_in
41
42
  attr_reader :linking_profile
@@ -46,6 +47,7 @@ module Cronofy
46
47
  @access_token = oauth_token.token
47
48
  @account_id = oauth_token.params['account_id']
48
49
  @application_calendar_id = oauth_token.params['application_calendar_id']
50
+ @sub = oauth_token.params['sub']
49
51
  @expires_at = oauth_token.expires_at
50
52
  @expires_in = oauth_token.expires_in
51
53
  @refresh_token = oauth_token.refresh_token
@@ -73,6 +75,9 @@ module Cronofy
73
75
  hash[:application_calendar_id] = application_calendar_id
74
76
  end
75
77
 
78
+ if sub
79
+ hash[:sub] = sub
80
+ end
76
81
 
77
82
  if linking_profile
78
83
  hash[:linking_profile] = linking_profile.to_h
@@ -1,3 +1,3 @@
1
1
  module Cronofy
2
- VERSION = "0.27.0".freeze
2
+ VERSION = "0.28.0".freeze
3
3
  end
@@ -238,7 +238,8 @@ describe Cronofy::Auth do
238
238
  describe '#application_calendar' do
239
239
  let(:data_centre_override) { nil }
240
240
 
241
- let(:application_calendar_id) { "apc_54475485743" }
241
+ let(:application_calendar_id) { "my-application-calendar" }
242
+ let(:cronofy_application_calendar_id) { "apc_54475485743" }
242
243
 
243
244
  let(:application_calendar_url) { "https://api.cronofy.com/v1/application_calendars" }
244
245
 
@@ -260,6 +261,7 @@ describe Cronofy::Auth do
260
261
  refresh_token: new_refresh_token,
261
262
  scope: scope,
262
263
  application_calendar_id: application_calendar_id,
264
+ sub: cronofy_application_calendar_id,
263
265
  }.to_json,
264
266
  headers: {
265
267
  "Content-Type" => "application/json; charset=utf-8"
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.27.0
4
+ version: 0.28.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: 2018-01-18 00:00:00.000000000 Z
12
+ date: 2018-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2