Sha256: 095d5b17c716d04a3c00ef1de966099e425a621229e0005c9f87d131362ad841

Contents?: true

Size: 311 Bytes

Versions: 9

Compression:

Stored size: 311 Bytes

Contents

class JsTestServer::Server::Resources::FrameworkFile < JsTestServer::Server::Resources::File
  map "/framework"

  get "/?" do
    do_get
  end

  get "*" do
    do_get
  end

  def absolute_path
    @absolute_path ||= ::File.expand_path("#{framework_path}#{relative_path.gsub(%r{^/framework}, "")}")
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
honkster-js-test-server-0.2.12 lib/js_test_server/server/resources/framework_file.rb
honkster-js-test-server-0.2.11 lib/js_test_server/server/resources/framework_file.rb
honkster-js-test-server-0.2.10 lib/js_test_server/server/resources/framework_file.rb
honkster-js-test-server-0.2.9 lib/js_test_server/server/resources/framework_file.rb
js-test-server-0.2.8 lib/js_test_server/server/resources/framework_file.rb
js-test-server-0.2.7 lib/js_test_server/server/resources/framework_file.rb
js-test-server-0.2.6 lib/js_test_server/server/resources/framework_file.rb
js-test-server-0.2.1 lib/js_test_server/server/resources/framework_file.rb
js-test-server-0.2.0 lib/js_test_server/server/resources/framework_file.rb