I successfully downloaded and extracted the GZip files using this code:
require 'open-uri' require 'zlib' open('tarball.tar', 'w') do |local_file| open('http://github.com/jashkenas/coffee-script/tarball/master/tarball.tar.gz') do |remote_file| local_file.write(Zlib::GzipReader.new(remote_file).read) end end
source share