micro_vkontakte 0.0.10 → 0.0.11

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.11 added sid and secret to omniauth params
1
2
  v0.0.10 added sid and secret to omniauth
2
3
  v0.0.9 updated omniauth
3
4
  v0.0.8 updated omniauth
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.10') do |p|
5
+ Echoe.new('micro_vkontakte', '0.0.11') 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"
@@ -6,7 +6,9 @@ module OmniAuth
6
6
  module PageHelper
7
7
  def vkontakte_login_button
8
8
  <<-BUTTON
9
- <img id="vk_login" src="/images/auth/vk.png" onclick="vkLogin.doLogin();" />
9
+ <a href="#" id="vk_login">
10
+ <img src="/images/auth/vk.png" onclick="vkLogin.doLogin();" />
11
+ </a>
10
12
  <div id="vk_api_transport"></div>
11
13
  <script type="text/javascript">
12
14
  window.vkAsyncInit = function() {
@@ -41,6 +41,8 @@ module OmniAuth
41
41
  def auth_hash
42
42
  OmniAuth::Utils.deep_merge(super(), {
43
43
  'uid' => request[:uid],
44
+ 'sid' => request[:sid],
45
+ 'secret' => request[:secret],
44
46
  'user_info' => {
45
47
  'nickname' => request[:nickname],
46
48
  'name' => "#{request[:first_name]} #{request[:last_name]}",
@@ -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.10"
5
+ s.version = "0.0.11"
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Iskander Haziev