Sha256: 6e32c25d82042af84be1f0f0df3fac8536b42ea1aa7576aeddca75a6c1b2203c
Contents?: true
Size: 698 Bytes
Versions: 8
Compression:
Stored size: 698 Bytes
Contents
require 'sinatra/base' require 'erb' module Snapdragon class WebApplication < Sinatra::Base set :static, false set :root, ::File.expand_path('.', ::File.dirname(__FILE__)) def initialize(app = nil, suite) super() @suite = suite end get "/run" do erb :run end get "/jasmine-core/*" do |path| send_file ::File.expand_path(::File.join('../jasmine/lib/jasmine-core', path), ::File.dirname(__FILE__)) end get "/resources/*" do |path| send_file ::File.expand_path(::File.join('resources', path), ::File.dirname(__FILE__)) end get "/*" do |path| send_file ::File.expand_path(::File.join('.', path)) end end end
Version data entries
8 entries across 8 versions & 1 rubygems