valigator-csv 3.0 → 4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +6 -4
- data/lib/valigator/csv/error.rb +1 -3
- data/lib/valigator/csv/version.rb +1 -1
- data/valigator-csv.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1460c3e5231d084d11ad47592d112ae69b934dfbfb9a3eaa84d02eeb3c49be2
|
4
|
+
data.tar.gz: a767d14c6062f4a62107f7a345a4706245f4bda5860915e50698cb6952fce2cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f94473566580686f92042fc64a8172e6a7b548b68a8facef1d6ee040ecc577f381c6af20d8ba6858a4c9f7c4ab7046c530ac4a15e54b4e82c52373d0fb58b8e8
|
7
|
+
data.tar.gz: e2551b99ec65ba38bad084eb85811110b2c7f92b7fabb224127d7e6e574fd42206e6f536e25d1fa96abbabe672446cd2c83b9d8eeb87519cdb8aec8216c3d75c
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.5
|
data/.travis.yml
CHANGED
data/lib/valigator/csv/error.rb
CHANGED
@@ -63,11 +63,9 @@ module Valigator
|
|
63
63
|
|
64
64
|
def map_to_type(message)
|
65
65
|
case message
|
66
|
-
when /Missing or stray quote/
|
67
|
-
'stray_quote'
|
68
66
|
when /Unquoted fields do not allow/
|
69
67
|
'line_breaks'
|
70
|
-
when /Illegal quoting/
|
68
|
+
when /Missing or stray quote/, /Illegal quoting/, /Any value after quoted field isn't allowed/
|
71
69
|
'illegal_quoting'
|
72
70
|
when /Field size exceeded/
|
73
71
|
'field_size'
|
data/valigator-csv.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.required_ruby_version = '>= 2.
|
22
|
+
spec.required_ruby_version = '>= 2.3.8'
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
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: '
|
4
|
+
version: '4.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Nagy
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-12-
|
14
|
+
date: 2019-12-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -100,14 +100,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 2.3.8
|
104
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
|
-
rubygems_version: 3.0.
|
110
|
+
rubygems_version: 3.0.3
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Yet another CSV validator library
|