omniauth-calendly 0.2.1 → 1.0.3

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: 52d954de4756eb07b9c1843565bef9f7e4559bb852a639459fed05ab318914a2
4
- data.tar.gz: e5961a4453253e5ea7c661c6571f5b8493b499117229c0382b2afa1ea1fd4e10
3
+ metadata.gz: 15913053fa70f43d59d3e874f951b5057ecc6b531cb25d628ebb192178b6c4ca
4
+ data.tar.gz: ef0b050b19059c0df95437d64b56118f34cf7c133bd21738c0c4dcce6e15e5e5
5
5
  SHA512:
6
- metadata.gz: eebea8963c22d71076bea4c39ebb7cc7fa00b1772f7aef8d2e9c0405b877975b89c3922831872b44bd5edc2060c960f50e806694e20ea3d9d9014783f5719655
7
- data.tar.gz: '0735718be28275f9be8a86fd153323da09c324004bafe75645e4645c72a257dcc5f1d2ada346bd0824264d0954fccb0559ec894969805e87bf38cf7997d394e9'
6
+ metadata.gz: 36c978e06142fad9de5af3240bc54f2a7b9fda80e4df90407b4decafd1f98c395e5516a4e7ad28754b571a5236b0eb55ec0ae70b3dc08b0f34d2b8034f6f3070
7
+ data.tar.gz: 8c0ace6f1eef3923eb72de2b1f82ef3a3cdb8dcd20b2935a999885095a0edc5e11a5d6df3dab9a3afbc3397b27ab7eb3613e4b85ae68086feb69236632d6362d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.0
4
+
5
+ - allowed for omniauth 2.0 series.
6
+
7
+ ## 0.3.0
8
+
9
+ - be specified dependency for omniauth 1.9.
10
+
3
11
  ## 0.2.1
4
12
 
5
13
  - fix rubocop warnings.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Calendly
5
- VERSION = '0.2.1'
5
+ VERSION = '1.0.3'
6
6
  end
7
7
  end
@@ -22,23 +22,20 @@ module OmniAuth
22
22
  @raw_info = access_token.get("#{USER_API_URL}me").parsed
23
23
  end
24
24
 
25
- def callback_url
26
- full_host + script_name + callback_path
27
- end
28
-
29
25
  def extract_uid
30
- user_info = raw_info
31
- return unless user_info
32
- return unless raw_info['resource']
33
- return unless raw_info['resource']['uri']
26
+ uri = raw_info.dig('resource', 'uri')
27
+ return unless uri
34
28
 
35
- uri = raw_info['resource']['uri']
36
29
  re = /\A#{USER_API_URL}(.+)\z/
37
30
  m = re.match uri
38
31
  return if m.nil?
39
32
 
40
33
  m[1]
41
34
  end
35
+
36
+ def callback_url
37
+ full_host + callback_path
38
+ end
42
39
  end
43
40
  end
44
41
  end
@@ -28,7 +28,8 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ['lib']
30
30
 
31
- spec.add_runtime_dependency 'omniauth-oauth2', '>= 1.6.0'
31
+ spec.add_runtime_dependency 'omniauth', '~> 2.0'
32
+ spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.7.1'
32
33
 
33
34
  spec.add_development_dependency 'bundler'
34
35
  spec.add_development_dependency 'codecov'
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-calendly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 1.0.3
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-09-03 00:00:00.000000000 Z
11
+ date: 2021-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: omniauth-oauth2
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ">="
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: 1.6.0
33
+ version: 1.7.1
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ">="
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: 1.6.0
40
+ version: 1.7.1
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +180,7 @@ metadata:
166
180
  homepage_uri: https://github.com/koshilife/omniauth-calendly
167
181
  source_code_uri: https://github.com/koshilife/omniauth-calendly
168
182
  changelog_uri: https://github.com/koshilife/omniauth-calendly/blob/master/CHANGELOG.md
169
- documentation_uri: https://www.rubydoc.info/gems/omniauth-calendly/0.2.1
183
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-calendly/1.0.3
170
184
  post_install_message:
171
185
  rdoc_options: []
172
186
  require_paths: