Skip to content

Commit

Permalink
Fix issues with rubyzip 2.4+ create option (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger authored Jan 18, 2025
1 parent f8eae42 commit fc9b424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CHANGELOG

### Unreleased - [View Diff](https://github.com/westonganger/rails_i18n_manager/compare/v1.0.3...master)
- Nothing yet
- [#23](https://github.com/westonganger/rails_i18n_manager/pull/23) - Fix issues with rubyzip 2.4+ create option

### v1.0.3 - December 2, 2024 - [View Diff](https://github.com/westonganger/rails_i18n_manager/compare/v1.0.2...v1.0.3)
- [#21](https://github.com/westonganger/rails_i18n_manager/pull/21) - Switch to digested assets using either propshaft or sprockets
Expand Down
2 changes: 1 addition & 1 deletion app/models/rails_i18n_manager/translation_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def self.export_to(app_name: nil, zip: false, format: :yaml)
return nil
end

zip_file = Zip::File.open(temp_file, create: !File.exist?(temp_file)) do |zipfile|
zip_file = Zip::File.open(temp_file, create: true) do |zipfile|
files_to_write.each do |file|
zipfile.add(file.sub(base_folder_path, "translations/"), file)
end
Expand Down

0 comments on commit fc9b424

Please sign in to comment.