omniauth-vkontakte 1.3.4 → 1.3.5

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
  SHA1:
3
- metadata.gz: 1c6686250c9a81bc7bc6f7545e9d6d9fe702ca17
4
- data.tar.gz: 953f4cf5c904b0857cd0f25ba766eb7920ee548e
3
+ metadata.gz: d0c199e114dec8304976f1b104aea9196126c233
4
+ data.tar.gz: a05592290150b668bb891f053f99bfaed86d7842
5
5
  SHA512:
6
- metadata.gz: 8721c3341d33bd33ea8af12ed8f2cc0ea9cb4b8f25a5192f87314ce5b1c19e97155021c27fc91fbb19dda6bda9d3239942257443c48f3fc35ff62a0ccef554b1
7
- data.tar.gz: 20849621b7bd8cd91b0264bbb5e290af9fdd592a4ff16a192ab6bdfd1d48463bc850961ba5e8da2486d0de4316ef68850037334542b5cea1ccab13b64275adde
6
+ metadata.gz: 490eaf357f29db3839296fa7bf45e0de041dc3aeb834fbee6ae1ab090c692b7e3ee4e96ad5c59a8149028d019a036b48faf5cb91a5abdc4fea4a58494186e735
7
+ data.tar.gz: a3c0f003d55223cd6e2d77eb261f7b5988109e83f10076ba65dffa55db56daa5321706d4881f4d5b2d2ac13b0ef6b47d8be055a3b877a629ace7d867222f5dee
@@ -29,6 +29,8 @@ module OmniAuth
29
29
 
30
30
  option :authorize_options, [:scope, :display]
31
31
 
32
+ option :redirect_url, nil
33
+
32
34
  uid { raw_info['id'].to_s }
33
35
 
34
36
  # https://github.com/intridea/omniauth/wiki/Auth-Hash-Schema
@@ -94,6 +96,10 @@ module OmniAuth
94
96
 
95
97
  private
96
98
 
99
+ def callback_url
100
+ options.redirect_url || super
101
+ end
102
+
97
103
  def info_options
98
104
  # http://vk.com/dev/fields
99
105
  fields = %w[nickname screen_name sex city country online bdate photo_50 photo_100 photo_200 photo_200_orig photo_400_orig]
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Vkontakte
3
- VERSION = "1.3.4"
3
+ VERSION = "1.3.5"
4
4
  end
5
5
  end
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.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Maminov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth