lib/pact/pact_broker.rb in pact-1.41.2 vs lib/pact/pact_broker.rb in pact-1.42.0
- old
+ new
@@ -1,19 +1,25 @@
require 'pact/pact_broker/fetch_pacts'
-require 'pact/pact_broker/fetch_pending_pacts'
+require 'pact/pact_broker/fetch_pact_uris_for_verification'
+require 'pact/provider/pact_uri'
#
-# @public Use by Pact Provider Verifier
+# @public Used by Pact Provider Verifier
#
module Pact
module PactBroker
extend self
+ # Keep for backwards compatibility with pact-provider-verifier < 1.23.1
def fetch_pact_uris *args
Pact::PactBroker::FetchPacts.call(*args).collect(&:uri)
end
- def fetch_pending_pact_uris *args
- Pact::PactBroker::FetchPendingPacts.call(*args).collect(&:uri)
+ def fetch_pact_uris_for_verification *args
+ Pact::PactBroker::FetchPactURIsForVerification.call(*args)
+ end
+
+ def build_pact_uri(*args)
+ Pact::Provider::PactURI.new(*args)
end
end
end