csv-utils 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/csv-find-error +2 -1
- data/csv-utils.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2ec5906d30d2be8c744e4311fc0c7af0f58a5f4
|
4
|
+
data.tar.gz: bcd816369f3e2698e30b372e3dc9c5a74a30b02f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44b66f060cbba4c1c2d48d62e40f6b17d437334633199e4de22988100dbd74b4bba92b9c03247bd284c562bf57b1ffdc0823e05d4591781f2cb01882fdaecc55
|
7
|
+
data.tar.gz: 14aba3fd327f3f03d9e82a3a189791aa1cc84985cd78fbb752dac8d03373868af92919a8e87e900e6e4765c3e41291a2203515cc4fc365c605fd4639df60fd59
|
data/bin/csv-find-error
CHANGED
@@ -7,7 +7,8 @@ begin
|
|
7
7
|
CSV.open(ARGV[0], 'rb').each { }
|
8
8
|
rescue CSV::MalformedCSVError => e
|
9
9
|
puts e.class.to_s + ': ' + e.message
|
10
|
-
if e.message =~ /Missing or stray quote in line (\d+)/
|
10
|
+
if e.message =~ /Missing or stray quote in line (\d+)/ ||
|
11
|
+
e.message =~ /Unclosed quoted field on line (\d+)/
|
11
12
|
lineno = $1.to_i
|
12
13
|
cmd = "csv-readline #{Shellwords.escape(ARGV[0])} #{lineno}"
|
13
14
|
puts "running #{cmd}"
|
data/csv-utils.gemspec
CHANGED