excon 0.16.9 → 0.16.10
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.
- data/Gemfile.lock +1 -1
- data/changelog.txt +6 -0
- data/excon.gemspec +1 -1
- data/lib/excon.rb +1 -1
- data/lib/excon/constants.rb +1 -1
- data/lib/excon/errors.rb +2 -0
- data/lib/excon/response.rb +1 -1
- data/lib/excon/ssl_socket.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/changelog.txt
CHANGED
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.16.
|
|
16
|
+
s.version = '0.16.10'
|
|
17
17
|
s.date = '2012-11-16'
|
|
18
18
|
s.rubyforge_project = 'excon'
|
|
19
19
|
|
data/lib/excon.rb
CHANGED
|
@@ -102,7 +102,7 @@ module Excon
|
|
|
102
102
|
# push an additional stub onto the list to check for mock requests
|
|
103
103
|
# @param [Hash<Symbol, >] request params to match against, omitted params match all
|
|
104
104
|
# @param [Hash<Symbol, >] response params to return from matched request or block to call with params
|
|
105
|
-
def stub(request_params, response_params = nil)
|
|
105
|
+
def stub(request_params = {}, response_params = nil)
|
|
106
106
|
if url = request_params.delete(:url)
|
|
107
107
|
uri = URI.parse(url)
|
|
108
108
|
request_params.update(
|
data/lib/excon/constants.rb
CHANGED
data/lib/excon/errors.rb
CHANGED
data/lib/excon/response.rb
CHANGED
|
@@ -31,7 +31,7 @@ module Excon
|
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
unless (params[:method].to_s.
|
|
34
|
+
unless (['HEAD', 'CONNECT'].include?(params[:method].to_s.upcase)) || NO_ENTITY.include?(response.status)
|
|
35
35
|
|
|
36
36
|
# check to see if expects was set and matched
|
|
37
37
|
expected_status = !params.has_key?(:expects) || [*params[:expects]].include?(response.status)
|
data/lib/excon/ssl_socket.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: excon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.16.
|
|
4
|
+
version: 0.16.10
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -222,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
222
222
|
version: '0'
|
|
223
223
|
segments:
|
|
224
224
|
- 0
|
|
225
|
-
hash:
|
|
225
|
+
hash: 4511517215737189818
|
|
226
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
none: false
|
|
228
228
|
requirements:
|