Skip to content

Commit

Permalink
Fix encoding issues (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeD authored Apr 5, 2023
1 parent 889ac2e commit f217732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Deprecated:
Updates:
* gems

Fix:
* encoding compatibility between template and changes

# v5.1.0 (December 26, 2022)

Enhancement:
Expand Down
2 changes: 1 addition & 1 deletion lib/gem_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def output_diff
# Format the diff to get human readable information
# on the gems that were updated.
def format_diff
erb = ERB.new(template, trim_mode: '<>')
erb = ERB.new(template.force_encoding('UTF-8'), trim_mode: '<>')

gemfile.changes.map do |gem, details|
erb.result(binding)
Expand Down

0 comments on commit f217732

Please sign in to comment.