Skip to content

Commit

Permalink
Update rubyzip version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nullreff committed Jan 19, 2014
1 parent 250d628 commit ebc378d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bukin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = '>= 1.9.1'
gem.add_dependency('thor', '~> 0.18.1')
gem.add_dependency('json', '~> 1.8.0')
gem.add_dependency('rubyzip', '~> 0.9.9')
gem.add_dependency('rubyzip', '~> 1.1.0')
end
4 changes: 2 additions & 2 deletions lib/bukin/installer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'bukin/lockfile'
require 'zip/zip'
require 'zip'

module Bukin
class Installer
Expand Down Expand Up @@ -31,7 +31,7 @@ def extract_files(file_data, path, match)
tempfile.write(file_data)
tempfile.close

Zip::ZipFile.open(tempfile.path) do |zipfile|
Zip::File.open(tempfile.path) do |zipfile|
files = zipfile.find_all {|file| file.name =~ match}
files.each do |file|
file.extract(File.join(path, file.name)) { true }
Expand Down

0 comments on commit ebc378d

Please sign in to comment.