pact-support 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/pact/shared/form_differ.rb +2 -4
- data/lib/pact/shared/json_differ.rb +2 -5
- data/lib/pact/shared/text_differ.rb +2 -4
- data/lib/pact/support/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e668698e96af72ebd649a7e15fcaa82b7142573
|
|
4
|
+
data.tar.gz: 92cd14ff7d38523862c61ef9895a535e2a041dde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee0b4cc48097be82874667836994d807d2f99ee755d82456af17e08659132265b936c6684faa2547c80642f0043d8623d21c544f7cd7ab54726e1cc7231f7f7f
|
|
7
|
+
data.tar.gz: 713779dfcf51c9ba6e3a75791c0d21522e9f643ba31757b030a0ce3e8c963bd67f21dc5201b0155c1894a458c736f9454d851f4cfdb07c515a8d1159251d3c2e
|
data/CHANGELOG.md
CHANGED
|
@@ -3,10 +3,9 @@ require 'uri'
|
|
|
3
3
|
module Pact
|
|
4
4
|
class FormDiffer
|
|
5
5
|
|
|
6
|
-
extend Matchers
|
|
7
|
-
|
|
8
6
|
def self.call expected, actual, options = {}
|
|
9
|
-
|
|
7
|
+
require 'pact/matchers' # avoid recursive loop between this file and pact/matchers
|
|
8
|
+
::Pact::Matchers.diff to_hash(expected), to_hash(actual), options
|
|
10
9
|
end
|
|
11
10
|
|
|
12
11
|
def self.to_hash form_body
|
|
@@ -29,6 +28,5 @@ module Pact
|
|
|
29
28
|
hash[key] << value
|
|
30
29
|
end
|
|
31
30
|
end
|
|
32
|
-
|
|
33
31
|
end
|
|
34
32
|
end
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
module Pact
|
|
2
2
|
class JsonDiffer
|
|
3
3
|
|
|
4
|
-
extend Matchers
|
|
5
|
-
|
|
6
4
|
# Delegates to https://github.com/pact-foundation/pact-support/blob/master/lib/pact/matchers/matchers.rb#L25
|
|
7
5
|
def self.call expected, actual, options = {}
|
|
8
|
-
|
|
6
|
+
require 'pact/matchers' # avoid recursive loop between this file and pact/matchers
|
|
7
|
+
::Pact::Matchers.diff expected, actual, options
|
|
9
8
|
end
|
|
10
|
-
|
|
11
|
-
|
|
12
9
|
end
|
|
13
10
|
end
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
require 'pact/matchers/difference'
|
|
2
1
|
|
|
3
2
|
module Pact
|
|
4
3
|
class TextDiffer
|
|
5
4
|
|
|
6
|
-
extend Matchers
|
|
7
|
-
|
|
8
5
|
def self.call expected, actual, options = {}
|
|
9
|
-
|
|
6
|
+
require 'pact/matchers' # avoid recursive loop between this file and pact/matchers
|
|
7
|
+
::Pact::Matchers.diff expected, actual, options
|
|
10
8
|
end
|
|
11
9
|
|
|
12
10
|
end
|
data/lib/pact/support/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pact-support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Fraser
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2018-03-
|
|
15
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: randexp
|