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.
@@ -4,4 +4,10 @@
4
4
  * Initial release
5
5
 
6
6
  === 0.0.3 2010-11-20
7
+
7
8
  * 1 major enhancement, got gem working properly...finally.
9
+
10
+ === 0.0.3 2010-11-20
11
+
12
+ * 1 minor enhancement:
13
+ * Changed .count call on array to .size for compatibility reasons
@@ -1,5 +1,5 @@
1
1
  module CSVImporter
2
- VERSION = "0.0.3"
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.count > semicolon.count
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: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sparkboxx