omniauth-zoom 0.1.1 → 0.1.2

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: a1f3099d19df722ab4f801ddda9e44eaff4d4d96c8497cd810633004ef92effa
4
- data.tar.gz: 0a019d86402f77b45752e1ef700d9dd6a99ac1dedd10a2bd9db047fc2d7b547d
3
+ metadata.gz: 703cf57a67ac95c78f70ed144d8702d813ee097a9120f743719dc2db46340f8e
4
+ data.tar.gz: 401f9a4a02c1f68809ba34329c3641198e94ffd9d03c574a1aa47e2c8bf5ff93
5
5
  SHA512:
6
- metadata.gz: f4bca33dbe6596ce2d61984173b871088fdd7bcbc77d866c23c982cd1b874836208a5ce24f8ec54a7a7eee97e815060b66dab6aed3b6548c985bdfb2b7f57998
7
- data.tar.gz: a74b0c8f8be96b354be15d4750646a8cd6cab70b6fef9600325e359eda11858133a90a54d7b818bf193cb653ec58cdc82b3efa542161a17edc4dba50115d3359
6
+ metadata.gz: b52c52705950e54d4535396b5785b0ec29f9ab6baf6dc75630d2f518705d00c33510f0dff3054c4b78577765e78e32c7ddc5823540530a234cff246303623d59
7
+ data.tar.gz: f190110083b0589a9e8bf9db2102f6ac1d0d60ee6ea1430f67799fa71f436c3e533abe8ccf42a4c485e630ad2877df927320aca76eac649b385e3d6c64bc77b8
@@ -32,5 +32,6 @@ jobs:
32
32
  printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
33
33
  gem build *.gemspec
34
34
  gem push *.gem
35
+ continue-on-error: true
35
36
  env:
36
37
  GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
@@ -1,3 +1,7 @@
1
+ # 0.1.2
2
+
3
+ - make the error handling when missing scope for reading user info better.
4
+
1
5
  # 0.1.1
2
6
 
3
7
  - refs #4 Add tests and make code coverage 100%.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Zoom
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
@@ -36,7 +36,10 @@ module OmniAuth
36
36
  return @raw_info if defined?(@raw_info)
37
37
 
38
38
  @raw_info = access_token.get('/v2/users/me').parsed || {}
39
- rescue StandardError => e
39
+ rescue ::OAuth2::Error => e
40
+ raise e unless e.response.status == 400
41
+
42
+ # in case of missing a scope for reading current user info
40
43
  log(:error, "#{e.class} occured. message:#{e.message}")
41
44
  @raw_info = {}
42
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-zoom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenji Koshikawa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-08 00:00:00.000000000 Z
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -194,7 +194,7 @@ metadata:
194
194
  homepage_uri: https://github.com/koshilife/omniauth-zoom
195
195
  source_code_uri: https://github.com/koshilife/omniauth-zoom
196
196
  changelog_uri: https://github.com/koshilife/omniauth-zoom/blob/master/CHANGELOG.md
197
- documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/0.1.1
197
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/0.1.2
198
198
  post_install_message:
199
199
  rdoc_options: []
200
200
  require_paths: