omniauth-calendly 0.1.0 → 1.0.1

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: 07db7da420c059a9aad8a228031254fca84856d76654cfe65985d02a4c5e6e8a
4
- data.tar.gz: ad34222ebfcce6696565943487e2aeef521bf7171e17600011ec9e28d7b857e4
3
+ metadata.gz: 3804ce4c2555178e4a761670ff70e5d53fc8919d97b6dbf23cdbbce708a3aab2
4
+ data.tar.gz: 79209555ce2dcad9b0d3c84e27612ce8abae35126e79d7a163c20a2f496b20db
5
5
  SHA512:
6
- metadata.gz: c8cb083df5432b150c61d044c9e4c0b868776bceada4371562a83c43373d294914833f83c88f61f07dd196138312cca39f6a69cbd0acefa1789176615f4acc25
7
- data.tar.gz: 6c25a690bace4d4c4944a4f8ca7dddb44f35ba740c2b059c1492169e4dd1886d240ac12f71d65b98815b12cb2ecaf12798a198c07eb312050e3c55ae40f0b928
6
+ metadata.gz: e968601d6076fda3bc645d3c3a6d1ea3f89b5a323f34e942ea1c6f2b2e9cd8a1113f57e6f385b4ca7deb6bddf927e391a2d62efcc1f9dc0051235ea0554c065c
7
+ data.tar.gz: 7020ced4b3ae14451b7bbf5a815479bfe0a95151bbcd6e6a6f9a599837f06e8ca4e16e1c0573eff84d50e0469ec06bfdcc9f3dfb3a8fddadad24fdf74c3e24a7
data/.rubocop.yml CHANGED
@@ -23,12 +23,11 @@ Metrics/BlockNesting:
23
23
  Max: 2
24
24
 
25
25
  Layout/LineLength:
26
- AllowURI: true
27
- Enabled: false
26
+ Max: 120
28
27
 
29
28
  Metrics/MethodLength:
30
29
  CountComments: false
31
- Max: 15
30
+ Max: 20
32
31
 
33
32
  Metrics/ParameterLists:
34
33
  Max: 4
@@ -60,10 +59,13 @@ Style/ExpandPathArguments:
60
59
  Enabled: false
61
60
 
62
61
  Style/HashSyntax:
63
- EnforcedStyle: hash_rockets
62
+ EnforcedStyle: ruby19
64
63
 
65
64
  Style/Lambda:
66
65
  Enabled: false
67
66
 
68
67
  Style/RaiseArgs:
69
68
  EnforcedStyle: compact
69
+
70
+ Style/AsciiComments:
71
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,8 +1,27 @@
1
- # 0.1.0
1
+ # CHANGELOG
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
+
11
+ ## 0.2.1
12
+
13
+ - fix rubocop warnings.
14
+
15
+ ## 0.2.0
16
+
17
+ - refs #5 fix dependencies.
18
+ - remove minitest-reporter.
19
+
20
+ ## 0.1.0
2
21
 
3
22
  - #1 extract uid from user api response.
4
23
  - #2 make coverage 100%.
5
24
 
6
- # 0.0.1.alpha
25
+ ## 0.0.1.alpha
7
26
 
8
27
  - Initial release
data/Rakefile CHANGED
@@ -9,4 +9,4 @@ Rake::TestTask.new(:test) do |t|
9
9
  t.test_files = FileList['test/**/*_test.rb']
10
10
  end
11
11
 
12
- task :default => :test
12
+ task default: :test
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Calendly
5
- VERSION = '0.1.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
@@ -7,12 +7,12 @@ module OmniAuth
7
7
  # OmniAuth strategy for Calendly
8
8
  class Calendly < OmniAuth::Strategies::OAuth2
9
9
  option :name, 'calendly'
10
- option :client_options, :site => 'https://auth.calendly.com'
10
+ option :client_options, site: 'https://auth.calendly.com'
11
11
 
12
12
  USER_API_URL = 'https://api.calendly.com/users/'
13
13
 
14
14
  uid { extract_uid }
15
- extra { {:raw_info => raw_info} }
15
+ extra { {raw_info: raw_info} }
16
16
 
17
17
  private
18
18
 
@@ -22,13 +22,8 @@ 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
26
+ return unless raw_info
32
27
  return unless raw_info['resource']
33
28
  return unless raw_info['resource']['uri']
34
29
 
@@ -39,6 +34,10 @@ module OmniAuth
39
34
 
40
35
  m[1]
41
36
  end
37
+
38
+ def callback_url
39
+ full_host + callback_path
40
+ end
42
41
  end
43
42
  end
44
43
  end
@@ -28,15 +28,15 @@ 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
- spec.add_development_dependency 'bundler', '~> 2.1'
34
- spec.add_development_dependency 'codecov', '~> 0.1.17'
35
- spec.add_development_dependency 'minitest', '~> 5.14.1'
36
- spec.add_development_dependency 'minitest-reporters', '~> 1.4.2'
37
- spec.add_development_dependency 'omniauth', '~> 1.9.1'
38
- spec.add_development_dependency 'rack-test', '~> 1.1.0'
39
- spec.add_development_dependency 'rake', '~> 13.0'
40
- spec.add_development_dependency 'simplecov', '~> 0.18.5'
41
- spec.add_development_dependency 'webmock', '~> 3.7.6'
34
+ spec.add_development_dependency 'bundler'
35
+ spec.add_development_dependency 'codecov'
36
+ spec.add_development_dependency 'minitest'
37
+ spec.add_development_dependency 'omniauth'
38
+ spec.add_development_dependency 'rack-test'
39
+ spec.add_development_dependency 'rake'
40
+ spec.add_development_dependency 'simplecov'
41
+ spec.add_development_dependency 'webmock'
42
42
  end
metadata CHANGED
@@ -1,155 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-calendly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.1
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-08-05 00:00:00.000000000 Z
11
+ date: 2021-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: omniauth-oauth2
14
+ name: omniauth
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.0
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.6.0
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: omniauth-oauth2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.1'
34
- type: :development
33
+ version: 1.7.1
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.1'
40
+ version: 1.7.1
41
41
  - !ruby/object:Gem::Dependency
42
- name: codecov
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.17
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.17
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest
56
+ name: codecov
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 5.14.1
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 5.14.1
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: minitest-reporters
70
+ name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 1.4.2
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 1.4.2
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: omniauth
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 1.9.1
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 1.9.1
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rack-test
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 1.1.0
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 1.1.0
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '13.0'
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '13.0'
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 0.18.5
131
+ version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 0.18.5
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: webmock
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 3.7.6
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 3.7.6
152
+ version: '0'
153
153
  description: ''
154
154
  email:
155
155
  - koshikawa2009@gmail.com
@@ -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/0.1.0
183
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-calendly/1.0.1
184
184
  post_install_message:
185
185
  rdoc_options: []
186
186
  require_paths: