omniauth-vkontakte 1.1.1 → 1.1.2
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.
|
@@ -60,7 +60,8 @@ module OmniAuth
|
|
|
60
60
|
:fields => fields.join(','),
|
|
61
61
|
:access_token => access_token.token
|
|
62
62
|
}
|
|
63
|
-
result = access_token.get('/method/getProfiles', :params => params).parsed["response"]
|
|
63
|
+
result = access_token.get('/method/getProfiles', :params => params).parsed["response"]
|
|
64
|
+
result && result.first ? result.first : nil
|
|
64
65
|
end
|
|
65
66
|
end
|
|
66
67
|
|
|
@@ -93,10 +94,10 @@ module OmniAuth
|
|
|
93
94
|
:cids => raw_info['country'],
|
|
94
95
|
:access_token => access_token.token
|
|
95
96
|
}
|
|
96
|
-
country = access_token.get('/method/
|
|
97
|
-
|
|
97
|
+
country = access_token.get('/method/places.getCountryById', :params => params).parsed['response']
|
|
98
|
+
country && country.first ? country.first['name'] : ''
|
|
98
99
|
else
|
|
99
|
-
|
|
100
|
+
''
|
|
100
101
|
end
|
|
101
102
|
end
|
|
102
103
|
|
|
@@ -107,10 +108,10 @@ module OmniAuth
|
|
|
107
108
|
:cids => raw_info['city'],
|
|
108
109
|
:access_token => access_token.token
|
|
109
110
|
}
|
|
110
|
-
city = access_token.get('/method/
|
|
111
|
-
|
|
111
|
+
city = access_token.get('/method/places.getCityById', :params => params).parsed['response']
|
|
112
|
+
city && city.first ? city.first['name'] : ''
|
|
112
113
|
else
|
|
113
|
-
|
|
114
|
+
''
|
|
114
115
|
end
|
|
115
116
|
end
|
|
116
117
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-vkontakte
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-11-
|
|
12
|
+
date: 2012-11-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: omniauth
|