gdouban 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gdouban.gemspec +1 -1
- data/lib/gdouban/base.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/gdouban.gemspec
CHANGED
data/lib/gdouban/base.rb
CHANGED
@@ -16,7 +16,7 @@ module GDouban
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def call_method(request_type, method="user/~me", params = {})
|
19
|
-
url = URI.parse("https://api.douban.com
|
19
|
+
url = URI.parse("https://api.douban.com/#{method}")
|
20
20
|
http = Net::HTTP.new(url.host, url.port)
|
21
21
|
http.use_ssl = true if url.scheme == 'https'
|
22
22
|
if request_type == "get"
|