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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c869d3192759249b263ff71bb274c0da2a60c6c
4
- data.tar.gz: 2e8c47722a760024f9a119a2fa4dd4f794315683
3
+ metadata.gz: d2ec5906d30d2be8c744e4311fc0c7af0f58a5f4
4
+ data.tar.gz: bcd816369f3e2698e30b372e3dc9c5a74a30b02f
5
5
  SHA512:
6
- metadata.gz: adb7ba549d9b6d591b9965d31d9605afdbf5e29417de5a9df523ecf3f8a718287733ff7b0740e407a6dc1ed0d3659ba8da1703f67c4a8ad9492dd2f136d52442
7
- data.tar.gz: 4cc20944471377940df5a3cb0637518bdbcdb726dd57aeb7131f3925557cfea33f38a9f61b2a62018cf3b71bb22bc6950951e29ee3f9de389a650a8acd45568c
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'csv-utils'
5
- s.version = '0.1.2'
5
+ s.version = '0.1.3'
6
6
  s.summary = 'CSV Utils'
7
7
  s.description = 'Tools for debugging malformed CSV files'
8
8
  s.authors = ['Doug Youch']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch