Sha256: 29362e9d3fa771b8d56371dec3159792d26368dfd748d4d6d65413465a2d01f2

Contents?: true

Size: 331 Bytes

Versions: 19

Compression:

Stored size: 331 Bytes

Contents

#!/usr/bin/env ruby

require 'sinatra/base'

class Webserver < Sinatra::Base
  set :logging, :true

  post '/rspec/:test' do
    case params[:test]
    when 'send'
      return params[:data]
    else
      not_found
    end
  end

  get '/rspec/:test' do
    params[:test]
  end
end

Webserver.set :bind,'127.0.0.1'
Webserver.run!

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
test_server-0.5.2 script/test_web
test_server-0.5.1 script/test_web
test_server-0.5.0 script/test_web
test_server-0.4.1 script/test_web
test_server-0.4.0 script/test_web
test_server-0.3.7 script/test_web
test_server-0.3.6 script/test_web
test_server-0.3.5 script/test_web
test_server-0.3.4 script/test_web
test_server-0.3.2 script/test_web
test_server-0.3.1 script/test_web
test_server-0.2.4 script/test_web
test_server-0.2.3 script/test_web
test_server-0.2.2 script/test_web
test_server-0.2.1 script/test_web
test_server-0.2.0 script/test_web
test_server-0.1.2 script/test_web
test_server-0.1.1 script/test_web
test_server-0.1.0 script/test_web