mambanation 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/mambanation/request.rb +4 -1
  3. metadata +4 -4
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :build:
4
4
  :minor: 1
5
- :patch: 30
5
+ :patch: 31
@@ -63,7 +63,10 @@ module MambaNation
63
63
 
64
64
  def to_query(options)
65
65
  options.inject([]) do |collection, opt|
66
- collection << "#{opt[0]}=#{opt[1]}"
66
+ collection << case opt[1].class.to_s
67
+ when "Array" then opt[1].map { |value| "#{opt[0]}[]=#{value}" }.join('&')
68
+ else "#{opt[0]}=#{opt[1]}"
69
+ end
67
70
  collection
68
71
  end * '&'
69
72
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mambanation
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 30
10
- version: 0.1.30
9
+ - 31
10
+ version: 0.1.31
11
11
  platform: ruby
12
12
  authors:
13
13
  - "J\xC3\xA9r\xC3\xA9my Van de Wyngaert"
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-10-25 00:00:00 +02:00
20
+ date: 2010-10-27 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency