omniauth-vkontakte 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/omniauth-vkontakte/version.rb +1 -1
- data/lib/omniauth/strategies/vkontakte.rb +2 -0
- 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: 4600f52193d082fd35375e34e6b822fc721b90a7
|
4
|
+
data.tar.gz: e41076cf4280c38734d72f1d190a8cd32ad95c05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a783498b480bf99966df984f77e3cda737476fa65957f2d4b15b0bf9280d555fe5b46e158afbf2166536be30c04afc9096c8e4423fce1b38e81eb2cbe0d3313
|
7
|
+
data.tar.gz: bd9b323713bfd7d2d00b46d1d14918f6aa415ad66d85fdaff741bffb3564b58c7e05260584dd33e52d30b6bb557edcd68a62873d1249faa689d392c2a4f2cbdf
|
data/README.md
CHANGED
@@ -19,6 +19,8 @@ You can configure several options, which you pass in to the `provider` method vi
|
|
19
19
|
* `display`: the display context to show the authentication page. Valid options include `page`, `popup` and `mobile`.
|
20
20
|
* `lang`: specifies the language. Optional options include `ru`, `ua`, `be`, `en`, `es`, `fi`, `de`, `it`.
|
21
21
|
* `image_size`: defines the size of the user's image. Valid options include `mini`(50x50), `bigger`(100x100) and `original`(200x200). Default is `mini`.
|
22
|
+
* `info_fields`: specify which fields should be added to AuthHash when
|
23
|
+
getting the user's info. Value should be a comma-separated string as per http://vk.com/dev/fields.
|
22
24
|
|
23
25
|
Here's an example of a possible configuration:
|
24
26
|
|
@@ -36,6 +36,7 @@ module OmniAuth
|
|
36
36
|
{
|
37
37
|
:name => [raw_info['first_name'], raw_info['last_name']].map(&:strip).reject(&:empty?).join(' '),
|
38
38
|
:nickname => raw_info['nickname'],
|
39
|
+
:email => access_token.params["email"],
|
39
40
|
:first_name => raw_info['first_name'],
|
40
41
|
:last_name => raw_info['last_name'],
|
41
42
|
:image => image_url,
|
@@ -96,6 +97,7 @@ module OmniAuth
|
|
96
97
|
def info_options
|
97
98
|
# http://vk.com/dev/fields
|
98
99
|
fields = ['nickname', 'screen_name', 'sex', 'city', 'country', 'online', 'bdate', 'photo_50', 'photo_100', 'photo_200_orig']
|
100
|
+
fields.concat(options[:info_fields].split(',')) if options[:info_fields]
|
99
101
|
return fields.join(',')
|
100
102
|
end
|
101
103
|
|
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
|
+
version: 1.3.3
|
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: 2014-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.2.2
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Unofficial VKontakte strategy for OmniAuth 1.0
|