omniauth-vkontakte 1.8.0 → 1.8.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: 92403216b269c32da3e8e997065faf32ccbea1102a3b60a97923843fcd543b91
4
- data.tar.gz: f70ef0e0371a7b2e2d844f1f91d0102aa21fee926c8bf9c68200cd3504e9c1e0
3
+ metadata.gz: a73c66b23b9c8815a064c542874bc36895c827e105a34043d1f167592b1b1338
4
+ data.tar.gz: 156cf380f8be609b66cae92b2161878c55d28b0976095c69387d53a9af0071e1
5
5
  SHA512:
6
- metadata.gz: 95d1e20de1aab608419650fc2d8904929e1b28672ab9958c59ecfce816f9cacad87ce4a476620660fda0037ac7951894ee3885f205060e8125b282c72c401f8d
7
- data.tar.gz: a6354e77ec49124e3bdbc32079a0c997bd8b3df6a6e70ea9cf62e10093e7b2db3b1c4878b8641d3429353dbf2644f62384deda4243bd75812e9964616b5924a3
6
+ metadata.gz: c128eb6e918322724920620f4a471ca5356c7b8e26cf051a7e94f784e29cf14d40e814e377da5d7be77f7b7da905fbeb2b6dd46435cf04501de4674c37325d4b
7
+ data.tar.gz: 3831054835b55006ad38cc74023d32b1e94e09280feff33c43b634b8c996f27b297dc759ea2170a368367da90d57fea40863aebd1117107c9c8ca6fe14d3b4e9
@@ -7,7 +7,7 @@ jobs:
7
7
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
8
  strategy:
9
9
  matrix:
10
- ruby: [2.6, 2.7, 3.0, 3.1, head, jruby, jruby-head]
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.6
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
- Max: 101
11
+ Enabled: false
12
12
  Lint/DuplicateBranch:
13
13
  Enabled: false
14
14
  Naming/FileName:
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2011-2022 Anton Maminov
3
+ Copyright (c) 2011-2023 Anton Maminov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.5.0+)
109
- - JRuby (9.2.0+)
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-2022 Anton Maminov (anton.maminov@gmail.com)
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
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'pp'
4
3
  require 'sinatra'
5
4
  require 'omniauth'
6
5
  require 'omniauth-vkontakte'
@@ -21,10 +21,12 @@ module OmniAuth
21
21
 
22
22
  option :name, 'vkontakte'
23
23
 
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'
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Vkontakte
5
- VERSION = '1.8.0'
5
+ VERSION = '1.8.1'
6
6
  end
7
7
  end
@@ -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.6.0'
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.0
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: 2022-06-19 00:00:00.000000000 Z
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.6.0
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.7
79
+ rubygems_version: 3.3.26
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Vkontakte OAuth2 Strategy for OmniAuth