Sha256: a0f12ef0283e9837a57e49e784618ab85de85b7b08e6da04071a089e328bd782

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

class RubyLogo

  def initialize(app)
    @app = app
  end

  def call(env)
    if env["REQUEST_URI"].include? "?=PHPE9568F34-D428-11d2-A769-00AA001ACF42"
      # Dump the ruby logo
      [200, {"Content-Type" => "image/png"}, File.open(File.expand_path("../../assets/ruby.png", __FILE__))]
    else
      @app.call(env)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_logo-0.0.1 lib/ruby_logo.rb