Sha256: 0d010b014ef3e3e513dfd087cb1c47f41257ef0361c69ebb076e1a02adbdb928
Contents?: true
Size: 336 Bytes
Versions: 3
Compression:
Stored size: 336 Bytes
Contents
require "sinatra/base" class SinatraApp < Sinatra::Base get "/" do content_type :zip stream do |out| ZipKit::Streamer.open(out) do |z| z.write_file(File.basename(__FILE__)) do |io| File.open(__FILE__, "r") do |f| IO.copy_stream(f, io) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zip_kit-6.3.1 | examples/sinatra_application.rb |
zip_kit-6.3.0 | examples/sinatra_application.rb |
zip_kit-6.2.2 | examples/sinatra_application.rb |