roda-component 0.1.68 → 0.1.69

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 358e06f75935106f957931ee36e4b075a3e3bd4f
4
- data.tar.gz: 2e54102052179e2ff2c64748ad18c934597cf2c3
3
+ metadata.gz: d8d49b296029ec3ba5ed63122b09cd267f29009c
4
+ data.tar.gz: 16e8d558f42966772acc3539f1f5eabb9926700d
5
5
  SHA512:
6
- metadata.gz: b02b495054c6302dff0d63bf0256ecdc54b1ece47d798a2345df740d684cd0a212851be2ce2153d3325ca912d7e9413581a693be87ccacade80034f7495ea813
7
- data.tar.gz: b4432205d6b64788612c9a1185d1e9381e1f5322ad283563ff3489b5ecc00c576256dfcb25b475a17d3e0eca6efb8f7065931f5b3bbd870cefec8bf7a26887f7
6
+ metadata.gz: e2367171583e3554ad938b94229d5206cec708c6948b1643e582329de880d3ef7fb66d5ee9d5b4c2783e59b701f9c362d4e0bd7ed85fed14b33cb46b72c47dea
7
+ data.tar.gz: aa4839f79fa4b9af37ecefceb7d2847f10daa1b0444a3fa41258403e262c1f2ac556fa266808c5c207331297a04365908344892d6ab9c06c70b780486ede5736
@@ -71,7 +71,15 @@ class Roda
71
71
  name = field['name']
72
72
  value = field['value']
73
73
 
74
- params[name] = value
74
+ # Check to see if this is a multiple value form (form name
75
+ # should end in [])
76
+ if name =~ /\[\]$/
77
+ name = name.gsub(/\[\]$/,'')
78
+ params[name] = [] if params[name].nil?
79
+ params[name].push value
80
+ else
81
+ params[name] = value
82
+ end
75
83
  end
76
84
 
77
85
  params_obj = {}
@@ -1,5 +1,5 @@
1
1
  class Roda
2
2
  class Component
3
- VERSION = "0.1.68"
3
+ VERSION = "0.1.69"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.68
4
+ version: 0.1.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal