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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGQzODY5NzNiOTE1YTYwNWZjZWI2NGYyMzQ4NjA3MGYwZmQ3N2I2OA==
4
+ M2E2NmZiYjJkYThhM2I1YTVlOTQ1NWFjNjAzZjU5ZjFlOWNkOWNlMg==
5
5
  data.tar.gz: !binary |-
6
- NGZhOTI4Y2YwMGMwNGExYzFmNWQ0NjJkMzE5ZjA2NTZiMzk3NzEzNg==
6
+ MmQ5MTk1ZTQ4M2EwOGQ5MmJjZDlhNzE1OTg4MGZiODQ1NmE1MTY2Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWM5MzU2YTE1ODQwNjE2N2Y5OWZkOWZhMmE1MTlmNmYzMzY3OTgzYjJlYTAw
10
- Y2M5MjIwYjVhZjJmNTEyMmRiMTVmMzIzMTlkZTkwMzNiOGYyODQ0NzEyNmY5
11
- NWMzMzU4YzZiZmU3MTBiYmQ3ZTY5YzcxMzg1OTM0YjNmYTI1Njk=
9
+ Yzk1OTljNzkyOWVlNDY0MGE5Y2ZlZDEyZmEyMDJkYjFiMTRhYjcwYTNkNTUw
10
+ ZTY0MmJiM2JjMGQwMjQxNWEwN2U2MTJjZjA5YzFmZTY4NTBjOGRjZTJiYTI3
11
+ NTg4YzYzOGM0NmY4NWM2YmVhYzM2Zjg5OThhZDI2MWViMDY3MDY=
12
12
  data.tar.gz: !binary |-
13
- ZTYyZDY1OGVjNzBjNTQ4NTFjYmJiOWI4NWI4MzgyZjMyYjljNGJiM2QzN2Q0
14
- YzJhNTVjNzE0NWZlZmJhYjM0ZGQ0YzcyN2VjMWE4NmFiYWY1Y2Y1MDEyYjM0
15
- MzMyNjRjYjFiMDk5MGJlY2Y0NDA0MmM0ODQxMzFhYmY4ZGY4YmE=
13
+ NDIwZTUyMWEwMDE4YTIzYjI3MzkxYjE2NGM0NjNkNTk2MWM4MGRkMmY2Y2Fh
14
+ NDBkNTNkYWY2M2E5OGY5ZGMxZDEyMWFmMWVjNGZmYzJiYThhOGNlYTFkMDJm
15
+ YmM4NTg1ZWU3NWI5ZjRmZmY4NjVhODI2N2M5ODgzYzcyZWNlNWE=
@@ -1,3 +1,3 @@
1
1
  module Tofulcrum
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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 += flatten_elements(element['elements']) if element['elements']
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(',')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tofulcrum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zac McCormick