xero-ruby 2.10.0 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xero-ruby/api_client.rb +3 -0
- data/lib/xero-ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dde5ec413261e2fef5f4d89ce60978e33390ec6432d7fa168a0ba323f82de78
|
4
|
+
data.tar.gz: 6bfe429d8c97d99a9b7f9acf5ae734f19228e3e1fbc11a7b5139dd09ee47e35f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ab5683ecba461f6c4921e42d1916376ecf68fbb978bfcb13e57847a7a6eb50be792746dea2f8c9bc0d9bddc72e8eec12870628f203a10d550152b667f3b18f
|
7
|
+
data.tar.gz: 1456130cc746216ed8712df80951699e647a6054c9dd137ef743dbd89b442ed04c40b24f58b8f9371116a0b205750be9877fb02dc7302fc703f1613fed549a5b
|
data/lib/xero-ruby/api_client.rb
CHANGED
@@ -149,6 +149,7 @@ module XeroRuby
|
|
149
149
|
end
|
150
150
|
|
151
151
|
def validate_tokens(token_set)
|
152
|
+
token_set = token_set.with_indifferent_access
|
152
153
|
id_token = token_set[:id_token]
|
153
154
|
access_token = token_set[:access_token]
|
154
155
|
if id_token || access_token
|
@@ -177,6 +178,7 @@ module XeroRuby
|
|
177
178
|
end
|
178
179
|
|
179
180
|
def refresh_token_set(token_set)
|
181
|
+
token_set = token_set.with_indifferent_access
|
180
182
|
data = {
|
181
183
|
grant_type: 'refresh_token',
|
182
184
|
refresh_token: token_set[:refresh_token]
|
@@ -185,6 +187,7 @@ module XeroRuby
|
|
185
187
|
end
|
186
188
|
|
187
189
|
def revoke_token(token_set)
|
190
|
+
token_set = token_set.with_indifferent_access
|
188
191
|
data = {
|
189
192
|
token: token_set[:refresh_token]
|
190
193
|
}
|
data/lib/xero-ruby/version.rb
CHANGED