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 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.0'
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.0'
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
- connection = new(url)
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
@@ -26,8 +26,8 @@ module Excon
26
26
  :query => uri.query,
27
27
  :scheme => uri.scheme
28
28
  }.merge!(params)
29
-
30
29
  set_socket_key
30
+ reset
31
31
  end
32
32
 
33
33
  # Sends the supplied request to the destination host.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)