omniauth-calendly 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3804ce4c2555178e4a761670ff70e5d53fc8919d97b6dbf23cdbbce708a3aab2
4
- data.tar.gz: 79209555ce2dcad9b0d3c84e27612ce8abae35126e79d7a163c20a2f496b20db
3
+ metadata.gz: 4dfdfdb426733c302eda5e39ff4c146ca66e4cb75735ac3c2293e9b003f95fdf
4
+ data.tar.gz: 9e6113425525e11ba962be121cdc6bc5674a7a0eafb09da7158261fe24841176
5
5
  SHA512:
6
- metadata.gz: e968601d6076fda3bc645d3c3a6d1ea3f89b5a323f34e942ea1c6f2b2e9cd8a1113f57e6f385b4ca7deb6bddf927e391a2d62efcc1f9dc0051235ea0554c065c
7
- data.tar.gz: 7020ced4b3ae14451b7bbf5a815479bfe0a95151bbcd6e6a6f9a599837f06e8ca4e16e1c0573eff84d50e0469ec06bfdcc9f3dfb3a8fddadad24fdf74c3e24a7
6
+ metadata.gz: 826ec1db7c85ca3737f1cb3b60875981c8e99023f09c9610376b337b4f46ab63f7e7c206b9c80893d83c0c7a1a194388a5a84b1157441b093029cc385cf64b72
7
+ data.tar.gz: 03517ac7909d98658cb781eb9d1aab7a340e3f4d923c527f1b807c2fbf653d41618de4b1677f84ee8050e7ec001ba7afbd46a4f04a66a2a3cef25013214aceeb
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Calendly
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
  end
7
7
  end
@@ -23,11 +23,11 @@ module OmniAuth
23
23
  end
24
24
 
25
25
  def extract_uid
26
- return unless raw_info
27
- return unless raw_info['resource']
28
- return unless raw_info['resource']['uri']
26
+ return unless raw_info.respond_to?(:dig)
27
+
28
+ uri = raw_info.dig('resource', 'uri')
29
+ return unless uri
29
30
 
30
- uri = raw_info['resource']['uri']
31
31
  re = /\A#{USER_API_URL}(.+)\z/
32
32
  m = re.match uri
33
33
  return if m.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-calendly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenji Koshikawa
@@ -180,7 +180,7 @@ metadata:
180
180
  homepage_uri: https://github.com/koshilife/omniauth-calendly
181
181
  source_code_uri: https://github.com/koshilife/omniauth-calendly
182
182
  changelog_uri: https://github.com/koshilife/omniauth-calendly/blob/master/CHANGELOG.md
183
- documentation_uri: https://www.rubydoc.info/gems/omniauth-calendly/1.0.1
183
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-calendly/1.0.2
184
184
  post_install_message:
185
185
  rdoc_options: []
186
186
  require_paths: