Skip to content

Commit

Permalink
Merge pull request #168 from simonoff/master
Browse files Browse the repository at this point in the history
New rubyzip versions support
  • Loading branch information
treeder committed Jan 30, 2014
2 parents 393de8d + 9a627f2 commit 941ed59
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH
iron_worker_ng (1.1.0)
bundler
iron_core (>= 1.0.0)
rubyzip (= 0.9.9)
rubyzip (>= 1.0.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -57,7 +57,7 @@ GEM
rest_client (>= 1.7.1)
rest_client (1.7.2)
netrc (~> 0.7.7)
rubyzip (0.9.9)
rubyzip (1.1.0)
simple_oauth (0.2.0)
test-unit (2.5.5)
thread_safe (0.1.3)
Expand Down
2 changes: 1 addition & 1 deletion iron_worker_ng.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |gem|

gem.add_runtime_dependency 'iron_core', '>= 1.0.0'
gem.add_runtime_dependency 'bundler'
gem.add_runtime_dependency 'rubyzip', '= 0.9.9'
gem.add_runtime_dependency 'rubyzip', '>= 1.0.0'

gem.add_development_dependency 'test-unit'
gem.add_development_dependency 'minitest'
Expand Down
6 changes: 3 additions & 3 deletions lib/iron_worker_ng/code/container/zip.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'zip/zip'
require 'zip'

Zip.options[:continue_on_exists_proc] = true
Zip.continue_on_exists_proc = true

module IronWorkerNG
module Code
Expand All @@ -10,7 +10,7 @@ def initialize
super

@name = @name + '.zip'
@zip = ::Zip::ZipFile.open(@name, ::Zip::ZipFile::CREATE)
@zip = ::Zip::File.open(@name, ::Zip::File::CREATE)
end

def add(dest, src)
Expand Down
2 changes: 1 addition & 1 deletion test/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def worker_code(str)

def inspect_zip(code)
zip_file = code.create_container
yield Zip::ZipFile.open(zip_file)
yield Zip::File.open(zip_file)
File.unlink zip_file
end

Expand Down
2 changes: 1 addition & 1 deletion test/test_common_features.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require_relative 'helpers'
require 'zip/zip'
require 'zip'

class CommonFeaturesTest < IWNGTest

Expand Down

0 comments on commit 941ed59

Please sign in to comment.