lib/pact_broker/matrix/repository.rb
def build_resolved_selectors(pacticipant, versions, unresolved_selector, selector_type, resolved_ignore_selectors)
        if versions
          one_of_many = versions.compact.size > 1
          versions.collect do | version |
            if version
              selector_for_found_version(pacticipant, version, unresolved_selector, selector_type, one_of_many, resolved_ignore_selectors)
            else
              selector_for_non_existing_version(pacticipant, unresolved_selector, selector_type, resolved_ignore_selectors)
            end
          end
        else
          selector_for_all_versions_of_a_pacticipant(pacticipant, unresolved_selector, selector_type, resolved_ignore_selectors)
        end
      end
# When a single selector specifies multiple versions (eg. "all prod pacts"), this expands
# the single selector into one selector for each version.
When a single selector specifies multiple versions , this expands
the single selector into one selector for each version.
When a single selector specifies multiple versions this expands the single selector into one selector for each version .
def build_resolved_selectors(pacticipant, versions, unresolved_selector, selector_type, resolved_ignore_selectors)
        if versions
          one_of_many = versions.compact.size > 1
          versions.collect do | version |
            if version
              selector_for_found_version(pacticipant, version, unresolved_selector, selector_type, one_of_many, resolved_ignore_selectors)
            else
              selector_for_non_existing_version(pacticipant, unresolved_selector, selector_type, resolved_ignore_selectors)
            end
          end
        else
          selector_for_all_versions_of_a_pacticipant(pacticipant, unresolved_selector, selector_type, resolved_ignore_selectors)
        end
      end
def build_resolved_selectors ( pacticipant , versions , unresolved_selector , selector_type , resolved_ignore_selectors ) if versions one_of_many = versions . compact . size > 1 versions . collect do | version | if version selector_for_found_version ( pacticipant , version , unresolved_selector , selector_type , one_of_many , resolved_ignore_selectors ) else selector_for_non_existing_version ( pacticipant , unresolved_selector , selector_type , resolved_ignore_selectors ) end end else selector_for_all_versions_of_a_pacticipant ( pacticipant , unresolved_selector , selector_type , resolved_ignore_selectors ) end end
When a single selector specifies multiple versions (eg.
When a single selector specifies multiple versions ( eg .
pacticipant
versions
unresolved_selector
selector_type
resolved_ignore_selectors