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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02166b59856576cf3db8b7dac53df4c1ff17e902730f86935e511b132d045672
4
- data.tar.gz: 573bb1ac2546969ed4f7b92652e9e1d29d94d2f0678abeca8d9b79a799b2fcc8
3
+ metadata.gz: 1c81930e6cf0ab8d29c5484d39b3fc88a41b27f16b5509f16f7180a34a77bef2
4
+ data.tar.gz: b06726dc8ee7ff1d2bc33ea75fdae9fd8277b8868c8af1826121616cd1cd13eb
5
5
  SHA512:
6
- metadata.gz: c0d741f3710be17f48dde03c36a6c3c5c21e0ab94315e22167d56310bd60e34bb0b250642ffb2f2774b0cbb05a5c7056d098c8d974d9a668a62ad6d71430d213
7
- data.tar.gz: 0f671034a6511193c7fa5156ae946c4a2454b576463ff379298f3b04b3fab2d00acaf80d9ddc8d4b1d8ad619161b49357e283022215edcd72be47552c1e7f0d2
6
+ metadata.gz: c22abc336fc802980400ef752f64502a3f7dc313cfc75db4c46f6aea85939107f735f3b9bb367ba00edc5f8c03bcda659af7421efc4ac1aac4ac9486cf064568
7
+ data.tar.gz: 27fd002280d0ef42384ff3ee27ccd4a8f8333aa7a3da62a0fa4d46480ab4c8684b57954f77f2eea937d495311a2c451019102bc743279156aa6800238165bada
data/.gitignore CHANGED
@@ -7,4 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
- .idea/
10
+ .idea/
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.1
1
+ 3.1.2
data/.travis.yml CHANGED
@@ -1,6 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.7
4
- - 2.2.3
5
- - 2.6.0
6
- before_install: gem install bundler -v 1.10.6
3
+ - 2.3.8
4
+ - 2.4.9
5
+ - 2.5.7
6
+ - 2.6.2
7
+ - 2.6.5
8
+ - 3.1.2
9
+ before_install: gem install bundler
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Valigator
2
2
  module CSV
3
- VERSION = "3.0"
3
+ VERSION = "4.0.2"
4
4
  end
5
5
  end
data/repo-info.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "is_in_production": true,
3
+ "is_scannable": true,
4
+ "is_critical": false,
5
+ "contact": "g-gsuite-smartinsight@emarsys.com",
6
+ "hosted": null
7
+ }
@@ -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.1'
22
+ spec.required_ruby_version = '>= 2.3.8'
23
23
 
24
24
  spec.add_development_dependency "bundler"
25
- spec.add_development_dependency "rake", "~> 10.0"
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: '3.0'
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: 2019-12-12 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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: '2.1'
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.0.1
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: []