Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

~

  • Loading branch information...
commit 83497308de5f2c5694814fc0f0be2ccf438800e6 1 parent 1da6eeb
Andrew Zinenko authored
Showing with 5 additions and 4 deletions.
  1. +1 −1  .rvmrc
  2. +3 −2 lib/vk-ruby/serverside.rb
  3. +1 −1  lib/vk-ruby/version.rb
View
2  .rvmrc
@@ -1 +1 @@
-rvm use ruby-1.9.3-p194@vk-ruby --create
+rvm use 1.9.3@vk-ruby --create
View
5 lib/vk-ruby/serverside.rb
@@ -18,15 +18,16 @@ def initialize(params={})
# @raise if app_secret attribute is nil.
# @raise [VK::AuthorizeException] if vk.com return json with key error.
- def authorize(code, _redirect_uri, auto_save = true)
+ def authorize(code, auto_save = true)
raise 'undefined application id' unless self.app_id
raise 'undefined application secret' unless self.app_secret
+ raise 'undefined application redirect_url' unless self.app_secret
params = {host: 'https://oauth.vk.com',
client_id: self.app_id,
client_secret: self.app_secret,
code: code,
- redirect_uri: (_redirect_uri || self.redirect_url),
+ redirect_uri: self.redirect_uri,
verb: :get}
response = request("/access_token", params)
View
2  lib/vk-ruby/version.rb
@@ -1,5 +1,5 @@
# encoding: UTF-8
module VK
- VERSION = '0.9.1'
+ VERSION = '0.9.2'
end
Please sign in to comment.
Something went wrong with that request. Please try again.