lib/zip_dir/unzipper.rb in zip_dir-0.1.0 vs lib/zip_dir/unzipper.rb in zip_dir-0.1.1
- old
+ new
@@ -18,10 +18,10 @@
def unzipped?
!!@unzipped
end
def unzip
- Zip::File.open(zip_path) do |zip_file|
+ ::Zip::File.open(zip_path) do |zip_file|
zip_file.each do |entry|
file_path = "#{@unzip_path}/#{entry.name}"
entry.extract(file_path) unless File.exists?(file_path)
end
end
\ No newline at end of file