csv_to_object 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/csv_to_object/version.rb +1 -1
- data/lib/csv_to_object.rb +1 -1
- metadata +2 -2
data/lib/csv_to_object.rb
CHANGED
@@ -19,7 +19,7 @@ module CsvToObject
|
|
19
19
|
def to_objects
|
20
20
|
objects = []
|
21
21
|
file = File.open(@input_path)
|
22
|
-
CSV.table(file, {header_converters: header_converter
|
22
|
+
CSV.table(file, {header_converters: header_converter}).each do |row|
|
23
23
|
objects << new_object(row.to_hash)
|
24
24
|
end
|
25
25
|
objects
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv_to_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-04-
|
13
|
+
date: 2013-04-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|