excon 0.1.4 → 0.2.0

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.

@@ -13,8 +13,8 @@ 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.1.4'
17
- s.date = '2010-06-29'
16
+ s.version = '0.2.0'
17
+ s.date = '2010-07-25'
18
18
  s.rubyforge_project = 'excon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -16,7 +16,7 @@ require 'excon/response'
16
16
  module Excon
17
17
 
18
18
  unless const_defined?(:VERSION)
19
- VERSION = '0.1.4'
19
+ VERSION = '0.2.0'
20
20
  end
21
21
 
22
22
  CHUNK_SIZE = 1048576 # 1 megabyte
@@ -20,8 +20,10 @@ module Excon
20
20
  params[:path] = "/#{params[:path]}"
21
21
  end
22
22
  request = "#{params[:method]} #{params[:path]}?"
23
- for key, value in (params[:query] || @connection[:query] || {})
24
- request << "#{key}#{value && "=#{CGI.escape(value.to_s)}"}&"
23
+ for key, values in (params[:query] || @connection[:query] || {})
24
+ for value in [*values]
25
+ request << "#{key}#{value && "=#{CGI.escape(value.to_s)}"}&"
26
+ end
25
27
  end
26
28
  request.chop!
27
29
  request << " HTTP/1.1\r\n"
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 4
9
- version: 0.1.4
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-29 00:00:00 -05:00
17
+ date: 2010-07-25 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20