gdouban 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/gdouban.gemspec +1 -1
  3. data/lib/gdouban/base.rb +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/gdouban.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gdouban}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["goshan"]
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/v2/#{method}")
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdouban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: