excon 0.9.3 → 0.9.4
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/changelog.txt +5 -0
- data/excon.gemspec +1 -1
- data/lib/excon/connection.rb +4 -2
- data/lib/excon/constants.rb +1 -1
- metadata +2 -2
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.9.
|
16
|
+
s.version = '0.9.4'
|
17
17
|
s.date = '2011-12-21'
|
18
18
|
s.rubyforge_project = 'excon'
|
19
19
|
|
data/lib/excon/connection.rb
CHANGED
@@ -241,9 +241,10 @@ module Excon
|
|
241
241
|
headers_match = !stub.has_key?(:headers) || stub[:headers].keys.all? do |key|
|
242
242
|
case value = stub[:headers][key]
|
243
243
|
when Regexp
|
244
|
-
value.match(params[:headers][key])
|
244
|
+
if match = value.match(params[:headers][key])
|
245
245
|
params[:captures][:headers][key] = match.captures
|
246
246
|
end
|
247
|
+
match
|
247
248
|
else
|
248
249
|
value == params[:headers][key]
|
249
250
|
end
|
@@ -251,9 +252,10 @@ module Excon
|
|
251
252
|
non_headers_match = (stub.keys - [:headers]).all? do |key|
|
252
253
|
case value = stub[key]
|
253
254
|
when Regexp
|
254
|
-
value.match(params[key])
|
255
|
+
if match = value.match(params[key])
|
255
256
|
params[:captures][key] = match.captures
|
256
257
|
end
|
258
|
+
match
|
257
259
|
else
|
258
260
|
value == params[key]
|
259
261
|
end
|
data/lib/excon/constants.rb
CHANGED