Sha256: e1a81667a3496a9680b804a890706a862c46ae2556e8f47ab8cfd2a39e75b013

Contents?: true

Size: 466 Bytes

Versions: 45

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module Proscenium
  class Middleware
    class Runtime < Esbuild
      private

      def renderable?
        old_root = root
        old_path_info = @request.path_info

        @root = Pathname.new(__dir__).join('../')
        @request.path_info = @request.path_info.sub(%r{^/proscenium-runtime/}, 'runtime/')

        super
      ensure
        @request.path_info = old_path_info
        @root = old_root
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
proscenium-0.6.0-arm64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.6.0-x86_64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.6.0-x86_64-linux lib/proscenium/middleware/runtime.rb
proscenium-0.5.1-arm64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.5.1-x86_64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.5.1-x86_64-linux lib/proscenium/middleware/runtime.rb
proscenium-0.5.0-arm64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.5.0-x86_64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.5.0-x86_64-linux lib/proscenium/middleware/runtime.rb
proscenium-0.4.2-arm64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.4.2-x86_64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.4.2-x86_64-linux lib/proscenium/middleware/runtime.rb
proscenium-0.4.1-arm64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.4.1-x86_64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.4.1-x86_64-linux lib/proscenium/middleware/runtime.rb
proscenium-0.4.0-arm64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.4.0-x86_64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.4.0-x86_64-linux lib/proscenium/middleware/runtime.rb
proscenium-0.3.0-arm64-darwin lib/proscenium/middleware/runtime.rb
proscenium-0.3.0-x86_64-darwin lib/proscenium/middleware/runtime.rb