omniauth-vkontakte 1.8.0 → 1.8.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/.github/workflows/ruby.yml +1 -1
- data/.rubocop.yml +2 -2
- data/LICENSE +1 -1
- data/README.md +3 -3
- data/examples/main.rb +0 -1
- data/lib/omniauth/strategies/vkontakte.rb +6 -4
- data/lib/omniauth/vkontakte/version.rb +1 -1
- data/omniauth-vkontakte.gemspec +1 -1
- data/spec/omniauth/strategies/vkontakte_spec.rb +4 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a73c66b23b9c8815a064c542874bc36895c827e105a34043d1f167592b1b1338
|
4
|
+
data.tar.gz: 156cf380f8be609b66cae92b2161878c55d28b0976095c69387d53a9af0071e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c128eb6e918322724920620f4a471ca5356c7b8e26cf051a7e94f784e29cf14d40e814e377da5d7be77f7b7da905fbeb2b6dd46435cf04501de4674c37325d4b
|
7
|
+
data.tar.gz: 3831054835b55006ad38cc74023d32b1e94e09280feff33c43b634b8c996f27b297dc759ea2170a368367da90d57fea40863aebd1117107c9c8ca6fe14d3b4e9
|
data/.github/workflows/ruby.yml
CHANGED
@@ -7,7 +7,7 @@ jobs:
|
|
7
7
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
|
-
ruby: [2.
|
10
|
+
ruby: [2.7, 3.0, 3.1, 3.2, head, jruby, jruby-head]
|
11
11
|
os: [ubuntu-latest, macos-latest]
|
12
12
|
runs-on: ${{ matrix.os }}
|
13
13
|
steps:
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
AllCops:
|
2
2
|
NewCops: enable
|
3
|
-
TargetRubyVersion: 2.
|
3
|
+
TargetRubyVersion: 2.7
|
4
4
|
Layout/LineLength:
|
5
5
|
Max: 120
|
6
6
|
Metrics/MethodLength:
|
@@ -8,7 +8,7 @@ Metrics/MethodLength:
|
|
8
8
|
Metrics/BlockLength:
|
9
9
|
Enabled: false
|
10
10
|
Metrics/ClassLength:
|
11
|
-
|
11
|
+
Enabled: false
|
12
12
|
Lint/DuplicateBranch:
|
13
13
|
Enabled: false
|
14
14
|
Naming/FileName:
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -105,8 +105,8 @@ The precise information available may depend on the permissions which you reques
|
|
105
105
|
|
106
106
|
Tested with the following Ruby versions:
|
107
107
|
|
108
|
-
- Ruby MRI (2.
|
109
|
-
- JRuby (9.
|
108
|
+
- Ruby MRI (2.6.0+)
|
109
|
+
- JRuby (9.3.0+)
|
110
110
|
|
111
111
|
## Contributing to omniauth-vkontakte
|
112
112
|
|
@@ -114,7 +114,7 @@ Tested with the following Ruby versions:
|
|
114
114
|
|
115
115
|
## License
|
116
116
|
|
117
|
-
Copyright: 2011-
|
117
|
+
Copyright: 2011-2023 Anton Maminov (anton.maminov@gmail.com)
|
118
118
|
|
119
119
|
This library is distributed under the MIT license. Please see the LICENSE file.
|
120
120
|
|
data/examples/main.rb
CHANGED
@@ -21,10 +21,12 @@ module OmniAuth
|
|
21
21
|
|
22
22
|
option :name, 'vkontakte'
|
23
23
|
|
24
|
-
option :client_options,
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
option :client_options, {
|
25
|
+
site: 'https://api.vk.com/',
|
26
|
+
token_url: 'https://oauth.vk.com/access_token',
|
27
|
+
authorize_url: 'https://oauth.vk.com/authorize',
|
28
|
+
auth_scheme: :request_body
|
29
|
+
}
|
28
30
|
|
29
31
|
option :authorize_options, %i[scope display]
|
30
32
|
|
data/omniauth-vkontakte.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.name = 'omniauth-vkontakte'
|
15
15
|
gem.require_paths = ['lib']
|
16
16
|
gem.version = OmniAuth::Vkontakte::VERSION
|
17
|
-
gem.required_ruby_version = '>= 2.
|
17
|
+
gem.required_ruby_version = '>= 2.7.0'
|
18
18
|
gem.add_runtime_dependency 'omniauth-oauth2', '>= 1.5', '<= 1.8.0'
|
19
19
|
gem.metadata['rubygems_mfa_required'] = 'true'
|
20
20
|
end
|
@@ -43,6 +43,10 @@ describe OmniAuth::Strategies::Vkontakte do
|
|
43
43
|
it 'should have correct token url' do
|
44
44
|
expect(subject.options.client_options.token_url).to eq('https://oauth.vk.com/access_token')
|
45
45
|
end
|
46
|
+
|
47
|
+
it 'should have correct auth_scheme' do
|
48
|
+
expect(subject.options.client_options.auth_scheme).to eq(:request_body)
|
49
|
+
end
|
46
50
|
end
|
47
51
|
|
48
52
|
describe 'info' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-vkontakte
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Maminov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -69,14 +69,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: 2.
|
72
|
+
version: 2.7.0
|
73
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
rubygems_version: 3.3.
|
79
|
+
rubygems_version: 3.3.26
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Vkontakte OAuth2 Strategy for OmniAuth
|