Skip to content

Commit d08b769

Browse files
dependabot[bot]cysjonathan
authored andcommitted
chore(deps): bump csv from 3.3.0 to 3.3.2
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]>
1 parent 8eb466b commit d08b769

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ GEM
189189
cronex (0.15.0)
190190
tzinfo
191191
unicode (>= 0.4.4.5)
192-
csv (3.3.0)
192+
csv (3.3.2)
193193
date (3.4.1)
194194
devise (4.9.4)
195195
bcrypt (~> 3.0)

app/services/concerns/course/user_invitation_service/parse_invitation_concern.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def parse_from_form(users)
104104
def parse_from_file(file)
105105
row_num = 0
106106
[].tap do |invites|
107-
CSV.foreach(file).with_index(1) do |row, row_number|
107+
CSV.foreach(file, encoding: 'utf-8').with_index(1) do |row, row_number|
108108
row_num = row_number
109109
row[0] = remove_utf8_byte_order_mark(row[0]) if row_number == 1
110110
row = strip_row(row)

0 commit comments

Comments
 (0)