Sha256: 62f73e1a2c5d943a4cc4fda65f929dfb73df08b1262b790d38ff34170b591dd9

Contents?: true

Size: 368 Bytes

Versions: 27

Compression:

Stored size: 368 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
end

use SinatraSimple

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
oboe-2.7.9.lynx1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.8.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.8.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.7.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.7.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.6.2-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.6.2 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.5.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.5.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.5.wolf3 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.5.wolf3-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.5.wolf1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.5.wolf1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.4.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.4.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.3.1-java test/frameworks/apps/sinatra_simple.rb
oboe-2.7.3.1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.2.fuchs2 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.2.fuchs1 test/frameworks/apps/sinatra_simple.rb
oboe-2.7.2.2-java test/frameworks/apps/sinatra_simple.rb