Skip to content

Commit

Permalink
chore(deps): bump csv from 3.3.0 to 3.3.2
Browse files Browse the repository at this point in the history
Declare file encoding explicitly as CSV gem now [automatically detects Byte Order Mark](ruby/csv@b706d91) instead of assuming utf-8.

Bumps [csv](https://github.com/ruby/csv) from 3.3.0 to 3.3.2.
- [Release notes](https://github.com/ruby/csv/releases)
- [Changelog](https://github.com/ruby/csv/blob/master/NEWS.md)
- [Commits](ruby/csv@v3.3.0...v3.3.2)

---
updated-dependencies:
- dependency-name: csv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and cysjonathan committed Jan 14, 2025
1 parent 8eb466b commit d08b769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ GEM
cronex (0.15.0)
tzinfo
unicode (>= 0.4.4.5)
csv (3.3.0)
csv (3.3.2)
date (3.4.1)
devise (4.9.4)
bcrypt (~> 3.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def parse_from_form(users)
def parse_from_file(file)
row_num = 0
[].tap do |invites|
CSV.foreach(file).with_index(1) do |row, row_number|
CSV.foreach(file, encoding: 'utf-8').with_index(1) do |row, row_number|
row_num = row_number
row[0] = remove_utf8_byte_order_mark(row[0]) if row_number == 1
row = strip_row(row)
Expand Down

0 comments on commit d08b769

Please sign in to comment.