csvlint 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +4 -0
  3. data/.github/workflows/push.yml +14 -2
  4. data/.ruby-version +1 -1
  5. data/.standard_todo.yml +43 -0
  6. data/Dockerfile +16 -0
  7. data/Gemfile +2 -2
  8. data/README.md +9 -9
  9. data/Rakefile +7 -7
  10. data/csvlint.gemspec +14 -16
  11. data/docker_notes_for_windows.txt +20 -0
  12. data/features/step_definitions/cli_steps.rb +11 -11
  13. data/features/step_definitions/information_steps.rb +4 -4
  14. data/features/step_definitions/parse_csv_steps.rb +11 -11
  15. data/features/step_definitions/schema_validation_steps.rb +10 -10
  16. data/features/step_definitions/sources_steps.rb +1 -1
  17. data/features/step_definitions/validation_errors_steps.rb +19 -19
  18. data/features/step_definitions/validation_info_steps.rb +9 -9
  19. data/features/step_definitions/validation_warnings_steps.rb +11 -11
  20. data/features/support/aruba.rb +6 -6
  21. data/features/support/earl_formatter.rb +39 -39
  22. data/features/support/env.rb +10 -11
  23. data/features/support/load_tests.rb +107 -103
  24. data/features/support/webmock.rb +2 -2
  25. data/lib/csvlint/cli.rb +133 -130
  26. data/lib/csvlint/csvw/column.rb +279 -280
  27. data/lib/csvlint/csvw/date_format.rb +90 -92
  28. data/lib/csvlint/csvw/metadata_error.rb +1 -3
  29. data/lib/csvlint/csvw/number_format.rb +40 -32
  30. data/lib/csvlint/csvw/property_checker.rb +714 -717
  31. data/lib/csvlint/csvw/table.rb +49 -52
  32. data/lib/csvlint/csvw/table_group.rb +24 -23
  33. data/lib/csvlint/error_collector.rb +2 -0
  34. data/lib/csvlint/error_message.rb +0 -1
  35. data/lib/csvlint/field.rb +153 -141
  36. data/lib/csvlint/schema.rb +34 -42
  37. data/lib/csvlint/validate.rb +161 -143
  38. data/lib/csvlint/version.rb +1 -1
  39. data/lib/csvlint.rb +22 -23
  40. data/spec/csvw/column_spec.rb +15 -16
  41. data/spec/csvw/date_format_spec.rb +5 -7
  42. data/spec/csvw/number_format_spec.rb +2 -4
  43. data/spec/csvw/table_group_spec.rb +103 -105
  44. data/spec/csvw/table_spec.rb +71 -73
  45. data/spec/field_spec.rb +116 -121
  46. data/spec/schema_spec.rb +129 -139
  47. data/spec/spec_helper.rb +6 -6
  48. data/spec/validator_spec.rb +167 -190
  49. metadata +22 -55
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csvlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pezholio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-13 00:00:00.000000000 Z
11
+ date: 2022-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -388,6 +388,20 @@ dependencies:
388
388
  - - ">="
389
389
  - !ruby/object:Gem::Version
390
390
  version: '0'
391
+ - !ruby/object:Gem::Dependency
392
+ name: standardrb
393
+ requirement: !ruby/object:Gem::Requirement
394
+ requirements:
395
+ - - ">="
396
+ - !ruby/object:Gem::Version
397
+ version: '0'
398
+ type: :development
399
+ prerelease: false
400
+ version_requirements: !ruby/object:Gem::Requirement
401
+ requirements:
402
+ - - ">="
403
+ - !ruby/object:Gem::Version
404
+ version: '0'
391
405
  description: CSV Validator
392
406
  email:
393
407
  - pezholio@gmail.com
@@ -405,9 +419,11 @@ files:
405
419
  - ".github/workflows/push.yml"
406
420
  - ".gitignore"
407
421
  - ".ruby-version"
422
+ - ".standard_todo.yml"
408
423
  - CHANGELOG.md
409
424
  - CODE_OF_CONDUCT.md
410
425
  - CONTRIBUTING.md
426
+ - Dockerfile
411
427
  - Gemfile
412
428
  - LICENSE.md
413
429
  - README.md
@@ -415,6 +431,7 @@ files:
415
431
  - bin/create_schema
416
432
  - bin/csvlint
417
433
  - csvlint.gemspec
434
+ - docker_notes_for_windows.txt
418
435
  - features/check_format.feature
419
436
  - features/cli.feature
420
437
  - features/csv_options.feature
@@ -495,65 +512,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
495
512
  version: '2.5'
496
513
  - - "<"
497
514
  - !ruby/object:Gem::Version
498
- version: '3.2'
515
+ version: '3.3'
499
516
  required_rubygems_version: !ruby/object:Gem::Requirement
500
517
  requirements:
501
518
  - - ">="
502
519
  - !ruby/object:Gem::Version
503
520
  version: '0'
504
521
  requirements: []
505
- rubygems_version: 3.3.7
522
+ rubygems_version: 3.4.1
506
523
  signing_key:
507
524
  specification_version: 4
508
525
  summary: CSV Validator
509
- test_files:
510
- - features/check_format.feature
511
- - features/cli.feature
512
- - features/csv_options.feature
513
- - features/csvupload.feature
514
- - features/csvw_schema_validation.feature
515
- - features/fixtures/cr-line-endings.csv
516
- - features/fixtures/crlf-line-endings.csv
517
- - features/fixtures/inconsistent-line-endings-unquoted.csv
518
- - features/fixtures/inconsistent-line-endings.csv
519
- - features/fixtures/invalid-byte-sequence.csv
520
- - features/fixtures/invalid_many_rows.csv
521
- - features/fixtures/lf-line-endings.csv
522
- - features/fixtures/spreadsheet.xls
523
- - features/fixtures/spreadsheet.xlsx
524
- - features/fixtures/title-row.csv
525
- - features/fixtures/valid.csv
526
- - features/fixtures/valid_many_rows.csv
527
- - features/fixtures/w3.org/.well-known/csvm
528
- - features/fixtures/white space in filename.csv
529
- - features/fixtures/windows-line-endings.csv
530
- - features/information.feature
531
- - features/parse_csv.feature
532
- - features/schema_validation.feature
533
- - features/sources.feature
534
- - features/step_definitions/cli_steps.rb
535
- - features/step_definitions/csv_options_steps.rb
536
- - features/step_definitions/information_steps.rb
537
- - features/step_definitions/parse_csv_steps.rb
538
- - features/step_definitions/schema_validation_steps.rb
539
- - features/step_definitions/sources_steps.rb
540
- - features/step_definitions/validation_errors_steps.rb
541
- - features/step_definitions/validation_info_steps.rb
542
- - features/step_definitions/validation_warnings_steps.rb
543
- - features/support/aruba.rb
544
- - features/support/earl_formatter.rb
545
- - features/support/env.rb
546
- - features/support/load_tests.rb
547
- - features/support/webmock.rb
548
- - features/validation_errors.feature
549
- - features/validation_info.feature
550
- - features/validation_warnings.feature
551
- - spec/csvw/column_spec.rb
552
- - spec/csvw/date_format_spec.rb
553
- - spec/csvw/number_format_spec.rb
554
- - spec/csvw/table_group_spec.rb
555
- - spec/csvw/table_spec.rb
556
- - spec/field_spec.rb
557
- - spec/schema_spec.rb
558
- - spec/spec_helper.rb
559
- - spec/validator_spec.rb
526
+ test_files: []