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 CHANGED
@@ -1,3 +1,4 @@
1
+ v0.0.8 updated omniauth
1
2
  v0.0.7 updated omniauth
2
3
  v0.0.6 added omniauth
3
4
  v0.0.5 bug fixes
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.7') do |p|
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]';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{micro_vkontakte}
5
- s.version = "0.0.7"
5
+ s.version = "0.0.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Iskander Haziev"]
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: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Iskander Haziev