httpclient 2.2.6 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -95,6 +95,15 @@ Thanks in advance.
95
95
 
96
96
  == Changes
97
97
 
98
+ = Changes in 2.2.7 =
99
+
100
+ August 14, 2012 - version 2.2.7
101
+
102
+ * Bug fixes
103
+
104
+ * Fix arity incompatibility introduced in 2.2.6. It broke Webmock.
105
+ Thanks Andrew France for the report!
106
+
98
107
  = Changes in 2.2.6 =
99
108
 
100
109
  August 14, 2012 - version 2.2.6
@@ -199,7 +199,7 @@ module HTTP
199
199
  end
200
200
 
201
201
  # Initialize this instance as a response.
202
- def init_response(status_code, req)
202
+ def init_response(status_code, req = nil)
203
203
  @is_request = false
204
204
  self.status_code = status_code
205
205
  if req
@@ -461,7 +461,7 @@ module HTTP
461
461
  end
462
462
 
463
463
  # Initialize this instance as a response.
464
- def init_response(body)
464
+ def init_response(body = nil)
465
465
  @body = body
466
466
  if @body.respond_to?(:bytesize)
467
467
  @size = @body.bytesize
@@ -1,3 +1,3 @@
1
1
  class HTTPClient
2
- VERSION = '2.2.6'
2
+ VERSION = '2.2.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -88,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  segments:
90
90
  - 0
91
- hash: 1629827102590288352
91
+ hash: -2044284490282545774
92
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  none: false
94
94
  requirements:
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: 1629827102590288352
100
+ hash: -2044284490282545774
101
101
  requirements: []
102
102
  rubyforge_project:
103
103
  rubygems_version: 1.8.23