smartsheet 2.101.0 → 2.101.1
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 +4 -0
- data/lib/smartsheet/constants.rb +1 -1
- data/lib/smartsheet/endpoints/token/token.rb +7 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1447ac9c5b6ddd46a57909483d1b372ef66f94a130ca856b554008e734eb895
|
|
4
|
+
data.tar.gz: c5a7ac119de07b7de672a12fa9aa662e33c4096be5ee02d7f78ce2ed7d7f72a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 750f791d71daff58364cecbcf2afcb92d0e840e41c2790137747b4098a281e31e65c6ca001e551f7fffea67da877519b756e6601a48296726ae49568dae43cdf
|
|
7
|
+
data.tar.gz: 7e3e461e0d657d20e7ebf6643a1f04751268be69c226a4d0a62e805011c6c4e01137f656b4e0fe3c1c4e0c8ea50ccbb7acc352856f7ded0211a6a05c2d5d2e8c
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [2.101.1] - 2020-12-07
|
|
10
|
+
### Added
|
|
11
|
+
- Support for state parameter for OAuth
|
|
12
|
+
|
|
9
13
|
## [2.101.0] - 2020-09-28
|
|
10
14
|
### Changed
|
|
11
15
|
- Include modern Faraday 1.x as an allowed dependency
|
data/lib/smartsheet/constants.rb
CHANGED
|
@@ -13,9 +13,13 @@ module Smartsheet
|
|
|
13
13
|
@client = client
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def build_authorization_url(client_id:, scopes:)
|
|
16
|
+
def build_authorization_url(client_id:, scopes:, state: nil)
|
|
17
17
|
scopes_string = scopes.join('%20')
|
|
18
|
-
"https://app.smartsheet.com/b/authorize?response_type=code&client_id=#{client_id}&scope=#{scopes_string}"
|
|
18
|
+
url = "https://app.smartsheet.com/b/authorize?response_type=code&client_id=#{client_id}&scope=#{scopes_string}"
|
|
19
|
+
if state.present?
|
|
20
|
+
return "#{url}&state=#{state}"
|
|
21
|
+
end
|
|
22
|
+
return url
|
|
19
23
|
end
|
|
20
24
|
|
|
21
25
|
def get(client_id:, hash:, code:, params: {}, header_overrides: {})
|
|
@@ -63,4 +67,4 @@ module Smartsheet
|
|
|
63
67
|
client.make_request(endpoint_spec, request_spec)
|
|
64
68
|
end
|
|
65
69
|
end
|
|
66
|
-
end
|
|
70
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smartsheet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.101.
|
|
4
|
+
version: 2.101.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Smartsheet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -358,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
358
358
|
- !ruby/object:Gem::Version
|
|
359
359
|
version: '0'
|
|
360
360
|
requirements: []
|
|
361
|
-
rubygems_version: 3.1.
|
|
361
|
+
rubygems_version: 3.1.5
|
|
362
362
|
signing_key:
|
|
363
363
|
specification_version: 4
|
|
364
364
|
summary: An SDK to simplify connecting to the Smartsheet API from Ruby applications.
|