valigator-csv 3.0 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.ruby-version +1 -1
- data/.travis.yml +7 -4
- data/lib/valigator/csv/error.rb +1 -3
- data/lib/valigator/csv/validator.rb +1 -1
- data/lib/valigator/csv/version.rb +1 -1
- data/repo-info.json +7 -0
- data/valigator-csv.gemspec +2 -2
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c81930e6cf0ab8d29c5484d39b3fc88a41b27f16b5509f16f7180a34a77bef2
|
4
|
+
data.tar.gz: b06726dc8ee7ff1d2bc33ea75fdae9fd8277b8868c8af1826121616cd1cd13eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c22abc336fc802980400ef752f64502a3f7dc313cfc75db4c46f6aea85939107f735f3b9bb367ba00edc5f8c03bcda659af7421efc4ac1aac4ac9486cf064568
|
7
|
+
data.tar.gz: 27fd002280d0ef42384ff3ee27ccd4a8f8333aa7a3da62a0fa4d46480ab4c8684b57954f77f2eea937d495311a2c451019102bc743279156aa6800238165bada
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.2
|
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'
|
@@ -18,7 +18,7 @@ module Valigator
|
|
18
18
|
config.merge! options
|
19
19
|
@current_row_number = csv_options(options)[:headers] ? 1 : 0
|
20
20
|
|
21
|
-
::CSV.foreach(filename, csv_options(options)) do |row|
|
21
|
+
::CSV.foreach(filename, **csv_options(options)) do |row|
|
22
22
|
@current_row_number += 1
|
23
23
|
validate_fields row, options
|
24
24
|
validate_row row, options
|
data/repo-info.json
ADDED
data/valigator-csv.gemspec
CHANGED
@@ -19,9 +19,9 @@ 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
|
-
spec.add_development_dependency "rake",
|
25
|
+
spec.add_development_dependency "rake", '>= 13.0'
|
26
26
|
spec.add_development_dependency "rspec"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valigator-csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Nagy
|
8
8
|
- Istvan Demeter
|
9
9
|
- Tamas Drahos
|
10
10
|
- Milan Unicsovics
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2022-06-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -31,16 +31,16 @@ dependencies:
|
|
31
31
|
name: rake
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- - "
|
34
|
+
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
36
|
+
version: '13.0'
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- - "
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
43
|
+
version: '13.0'
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: rspec
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,12 +87,13 @@ files:
|
|
87
87
|
- lib/valigator/csv/row_validators/ragged.rb
|
88
88
|
- lib/valigator/csv/validator.rb
|
89
89
|
- lib/valigator/csv/version.rb
|
90
|
+
- repo-info.json
|
90
91
|
- valigator-csv.gemspec
|
91
92
|
homepage: https://github.com/emartech/valigator-csv
|
92
93
|
licenses:
|
93
94
|
- MIT
|
94
95
|
metadata: {}
|
95
|
-
post_install_message:
|
96
|
+
post_install_message:
|
96
97
|
rdoc_options: []
|
97
98
|
require_paths:
|
98
99
|
- lib
|
@@ -100,15 +101,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
101
|
requirements:
|
101
102
|
- - ">="
|
102
103
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
104
|
+
version: 2.3.8
|
104
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
106
|
requirements:
|
106
107
|
- - ">="
|
107
108
|
- !ruby/object:Gem::Version
|
108
109
|
version: '0'
|
109
110
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
111
|
-
signing_key:
|
111
|
+
rubygems_version: 3.3.7
|
112
|
+
signing_key:
|
112
113
|
specification_version: 4
|
113
114
|
summary: Yet another CSV validator library
|
114
115
|
test_files: []
|