lib/pact_broker/matrix/row.rb in pact_broker-2.35.0 vs lib/pact_broker/matrix/row.rb in pact_broker-2.36.0
- old
+ new
@@ -65,18 +65,22 @@
def self.consumer_and_maybe_consumer_version_match_any_selector(selectors)
selectors.collect { |s| consumer_and_maybe_consumer_version_match_selector(s) }
end
def self.consumer_and_maybe_consumer_version_match_selector(s)
- if s[:pacticipant_version_id]
+ if s[:pact_publication_ids]
+ Sequel.&(pact_publication_id: s[:pact_publication_ids])
+ elsif s[:pacticipant_version_id]
Sequel.&(consumer_id: s[:pacticipant_id], consumer_version_id: s[:pacticipant_version_id])
else
Sequel.&(consumer_id: s[:pacticipant_id])
end
end
def self.provider_and_maybe_provider_version_match_selector(s)
- if s[:pacticipant_version_id]
+ if s[:verification_ids]
+ Sequel.&(verification_id: s[:verification_ids])
+ elsif s[:pacticipant_version_id]
Sequel.&(provider_id: s[:pacticipant_id], provider_version_id: s[:pacticipant_version_id])
else
Sequel.&(provider_id: s[:pacticipant_id])
end
end