Sha256: 9e8e80dffbbc6ef308fc6e26812d3c39bcbcfa936d0a8f200b8063a150da9883

Contents?: true

Size: 279 Bytes

Versions: 34

Compression:

Stored size: 279 Bytes

Contents

module Rack::Insight
  class RackStaticBugAvoider
    def initialize(app, static_app)
      @app = app
      @static_app = static_app
    end

    def call(env)
      if env["PATH_INFO"]
        @static_app.call(env)
      else
        @app.call(env)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
rack-insight-0.5.13 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.12 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.11 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.10 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.9 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.8 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.7 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.6 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.5 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.4 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.3 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.2 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.1 lib/rack/insight/rack_static_bug_avoider.rb
rack-insight-0.5.0 lib/rack/insight/rack_static_bug_avoider.rb