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 +4 -4
- data/lib/roda/component/events.rb +9 -1
- data/lib/roda/component/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8d49b296029ec3ba5ed63122b09cd267f29009c
|
4
|
+
data.tar.gz: 16e8d558f42966772acc3539f1f5eabb9926700d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 = {}
|
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.
|
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-
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|