tilo / smarter_csv

Ruby Gem for convenient reading and writing of CSV files. It has intelligent defaults, and auto-discovery of column and row separators. It imports CSV Files as Array(s) of Hashes, suitable for direct processing with ActiveRecord, kicking-off batch jobs with Sidekiq, parallel processing, or oploading data to S3. Writing CSV Files is equally easy.
MIT License
1.46k stars 190 forks source link

towards v1.10.0 [BREAKING] #263

Closed tilo closed 10 months ago

tilo commented 10 months ago

0) Refactoring of Code and Tests

1) Performance Improvements

2) Previous versions of SmarterCSV applied some header transformations when user_provided_headers were provided.

This legacy behavior does not make much sense, because when user_provided_headers are given, we can assume they are correct, and should be used as-is.

For the unlikely scenario that incorrect user_provided_headers were given, the legacy code attempted to disambiguate them, by applying a suffix.

3) Previously strings_as_keys transformations were applied to user_provided_headers

This legacy behavior does not make much sense, because when user_provided_headers are given, we can assume they are correct, and should be used as-is.

BREAKING CHANGES: