Sha256: 84a33bf3b6604258adc808edd019a540a7db1592c35aa7f4555bcd5f26d9bad9
Contents?: true
Size: 553 Bytes
Versions: 3
Compression:
Stored size: 553 Bytes
Contents
require 'pact/matching_rules/extract' require 'pact/matching_rules/merge' require 'pact/matching_rules/v3/merge' module Pact module MatchingRules # @api public Used by pact-mock_service def self.extract object_graph, options = {} Extract.(object_graph) end def self.merge object_graph, matching_rules, options = {} case options[:pact_specification_version].major when nil, 0, 1, 2 Merge.(object_graph, matching_rules) else V3::Merge.(object_graph, matching_rules) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pact-support-1.5.2 | lib/pact/matching_rules.rb |
pact-support-1.5.1 | lib/pact/matching_rules.rb |
pact-support-1.5.0 | lib/pact/matching_rules.rb |