diff --git a/CHANGELOG.md b/CHANGELOG.md index b6babdb..b8aabcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # SmarterCSV 1.x Change Log -## 1.11.1 (2024-07-05) +## 1.11.2 (2024-07-05) + * fixing missing errors definition + +## 1.11.1 (2024-07-05) (YANKED) * improved behavior of Writer class * added SmarterCSV.generate shortcut for CSV writing diff --git a/lib/smarter_csv/errors.rb b/lib/smarter_csv/errors.rb new file mode 100644 index 0000000..ffe8d7d --- /dev/null +++ b/lib/smarter_csv/errors.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module SmarterCSV + class Error < StandardError; end # new code should rescue this instead + # Reader: + class SmarterCSVException < Error; end # for backwards compatibility + class HeaderSizeMismatch < SmarterCSVException; end + class IncorrectOption < SmarterCSVException; end + class ValidationError < SmarterCSVException; end + class DuplicateHeaders < SmarterCSVException; end + class MissingKeys < SmarterCSVException; end # previously known as MissingHeaders + class NoColSepDetected < SmarterCSVException; end + class KeyMappingError < SmarterCSVException; end + # Writer: + class InvalidInputData < SmarterCSVException; end +end diff --git a/lib/smarter_csv/version.rb b/lib/smarter_csv/version.rb index a1f5b30..bb6901d 100644 --- a/lib/smarter_csv/version.rb +++ b/lib/smarter_csv/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module SmarterCSV - VERSION = "1.11.1" + VERSION = "1.11.2" end diff --git a/smarter_csv.gemspec b/smarter_csv.gemspec index d7f04ac..d0e45e0 100644 --- a/smarter_csv.gemspec +++ b/smarter_csv.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.email = ["tilo.sloboda@gmail.com"] spec.summary = "CSV Reading and Writing" - spec.description = "Ruby Gem for reading and writing: Smarter importing of CSV Files as Array(s) of Hashes, with lots of features for processing large files in parallel, embedded comments, unusual field- and record-separators, flexible mapping of CSV-headers to Hash-keys" + spec.description = "Ruby Gem for convenient reading and writing: importing of CSV Files as Array(s) of Hashes, with lots of features for processing large files in parallel, embedded comments, unusual field- and record-separators, flexible mapping of CSV-headers to Hash-keys" spec.homepage = "https://github.com/tilo/smarter_csv" spec.license = 'MIT'