RubyGems
npm
Organizations
Log in
Sign up
RubyGems
baidu
Versions diffs
1.1.0 → 1.1.1
baidu 1.1.0 → 1.1.1
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/baidu.rb
+1
-1
metadata
+1
-1
data/lib/baidu.rb
CHANGED
@@ -23,7 +23,7 @@ class Baidu
23
23
def url(id)
24
24
a = Mechanize.new
25
25
a.redirect_ok=false
26
-
return a.
get
("http://www.baidu.com/link?url=#{id}").header['location']
26
+
return a.
head
("http://www.baidu.com/link?url=#{id}").header['location']
27
27
end
28
28
29
29
=begin
metadata
CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: baidu
3
3
version: !ruby/object:Gem::Version
4
-
version: 1.1.
0
4
+
version: 1.1.
1
5
5
prerelease:
6
6
platform: ruby
7
7
authors: