omniauth-vkontakte 1.3.2 → 1.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d146ea5e9de54fe538402b57e34360e638d2e93
4
- data.tar.gz: e04cebda94757717d58d3e2272eb9d3dea863264
3
+ metadata.gz: 4600f52193d082fd35375e34e6b822fc721b90a7
4
+ data.tar.gz: e41076cf4280c38734d72f1d190a8cd32ad95c05
5
5
  SHA512:
6
- metadata.gz: ed7f184363b36bcbeb6312f5b6ccbebc92642daba58f2d65d547720c0ba64c541fbbe97fbe39add548ae4bd865ecf2e7fefc91cae75c8e0dab8a4c2e44a6cbff
7
- data.tar.gz: e421e08da0e95a5f94dea7c2f0bd57ce70f035ff92d23329913f5e2be5dd9ea7cb83798c25585b95703c1171a98fa69b88d7a321e1be4f77fb7f285bc1843d46
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
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Vkontakte
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
4
4
  end
5
5
  end
@@ -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.2
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: 2013-12-10 00:00:00.000000000 Z
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.1.11
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