Sha256: 2baea222beae4157de6115374f12b6e229e6c2d48ebf3b04d88f1122c50b8ef8

Contents?: true

Size: 483 Bytes

Versions: 37

Compression:

Stored size: 483 Bytes

Contents

require 'erb'

module PactBroker
  module UI
    module Helpers
      module URLHelper

        extend self

        def group_url pacticipant_name, base_url = ''
          "#{base_url}/groups/#{ERB::Util.url_encode(pacticipant_name)}"
        end

        def matrix_url consumer_name, provider_name, base_url = ''
          "#{base_url}/matrix/provider/#{ERB::Util.url_encode(provider_name)}/consumer/#{ERB::Util.url_encode(consumer_name)}"
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
pact_broker-2.79.1 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.79.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.78.1 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.78.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.77.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.76.2 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.76.1 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.76.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.75.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.74.1 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.74.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.73.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.72.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.71.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.70.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.69.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.68.1 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.68.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.67.0 lib/pact_broker/ui/helpers/url_helper.rb
pact_broker-2.66.0 lib/pact_broker/ui/helpers/url_helper.rb