cronofy 0.27.0 → 0.28.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/cronofy/types.rb +5 -0
- data/lib/cronofy/version.rb +1 -1
- data/spec/lib/cronofy/auth_spec.rb +3 -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: 7712c2351147592f8b389f18e38dc70322a5f80c
|
|
4
|
+
data.tar.gz: 97765e76a782494c26b24df7cf3a6071b715d89c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9059c6117724bc2ee2ce85e328ff87aa4f87ba50a785e3b43a61b6592e1f9193f2092aee5f7b13c687f714e4f11ef65aab54d81142aa317bd8ccd2862b37fe9
|
|
7
|
+
data.tar.gz: a2c514b31dd918278abc9e1914672c814953ddab668c57a783380223fe852d5c4815526d4dcf1bc8f2d0007b19f864aba18edae4e537de6c1f8da58a3f62f48c
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
data/lib/cronofy/types.rb
CHANGED
|
@@ -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
|
data/lib/cronofy/version.rb
CHANGED
|
@@ -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) { "
|
|
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.
|
|
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-
|
|
12
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: oauth2
|