Sha256: 4d394fe018f02db8656c51894b70bdca60f48615f155cb1e4a11fb38eb583e09

Contents?: true

Size: 437 Bytes

Versions: 24

Compression:

Stored size: 437 Bytes

Contents

require 'sinatra'

class SinatraSimple < Sinatra::Base
  set :reload, true

  get "/" do
    'The magick number is: 2767356926488785838763860464013972991031534522105386787489885890443740254365!' # Change only the number!!!
  end

  get "/rand" do
    rand(2 ** 256).to_s
  end

  get "/render" do
    render :erb, "This is an erb render"
  end

  get "/break" do
    raise "This is a controller exception!"
  end
end

use SinatraSimple

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
traceview-3.0.0-java test/frameworks/apps/sinatra_simple.rb
traceview-3.0.0 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.19-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.19 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.18-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.18 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.17.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.17.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.16.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.16.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.15.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.15.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.14.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.14.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.13.3-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.13.3 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.12.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.12.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.11.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.11.1-java test/frameworks/apps/sinatra_simple.rb