micro_vkontakte 0.1.1 → 0.1.2
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/micro_vkontakte/session.rb +2 -2
- 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.1.
|
5
|
+
Echoe.new('micro_vkontakte', '0.1.2') 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"
|
@@ -13,7 +13,7 @@ module MicroVkontakte
|
|
13
13
|
VK_API_URL = 'http://api.vk.com/api.php'
|
14
14
|
attr_accessor :app_id, :api_secret
|
15
15
|
|
16
|
-
def initialize(app_id, api_secret, prefix =
|
16
|
+
def initialize(app_id, api_secret, prefix = nil)
|
17
17
|
@app_id, @api_secret, @prefix = app_id, api_secret, prefix
|
18
18
|
end
|
19
19
|
|
@@ -26,8 +26,8 @@ module MicroVkontakte
|
|
26
26
|
response = JSON.parse(Net::HTTP.post_form(URI.parse(VK_API_URL), params).body)
|
27
27
|
if response['error']
|
28
28
|
raise ServerError.new(method, params, response['error'])
|
29
|
-
response['response']
|
30
29
|
end
|
30
|
+
response['response']
|
31
31
|
end
|
32
32
|
|
33
33
|
def sig(params)
|
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: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Iskander Haziev
|