Skip to content

fixing missing errors definition #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
16 changes: 16 additions & 0 deletions lib/smarter_csv/errors.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/smarter_csv/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SmarterCSV
VERSION = "1.11.1"
VERSION = "1.11.2"
end
2 changes: 1 addition & 1 deletion smarter_csv.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
Loading