Skip to content
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

build(deps): bump smarter_csv from 1.12.1 to 1.13.1 #4667

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 15, 2024

Bumps smarter_csv from 1.12.1 to 1.13.1.

Changelog

Sourced from smarter_csv's changelog.

1.13.1 (2024-12-12)

  • fix bug with SmarterCSV.generate with force_quotes: true (issue 294)

1.13.0 (2024-11-06) ⚡ POTENTIALLY BREAKING ⚡

CHANGED DEFAULT BEHAVIOR

The changes are to improve robustness and to reduce the risk of data loss

  • implementing auto-detection of extra columns (thanks to James Fenley)

  • improved handling of unbalanced quote_char in input (issue 288) thanks to Simon Rentzke), and (issue 283) thanks to James Fenley, Randall B, Matthew Kennedy) -> SmarterCSV will now raise SmarterCSV::MalformedCSV for unbalanced quote_char.

  • bugfix / improved handling of extra columns in input data (issue 284) (thanks to James Fenley)

    • previous behavior: when a CSV row had more columns than listed in the header, the additional columns were ignored

    • new behavior:

      • new default behavior is to auto-generate additional headers, e.g. :column_7, :column_8, etc
      • you can set option :strict to true in order to get a SmarterCSV::MalformedCSV exception instead
  • setting user_provided_headers now implies headers_in_file: false (issue 282)

    The option user_provided_headers can be used to specify headers when there are none in the input, OR to completely override headers that are in the input (file).

    SmarterCSV is now using a safer default behavior.

    • previous behavior: Setting user_provided_headers did not change the default headers_in_file: true If the input had no headers, this would cause the first line to be erroneously treated as a header, and the user could lose the first row of data.

    • new behavior: Setting user_provided_headers setsheaders_in_file: false a) Improved behavior if there was no header in the input data. b) If there was a header in the input data, and user_provided_headers is used to override the headers in the file, then please explicitly specify headers_in_file: true, otherwise you will get an extra hash which includes the header data.

    IF you set user_provided_headers and the file has a header, then provide headers_in_file: true to avoid getting that extra record.

  • improved documentation for handling of numeric columns with leading zeroes, e.g. ZIP codes. ([issue #151](tilo/smarter_csv#151) thanks to David Moles). convert_values_to_numeric: { except: [:zip] } will return a string for that column instead (since version 1.10.x)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [smarter_csv](https://github.com/tilo/smarter_csv) from 1.12.1 to 1.13.1.
- [Changelog](https://github.com/tilo/smarter_csv/blob/main/CHANGELOG.md)
- [Commits](tilo/smarter_csv@v1.12.1...v1.13.1)

---
updated-dependencies:
- dependency-name: smarter_csv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants