valigator-csv 1.4.0 → 1.4.1

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: 9790896dcecf7ab173199ebe493c2f568e0c0993
4
- data.tar.gz: c19072ad47075f87e2679797fef326aa1de06289
3
+ metadata.gz: 321282981d2382b5a94723e6784996baa9983cd9
4
+ data.tar.gz: 1fc69c450f9622d1ded2912d9407e6b0482a6d93
5
5
  SHA512:
6
- metadata.gz: 35b73a4021a28aa0f87940e5e145fbd4193df80836632285bdb707e4fe28c954d0e3c7c3848425060728fc35ca85ca874baf29d822df561179049020007025e0
7
- data.tar.gz: 763289f77dcabb13230e89563a901d8b8b43c76b3278ecb333becc062a45427d9a3459972509ecfd11227dd74e68cc259206e828380ef2625a62f3a7dda4cbd9
6
+ metadata.gz: 247bf7242477c4e65b3299221857b8128af1cdd65bfcbb6dbd933381912d66e66114cd899dff25f7b0af6a3b010dd8a40b02fc46cc4d58b1da8b41316aff74a7
7
+ data.tar.gz: 0e8a6720b8f9a34d08441cf22f09c6c3039be600766df71bdf1061141d842c161fcb316a1a21fe70b8281e965bce525d8cc5cf916c7855b6a7682455cb52ff3e
@@ -86,6 +86,8 @@ module Valigator
86
86
  'unclosed_quote'
87
87
  when /invalid byte sequence/
88
88
  'invalid_encoding'
89
+ when /incompatible encoding/
90
+ 'invalid_encoding'
89
91
  else
90
92
  raise UnhandledTypeError, message
91
93
  end
@@ -25,7 +25,7 @@ module Valigator
25
25
  stop_if_error_limit_reached
26
26
  end
27
27
  rescue ErrorsLimitReachedError
28
- rescue ::CSV::MalformedCSVError, ArgumentError => error
28
+ rescue ::CSV::MalformedCSVError, Encoding::CompatibilityError, ArgumentError => error
29
29
  raise if unrelated_error?(error)
30
30
 
31
31
  errors << CSV::Error.new(error)
@@ -1,5 +1,5 @@
1
1
  module Valigator
2
2
  module CSV
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valigator-csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Nagy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-12-15 00:00:00.000000000 Z
13
+ date: 2015-12-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler