omniauth-zoom 0.2.0 → 0.2.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: d74fa067c5278ada8e61af1481aedffbf46497c374edbd45a5e9f3f70a40e145
4
- data.tar.gz: dac40d7c56459af7b753ff9f8dbfa4611d16fd20942275bc086384427d20d963
3
+ metadata.gz: 2d0df87b2e92b61de2b23d86f48177b2ff7a02763c41b5633c7a78c91f3630d5
4
+ data.tar.gz: 8c375cfa778c72415d4d565e63c214048dad00cf12193ee00492486a374f4fd9
5
5
  SHA512:
6
- metadata.gz: 26738617759028872e00f9334df0ff5af716bb0b59326ddbca63ca117fa20de41931ee12d7abf2845ab47d5cc2cf1c6a57995c4f08749e213091ad52e8bb9179
7
- data.tar.gz: 1fbe1044ce31032b915b61c2aecae28f3e84e33f964d463f8fb0d834257eab95df0cf95a645e42dc1cdde614c03222c4722c1b83292b4455d294adffea800dfe
6
+ metadata.gz: 7997a196e912f1b63985f35c7ae43c548497f5355fb409794b9662804fe0f47ad043655cd1eeb80721381c102a3a2cd2f21fdcb70bcaec9c0bbbc05f3d78d558
7
+ data.tar.gz: 90718a1fc0fe0dd89c377db42e934f2a876ee000e56ec19ab19d36b80fbb7565811a845c8796685a66486d1b6a6899466f73546245d7311564388cfdfd7f8a0a
@@ -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
@@ -39,10 +38,10 @@ Metrics/AbcSize:
39
38
 
40
39
  Style/CollectionMethods:
41
40
  PreferredMethods:
42
- map: 'collect'
43
- reduce: 'inject'
44
- find: 'detect'
45
- find_all: 'select'
41
+ map: "collect"
42
+ reduce: "inject"
43
+ find: "detect"
44
+ find_all: "select"
46
45
 
47
46
  Style/Documentation:
48
47
  Enabled: false
@@ -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
- EnforcedStyle: compact
68
+ EnforcedStyle: compact
69
+
70
+ Style/AsciiComments:
71
+ Enabled: false
@@ -1,16 +1,22 @@
1
- # 0.2.0
1
+ # CHANGELOG
2
+
3
+ ## 0.2.1
4
+
5
+ - fix rubocop warnings.
6
+
7
+ ## 0.2.0
2
8
 
3
9
  - refs #11 fix library dependencies.
4
10
  - remove minitest-reporter.
5
11
 
6
- # 0.1.2
12
+ ## 0.1.2
7
13
 
8
14
  - make the error handling when missing scope for reading user info better.
9
15
 
10
- # 0.1.1
16
+ ## 0.1.1
11
17
 
12
18
  - refs #4 Add tests and make code coverage 100%.
13
19
 
14
- # 0.1.0
20
+ ## 0.1.0
15
21
 
16
22
  - Initial release
data/Rakefile CHANGED
@@ -1,10 +1,12 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
3
5
 
4
6
  Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
7
+ t.libs << 'test'
8
+ t.libs << 'lib'
9
+ t.test_files = FileList['test/**/*_test.rb']
8
10
  end
9
11
 
10
- task :default => :test
12
+ task default: :test
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Zoom
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
@@ -9,22 +9,22 @@ module OmniAuth
9
9
  # OmniAuth strategy for zoom.us
10
10
  class Zoom < OmniAuth::Strategies::OAuth2
11
11
  option :name, 'zoom'
12
- option :client_options, :site => 'https://zoom.us'
12
+ option :client_options, site: 'https://zoom.us'
13
13
 
14
14
  uid { raw_info['id'] }
15
- extra { {:raw_info => raw_info} }
15
+ extra { {raw_info: raw_info} }
16
16
 
17
17
  protected
18
18
 
19
19
  def build_access_token
20
20
  params = {
21
- :grant_type => 'authorization_code',
22
- :code => request.params['code'],
23
- :redirect_uri => callback_url
21
+ grant_type: 'authorization_code',
22
+ code: request.params['code'],
23
+ redirect_uri: callback_url
24
24
  }
25
25
  path = "#{client.options[:token_url]}?#{URI.encode_www_form(params)}"
26
26
  headers_secret = Base64.strict_encode64("#{client.id}:#{client.secret}")
27
- opts = {:headers => {:Authorization => "Basic #{headers_secret}"}}
27
+ opts = {headers: {Authorization: "Basic #{headers_secret}"}}
28
28
 
29
29
  res = client.request(:post, path, opts)
30
30
  ::OAuth2::AccessToken.from_hash(client, res.parsed)
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.2.0
4
+ version: 0.2.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-19 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -180,7 +180,7 @@ metadata:
180
180
  homepage_uri: https://github.com/koshilife/omniauth-zoom
181
181
  source_code_uri: https://github.com/koshilife/omniauth-zoom
182
182
  changelog_uri: https://github.com/koshilife/omniauth-zoom/blob/master/CHANGELOG.md
183
- documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/0.2.0
183
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-zoom/0.2.1
184
184
  post_install_message:
185
185
  rdoc_options: []
186
186
  require_paths: