micro_vkontakte 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.0.
|
|
5
|
+
Echoe.new('micro_vkontakte', '0.0.3') 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"
|
|
@@ -8,7 +8,7 @@ module MicroVkontakte
|
|
|
8
8
|
class Session
|
|
9
9
|
VK_API_URL = 'http://api.vk.com/api.php'
|
|
10
10
|
VK_METHODS = %w{
|
|
11
|
-
wall
|
|
11
|
+
wall friends photos messages newsfeed status audio video places
|
|
12
12
|
secure language notes pages offers questions polls subscriptions
|
|
13
13
|
}
|
|
14
14
|
attr_accessor :app_id, :api_secret
|
|
@@ -41,7 +41,7 @@ module MicroVkontakte
|
|
|
41
41
|
define_method(method) do
|
|
42
42
|
variable = instance_variable_get("@#{method}")
|
|
43
43
|
unless variable
|
|
44
|
-
variable = self.new(app_id, api_secret, method)
|
|
44
|
+
variable = self.class.new(app_id, api_secret, method)
|
|
45
45
|
instance_variable_set("@#{method}", variable)
|
|
46
46
|
end
|
|
47
47
|
variable
|
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: 25
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Iskander Haziev
|