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.

@@ -1,3 +1,8 @@
1
+ 0.9.4 12/21/11
2
+ ==============
3
+
4
+ * fix for regexp/capture setting
5
+
1
6
  0.9.3 12/21/11
2
7
  ==============
3
8
 
@@ -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.3'
16
+ s.version = '0.9.4'
17
17
  s.date = '2011-12-21'
18
18
  s.rubyforge_project = 'excon'
19
19
 
@@ -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]) do |match|
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]) do |match|
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
@@ -1,6 +1,6 @@
1
1
  module Excon
2
2
  unless const_defined?(:VERSION)
3
- VERSION = '0.9.3'
3
+ VERSION = '0.9.4'
4
4
  end
5
5
 
6
6
  unless const_defined?(:CHUNK_SIZE)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 3
9
- version: 0.9.3
8
+ - 4
9
+ version: 0.9.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - dpiddy (Dan Peterson)