Skip to content

Instantly share code, notes, and snippets.

@kernelsmith
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save kernelsmith/47e7859419708f4c947b to your computer and use it in GitHub Desktop.

Select an option

Save kernelsmith/47e7859419708f4c947b to your computer and use it in GitHub Desktop.
require 'zip'
source_file = "blah.zip"
string = File.binread(source_file)
Zip::File.open_buffer(string) do |entries|
entries.each {|entry| puts entry.name }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment