csv_importer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/lib/csv_importer/csv_importer.rb +2 -2
- metadata +3 -3
data/History.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module CSVImporter
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.4"
|
3
3
|
require 'csv'
|
4
4
|
|
5
5
|
|
@@ -61,7 +61,7 @@ module CSVImporter
|
|
61
61
|
#TODO: Fix repitition in determine_delimiter_and_columns
|
62
62
|
comma = first_line.split(",")
|
63
63
|
semicolon = first_line.split(";")
|
64
|
-
if comma.
|
64
|
+
if comma.size > semicolon.size
|
65
65
|
return ",",comma.map!{|c| c.strip.downcase}
|
66
66
|
else
|
67
67
|
return ";",semicolon.map!{|c| c.strip.downcase}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv_importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sparkboxx
|