Skip to content

Commit

Permalink
Test with rubyzip v3.0.0.alpha. #30
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Sep 21, 2023
1 parent 9bd21ac commit fa8ec93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source 'https://rubygems.org'

gemspec

gem 'rubyzip', git: 'https://github.com/rubyzip/rubyzip.git', branch: 'v3.0.0.alpha'
2 changes: 1 addition & 1 deletion lib/ro_crate/writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def write(dir, overwrite: true)
#
# @param destination [String, ::File] The destination where to write the RO-Crate zip.
def write_zip(destination)
Zip::File.open(destination, Zip::File::CREATE) do |zip|
Zip::File.open(destination, create: true) do |zip|
@crate.payload.each do |path, entry|
next if entry.directory?
if entry.symlink?
Expand Down
2 changes: 1 addition & 1 deletion ro_crate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.require_paths = ['lib']
s.licenses = ['MIT']
s.add_runtime_dependency 'addressable', '>= 2.7', '< 2.9'
s.add_runtime_dependency 'rubyzip', '~> 2.0.0'
# s.add_runtime_dependency 'rubyzip', '~> 2.0.0'
s.add_development_dependency 'rake', '~> 13.0.0'
s.add_development_dependency 'test-unit', '~> 3.5.3'
s.add_development_dependency 'simplecov', '~> 0.21.2'
Expand Down

0 comments on commit fa8ec93

Please sign in to comment.