micro_vkontakte 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/Rakefile +1 -1
- data/lib/omniauth/strategies/vkontakte/view_helper.rb +4 -5
- data/micro_vkontakte.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('micro_vkontakte', '0.0.
|
5
|
+
Echoe.new('micro_vkontakte', '0.0.8') do |p|
|
6
6
|
p.description = "Vkontakte api tools."
|
7
7
|
p.url = "http://github.com/gvalmon/micro_vkontakte"
|
8
8
|
p.author = "Iskander Haziev"
|
@@ -30,8 +30,7 @@ HEADER
|
|
30
30
|
VK.init({
|
31
31
|
apiId: '#{OmniAuth.config.vkontakte_app_id}',
|
32
32
|
nameTransportPath: "/xd_receiver.html"
|
33
|
-
});
|
34
|
-
VK.UI.button('vk_login');
|
33
|
+
});
|
35
34
|
};
|
36
35
|
vkLogin = {
|
37
36
|
doLogin: function() {
|
@@ -75,12 +74,12 @@ HEADER
|
|
75
74
|
loginResult: function (r) {
|
76
75
|
if (r.session) {
|
77
76
|
if (r.session.expire != "0") {
|
78
|
-
vkLogin.getUserProfile(vkLogin.putUserProfile);
|
77
|
+
vkLogin.getUserProfile(vkLogin.putUserProfile, r.session.sid, r.session.secret);
|
79
78
|
} else if (r.session.expire == "0") {
|
80
79
|
VK.Observer.subscribe("auth.sessionChange", function (r) {
|
81
80
|
VK.Observer.unsubscribe("auth.sessionChange");
|
82
81
|
if (r.session && r.session.expire != "0") {
|
83
|
-
vkLogin.getUserProfile(vkLogin.putUserProfile)
|
82
|
+
vkLogin.getUserProfile(vkLogin.putUserProfile, r.session.sid, r.session.secret)
|
84
83
|
} else {
|
85
84
|
}
|
86
85
|
});
|
@@ -88,7 +87,7 @@ HEADER
|
|
88
87
|
}
|
89
88
|
}
|
90
89
|
},
|
91
|
-
getUserProfile: function (callFunc) {
|
90
|
+
getUserProfile: function (callFunc, sid, secret) {
|
92
91
|
var code;
|
93
92
|
code = 'return {';
|
94
93
|
code += 'me: API.getProfiles({uids: API.getVariable({key: 1280}), fields: "nickname,sex,photo"})[0]';
|
data/micro_vkontakte.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: micro_vkontakte
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Iskander Haziev
|