Created
December 27, 2015 16:55
-
-
Save notblizzard/1e7df0aea2b595cb7607 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "zlib" | |
require "open-uri" | |
url = "https://cache.ruby-lang.org/pub/ruby/ruby-2.1.2.zip" | |
file_name = "ruby.zip" | |
File.open(file_name, "wb") { |file| file.write(open(url).read) } | |
z = Zlib::GzipReader.open(file_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment