omniauth-vkontakte 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -8
- data/examples/main.rb +2 -2
- data/lib/omniauth-vkontakte/version.rb +1 -1
- data/lib/omniauth/strategies/vkontakte.rb +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d08c63e3838f47dc19a40aad62d502ad9543a7d7
|
4
|
+
data.tar.gz: 57863077c1ef09944a1fbcb0a27f3c5efc3ab002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7af23fb04c89f9ffcdd8c32731612cc14d4a3f864473a8dc22d601be3a1b93f17725900ce073ff788ba7fd3f7e5541e659136c97c154a155edaee3f47365cc26
|
7
|
+
data.tar.gz: 45e3cc0c42fa72dfdd1c2cd93ec123a8b8528c3917dffaf7652c54ab27ece9b55cf7a746debb76443003b753cd3442d2179256a1d56ca1ad40e1d94f87996827
|
data/.travis.yml
CHANGED
@@ -1,14 +1,10 @@
|
|
1
|
-
language: ruby
|
2
1
|
before_install:
|
3
2
|
- gem update bundler
|
4
3
|
- bundle --version
|
5
4
|
- gem update --system
|
6
5
|
- gem --version
|
7
6
|
rvm:
|
8
|
-
- 2.4.
|
9
|
-
- 2.3.
|
10
|
-
- 2.2.
|
11
|
-
-
|
12
|
-
- 2.0
|
13
|
-
- 1.9.3
|
14
|
-
- jruby-19mode
|
7
|
+
- 2.4.2
|
8
|
+
- 2.3.5
|
9
|
+
- 2.2.8
|
10
|
+
- jruby-head
|
data/examples/main.rb
CHANGED
@@ -10,10 +10,10 @@ SCOPE = 'friends,audio'
|
|
10
10
|
use Rack::Session::Cookie
|
11
11
|
|
12
12
|
use OmniAuth::Builder do
|
13
|
-
provider :vkontakte,
|
13
|
+
provider :vkontakte, ENV['VKONTAKTE_KEY'], ENV['VKONTAKTE_SECRET'],
|
14
14
|
{
|
15
15
|
scope: SCOPE,
|
16
|
-
display: '
|
16
|
+
display: 'popup',
|
17
17
|
lang: 'en',
|
18
18
|
image_size: 'original'
|
19
19
|
}
|
@@ -72,15 +72,16 @@ module OmniAuth
|
|
72
72
|
end
|
73
73
|
|
74
74
|
|
75
|
-
# You can pass +display+ or +scope+ params to the auth request,
|
76
|
-
# you need to set them dynamically.
|
75
|
+
# You can pass +display+, +revoke+ or +scope+ params to the auth request,
|
76
|
+
# if you need to set them dynamically.
|
77
77
|
#
|
78
78
|
# http://vk.com/dev/oauth_dialog
|
79
79
|
#
|
80
|
+
# +revoke+ revokes access and re-authorizes user.
|
80
81
|
def authorize_params
|
81
82
|
super.tap do |params|
|
82
83
|
# just a copypaste from ominauth-facebook
|
83
|
-
%w[display state scope].each do |v|
|
84
|
+
%w[display state scope revoke].each do |v|
|
84
85
|
if request.params[v]
|
85
86
|
params[v.to_sym] = request.params[v]
|
86
87
|
|
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.4.
|
4
|
+
version: 1.4.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: 2017-
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
69
|
rubyforge_project:
|
70
|
-
rubygems_version: 2.
|
70
|
+
rubygems_version: 2.6.13
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: Unofficial VKontakte strategy for OmniAuth 1.0
|