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.30.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.29.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.27.6 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.27.5 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.27.4 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.27.3 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.27.2 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.27.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.26.1 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.26.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.25.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.24.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.23.4 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.23.3 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.23.2 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.23.1 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.23.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.22.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.21.0 lib/rack/pact_broker/store_base_url.rb
pact_broker-2.20.0 lib/rack/pact_broker/store_base_url.rb