oauth2 2.0.0.rc1 → 2.0.0.rc2

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
  SHA256:
3
- metadata.gz: 4f893ee5488c3e0e61af487f370c4551217ec539c4f5d5acc503911a5b2c8f99
4
- data.tar.gz: a241433f0dbd5cb551bbd381841d2c1e25e4ef39335a2210f25b938b20fc6f29
3
+ metadata.gz: dbd97bd821d080a346022a1be5b7cc638dcd21964f5f2eb1d5bef6c2feaa5d95
4
+ data.tar.gz: d3b376e2ffdf58445da10fb6dfffd9268a33b640e50394e57915b68fb0c6e6a9
5
5
  SHA512:
6
- metadata.gz: 8c2677bd855e0935c95af8709ef5a04dcbea75e0143a05bc93eec89e3b9e29c643371afade072400aeffced32bc26999b8138277fecca5ddf916363486efad0a
7
- data.tar.gz: c226b23b31be3ab8c27ce8d7eec08675fe74a49c76299083e1aabe135bd836a5fbc2163bdb49d264e677d1e48b1452ab8ebec3db45bccdf0b3dab958aff0bf94
6
+ metadata.gz: a6659d15e190363eb065b089bb2c16c1a1a76681a02608a2630f0b4af5c0ac8c7e23e479e3b77400298f861675030c218e11357518729c12d2c6c24e0a49f93f
7
+ data.tar.gz: 4b168e3dd8de638369477e59bbbbf6804fc29528dbf191718d7a4ceb885f359b6212856e9319ede017b91166be131105c7310677ce7b297659ed4d0412af7c13
@@ -88,7 +88,7 @@ module OAuth2
88
88
  #
89
89
  # @return [AccessToken] a new AccessToken
90
90
  # @note options should be carried over to the new AccessToken
91
- def refresh(params = {}, access_token_opts = {}, access_token_class = self.class)
91
+ def refresh(params = {}, access_token_opts = {}, access_token_class: self.class)
92
92
  raise('A refresh_token is not available') unless refresh_token
93
93
 
94
94
  params[:grant_type] = 'refresh_token'
data/lib/oauth2/client.rb CHANGED
@@ -278,6 +278,8 @@ module OAuth2
278
278
  raise(error)
279
279
  end
280
280
 
281
+ return unless data.is_a?(Hash)
282
+
281
283
  build_access_token(response, access_token_opts, access_token_class)
282
284
  end
283
285
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module OAuth2
4
4
  module Version
5
- VERSION = '2.0.0.rc1'.freeze
5
+ VERSION = '2.0.0.rc2'.freeze
6
6
 
7
7
  module_function
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc1
4
+ version: 2.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-06-10 00:00:00.000000000 Z
13
+ date: 2022-06-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -293,10 +293,10 @@ licenses:
293
293
  - MIT
294
294
  metadata:
295
295
  homepage_uri: https://github.com/oauth-xx/oauth2
296
- source_code_uri: https://github.com/oauth-xx/oauth2/tree/v2.0.0.rc1
297
- changelog_uri: https://github.com/oauth-xx/oauth2/blob/v2.0.0.rc1/CHANGELOG.md
296
+ source_code_uri: https://github.com/oauth-xx/oauth2/tree/v2.0.0.rc2
297
+ changelog_uri: https://github.com/oauth-xx/oauth2/blob/v2.0.0.rc2/CHANGELOG.md
298
298
  bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues
299
- documentation_uri: https://www.rubydoc.info/gems/oauth2/2.0.0.rc1
299
+ documentation_uri: https://www.rubydoc.info/gems/oauth2/2.0.0.rc2
300
300
  wiki_uri: https://github.com/oauth-xx/oauth2/wiki
301
301
  rubygems_mfa_required: 'true'
302
302
  post_install_message: