excon 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of excon might be problematic. Click here for more details.
- data/excon.gemspec +1 -1
- data/lib/excon.rb +2 -4
- data/lib/excon/connection.rb +1 -1
- metadata +2 -2
data/excon.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'excon'
|
16
|
-
s.version = '0.3.
|
16
|
+
s.version = '0.3.1'
|
17
17
|
s.date = '2010-12-09'
|
18
18
|
s.rubyforge_project = 'excon'
|
19
19
|
|
data/lib/excon.rb
CHANGED
@@ -13,7 +13,7 @@ require 'excon/response'
|
|
13
13
|
module Excon
|
14
14
|
|
15
15
|
unless const_defined?(:VERSION)
|
16
|
-
VERSION = '0.3.
|
16
|
+
VERSION = '0.3.1'
|
17
17
|
end
|
18
18
|
|
19
19
|
unless const_defined?(:CHUNK_SIZE)
|
@@ -33,9 +33,7 @@ module Excon
|
|
33
33
|
%w{connect delete get head options post put trace}.each do |method|
|
34
34
|
eval <<-DEF
|
35
35
|
def self.#{method}(url, params = {}, &block)
|
36
|
-
|
37
|
-
connection.reset
|
38
|
-
connection.request(params.merge!(:method => :#{method}), &block)
|
36
|
+
new(url).request(params.merge!(:method => :#{method}), &block)
|
39
37
|
end
|
40
38
|
DEF
|
41
39
|
end
|
data/lib/excon/connection.rb
CHANGED