Sha256: be945a40c7aed91a11bd6e6efdaccc641155a30019d5ec4821c0a0d59c1d29d5

Contents?: true

Size: 391 Bytes

Versions: 12

Compression:

Stored size: 391 Bytes

Contents

class RackApp
  def self.call(env)
    if env['PATH_INFO'] == '/404'
      [404, {}, ["not found ;("]]
    else
      [200, {}, ["hello rack app"]]
    end
  end

  def self.prerequisites
    super
  end
end

RackApp2 = lambda{|_| [200, {}, ["hello rack app2"]] }

class SinatraApp < Sinatra::Base
  set :public_folder, File.dirname(__FILE__)
  get "/" do
    "hello sinatra app"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
padrino-core-0.15.3 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.15.2 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.15.1 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.15.0 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.14.4 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.14.3 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.14.2 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.14.1.1 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.14.1 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.14.0.2 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.14.0.1 test/fixtures/apps/mountable_apps/rack_apps.rb
padrino-core-0.14.0 test/fixtures/apps/mountable_apps/rack_apps.rb