Sha256: defaeca5f44eb49ebb9601d8ee6e5380bb194f1c0684db3bdadd1cbf1676a1f4

Contents?: true

Size: 325 Bytes

Versions: 4

Compression:

Stored size: 325 Bytes

Contents

module JsTestCore
  module Resources
    class CoreFile < File
      map "/core"

      get "/?" do
        do_get
      end

      get "*" do
        do_get
      end

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
honkster-screw-unit-server-0.6.3 vendor/js-test-core/lib/js_test_core/resources/core_file.rb
honkster-screw-unit-server-0.6.2 vendor/js-test-core/lib/js_test_core/resources/core_file.rb
honkster-screw-unit-server-0.6.1 vendor/js-test-core/lib/js_test_core/resources/core_file.rb
btakita-screw-unit-server-0.6.0 vendor/js-test-core/lib/js_test_core/resources/core_file.rb