omniauth-mlh 4.0.1 → 4.1.1
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 +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +7 -1
- data/lib/omniauth/strategies/mlh.rb +3 -3
- data/lib/omniauth-mlh/version.rb +1 -1
- data/spec/omni_auth/mlh_spec.rb +1 -1
- data/spec/omni_auth/strategies/mlh_spec.rb +7 -0
- data/spec/spec_helper.rb +1 -1
- metadata +6 -6
- /data/lib/{omniauth_mlh.rb → omniauth-mlh.rb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96ab64892eadeb5c81fd8028bd8e2e82192f776ff510410ad5e8049630e55f6d
|
|
4
|
+
data.tar.gz: e6c4b2d1de8f465a0fee954aeb48325e36a91d1e4bef3f210a73c31f2171c112
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80400b7ddc58bc8e6b238a0ee06501069b7f41433ed227e4c40f5cc7125e3443b07450273b6f5c15522b1fe3be9328b146f8e4c92b0d1071e9619c73b54d8133
|
|
7
|
+
data.tar.gz: 799e561814b403cf430bf540c7dd1b1f0ba2ba4d5323891e716d34030c8ce679e65f3addae6c8f7f0bca7e1f24f22d80709bed7d3324788182b8e9a7b5d9c569
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -7,6 +7,8 @@ AllCops:
|
|
|
7
7
|
TargetRubyVersion: '2.7.0'
|
|
8
8
|
Exclude:
|
|
9
9
|
- vendor/**/*
|
|
10
|
+
NewCops: disable
|
|
11
|
+
SuggestExtensions: false
|
|
10
12
|
|
|
11
13
|
Style/WordArray:
|
|
12
14
|
Description: Force arrays of words to use bracket notation instead of %w
|
|
@@ -25,4 +27,8 @@ Style/RegexpLiteral:
|
|
|
25
27
|
|
|
26
28
|
RSpec/MultipleExpectations:
|
|
27
29
|
Description: Allow tests to contain multiple expectations
|
|
28
|
-
Enabled: false
|
|
30
|
+
Enabled: false
|
|
31
|
+
|
|
32
|
+
Naming/FileName:
|
|
33
|
+
Exclude:
|
|
34
|
+
- lib/omniauth-mlh.rb
|
|
@@ -30,9 +30,9 @@ module OmniAuth
|
|
|
30
30
|
option :name, :mlh
|
|
31
31
|
|
|
32
32
|
option :client_options, {
|
|
33
|
-
site: 'https://
|
|
34
|
-
authorize_url: 'oauth/authorize',
|
|
35
|
-
token_url: 'oauth/token',
|
|
33
|
+
site: 'https://www.mlh.com',
|
|
34
|
+
authorize_url: '/oauth/authorize',
|
|
35
|
+
token_url: 'https://api.mlh.com/v4/oauth/token',
|
|
36
36
|
auth_scheme: :request_body # Change from basic auth to request body
|
|
37
37
|
}
|
|
38
38
|
|
data/lib/omniauth-mlh/version.rb
CHANGED
data/spec/omni_auth/mlh_spec.rb
CHANGED
|
@@ -5,7 +5,7 @@ require 'spec_helper'
|
|
|
5
5
|
RSpec.describe OmniAuth::MLH do
|
|
6
6
|
it 'has a version number' do
|
|
7
7
|
expect(OmniAuth::MLH::VERSION).not_to be_nil
|
|
8
|
-
expect(OmniAuth::MLH::VERSION).to eq('4.
|
|
8
|
+
expect(OmniAuth::MLH::VERSION).to eq('4.1.1')
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
it 'loads the MLH strategy' do
|
|
@@ -12,6 +12,13 @@ RSpec.describe OmniAuth::Strategies::MLH do
|
|
|
12
12
|
allow(strategy).to receive(:access_token).and_return(access_token)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
describe 'client options' do
|
|
16
|
+
it 'uses the current MLH OAuth authorize and token endpoints' do
|
|
17
|
+
expect(strategy.options.client_options.authorize_url).to eq('/oauth/authorize')
|
|
18
|
+
expect(strategy.options.client_options.token_url).to eq('https://api.mlh.com/v4/oauth/token')
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
15
22
|
shared_context 'with oauth response' do |response_data|
|
|
16
23
|
let(:oauth_response) do
|
|
17
24
|
instance_double(OAuth2::Response,
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-mlh
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Major League Hacking (MLH)
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oauth2
|
|
@@ -182,9 +182,9 @@ files:
|
|
|
182
182
|
- LICENSE.txt
|
|
183
183
|
- README.md
|
|
184
184
|
- Rakefile
|
|
185
|
+
- lib/omniauth-mlh.rb
|
|
185
186
|
- lib/omniauth-mlh/version.rb
|
|
186
187
|
- lib/omniauth/strategies/mlh.rb
|
|
187
|
-
- lib/omniauth_mlh.rb
|
|
188
188
|
- omniauth-mlh.gemspec
|
|
189
189
|
- spec/omni_auth/mlh_spec.rb
|
|
190
190
|
- spec/omni_auth/strategies/mlh_spec.rb
|
|
@@ -194,7 +194,7 @@ homepage: http://github.com/mlh/omniauth-mlh
|
|
|
194
194
|
licenses:
|
|
195
195
|
- MIT
|
|
196
196
|
metadata: {}
|
|
197
|
-
post_install_message:
|
|
197
|
+
post_install_message:
|
|
198
198
|
rdoc_options: []
|
|
199
199
|
require_paths:
|
|
200
200
|
- lib
|
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
210
210
|
version: '0'
|
|
211
211
|
requirements: []
|
|
212
212
|
rubygems_version: 3.4.19
|
|
213
|
-
signing_key:
|
|
213
|
+
signing_key:
|
|
214
214
|
specification_version: 4
|
|
215
215
|
summary: Official OmniAuth strategy for MyMLH.
|
|
216
216
|
test_files: []
|
|
File without changes
|