doubapi 0.0.7 → 0.0.8

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.
Files changed (3) hide show
  1. data/lib/doubapi/version.rb +1 -1
  2. data/lib/doubapi.rb +1 -1
  3. metadata +4 -4
@@ -1,3 +1,3 @@
1
1
  module Doubapi
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/doubapi.rb CHANGED
@@ -34,7 +34,7 @@ class << self
34
34
  def douban_get_xml url
35
35
  puts url
36
36
  #I have forgot why i need to specify the user agend
37
- doc = open(url,'User-Agent' => 'ruby')
37
+ doc = open(url, :proxy => nil, 'User-Agent' => 'ruby')
38
38
  Nokogiri::HTML(doc,nil, "utf-8")
39
39
  #Nokogiri::HTML(open(url,:proxy => nil,'User-Agent' => 'ruby'),nil, "utf-8")
40
40
  #no network access, used to simulator
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doubapi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - pierr chen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-07 00:00:00 +08:00
18
+ date: 2011-01-10 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency