Sha256: dcc41141b352bc2691b06659117f18bf223fc0e0e6c1518d83988a7819fb9eba

Contents?: true

Size: 255 Bytes

Versions: 37

Compression:

Stored size: 255 Bytes

Contents

module Rack
  module PactBroker
    class StoreBaseURL
      def initialize app
        @app = app
      end

      def call(env)
        ENV['PACT_BROKER_BASE_URL'] ||= ::Rack::Request.new(env).base_url
        @app.call(env)
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
pact_broker-2.19.2 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.19.1 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.19.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.18.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.17.1 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.17.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.16.1 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.16.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.15.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.14.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.13.1 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.13.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.12.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.11.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.10.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.9.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.9.0.beta.5 lib/rack/pact_broker/store_base_url.rb