Sha256: c5d5141f32010de35521c8d8a371db47552c356a2f7687f00da602b5fc541ea5

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 Bytes

Contents

require 'rubygems'
require 'zip'

class Lono::Bundler::Extract
  class Zip
    def self.extract(file, dest)
      ::Zip::File.open(file) { |zip_file|
        zip_file.each { |f|
          f_path=File.join(dest, f.name)
          FileUtils.mkdir_p(File.dirname(f_path))
          zip_file.extract(f, f_path) unless File.exist?(f_path)
        }
      }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/bundler/extract/zip.rb
lono-8.0.0.pre.rc5 lib/lono/bundler/extract/zip.rb
lono-8.0.0.pre.rc4 lib/lono/bundler/extract/zip.rb
lono-8.0.0.pre.rc3 lib/lono/bundler/extract/zip.rb
lono-8.0.0.pre.rc2 lib/lono/bundler/extract/zip.rb
lono-8.0.0.pre.rc1 lib/lono/bundler/extract/zip.rb