Sha256: 3092132e9ba8fd1725380de7a15f3dd82dabcafe9ba2065bebffd7fee7f32f0c
Contents?: true
Size: 591 Bytes
Versions: 5
Compression:
Stored size: 591 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 end end
Version data entries
5 entries across 5 versions & 1 rubygems