tofulcrum 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/tofulcrum/version.rb +1 -1
- data/lib/tofulcrum.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2E2NmZiYjJkYThhM2I1YTVlOTQ1NWFjNjAzZjU5ZjFlOWNkOWNlMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmQ5MTk1ZTQ4M2EwOGQ5MmJjZDlhNzE1OTg4MGZiODQ1NmE1MTY2Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Yzk1OTljNzkyOWVlNDY0MGE5Y2ZlZDEyZmEyMDJkYjFiMTRhYjcwYTNkNTUw
|
10
|
+
ZTY0MmJiM2JjMGQwMjQxNWEwN2U2MTJjZjA5YzFmZTY4NTBjOGRjZTJiYTI3
|
11
|
+
NTg4YzYzOGM0NmY4NWM2YmVhYzM2Zjg5OThhZDI2MWViMDY3MDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDIwZTUyMWEwMDE4YTIzYjI3MzkxYjE2NGM0NjNkNTk2MWM4MGRkMmY2Y2Fh
|
14
|
+
NDBkNTNkYWY2M2E5OGY5ZGMxZDEyMWFmMWVjNGZmYzJiYThhOGNlYTFkMDJm
|
15
|
+
YmM4NTg1ZWU3NWI5ZjRmZmY4NjVhODI2N2M5ODgzYzcyZWNlNWE=
|
data/lib/tofulcrum/version.rb
CHANGED
data/lib/tofulcrum.rb
CHANGED
@@ -88,7 +88,7 @@ module Tofulcrum
|
|
88
88
|
[].tap do |all|
|
89
89
|
elements.each do |element|
|
90
90
|
all << element
|
91
|
-
all
|
91
|
+
all.concat(flatten_elements(element['elements'])) if element['elements']
|
92
92
|
end
|
93
93
|
end
|
94
94
|
end
|
@@ -97,6 +97,7 @@ module Tofulcrum
|
|
97
97
|
form = Fulcrum::Form.find(form_id, {})['form']
|
98
98
|
|
99
99
|
elements = flatten_elements(form['elements'])
|
100
|
+
puts elements.map {|e| e['data_name']}
|
100
101
|
|
101
102
|
if mapping.nil?
|
102
103
|
mapping = headers.map {|h| "#{h}=#{h}"}.join(',')
|