pact 1.36.0 → 1.36.2
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 +9 -0
- data/lib/pact/provider/test_methods.rb +4 -0
- data/lib/pact/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: 3e598b19223be35dd3c6f476b889e8eabe6e69e6
|
|
4
|
+
data.tar.gz: 03bede44787e3804e70de0d31b46748331a6567f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b6f487d9d12536fbd90fea3c0051cd7923b7f525fa7da37fb1b8c45936227d95ce74b51a2eb87359c2baae5f8215dd0ebbcad7be8199413a63839e58e5807dd
|
|
7
|
+
data.tar.gz: 9774362b1afff2002d2bda5949ed0f1e439b590d205a0742bdeaa6ea37bc357a18b906ccfedf16cdd7c51618fc7900693d8075c4e9238616b41a74438c12f8c0
|
data/CHANGELOG.md
CHANGED
|
@@ -36,12 +36,16 @@ module Pact
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def set_up_provider_states provider_states, consumer, options = {}
|
|
39
|
+
# If there are no provider state, execute with an nil state to ensure global and base states are executed
|
|
40
|
+
Pact.configuration.provider_state_set_up.call(nil, consumer, options) if provider_states.nil? || provider_states.empty?
|
|
39
41
|
provider_states.each do | provider_state |
|
|
40
42
|
Pact.configuration.provider_state_set_up.call(provider_state.name, consumer, options.merge(params: provider_state.params))
|
|
41
43
|
end
|
|
42
44
|
end
|
|
43
45
|
|
|
44
46
|
def tear_down_provider_states provider_states, consumer, options = {}
|
|
47
|
+
# If there are no provider state, execute with an nil state to ensure global and base states are executed
|
|
48
|
+
Pact.configuration.provider_state_tear_down.call(nil, consumer, options) if provider_states.nil? || provider_states.empty?
|
|
45
49
|
provider_states.reverse.each do | provider_state |
|
|
46
50
|
Pact.configuration.provider_state_tear_down.call(provider_state.name, consumer, options.merge(params: provider_state.params))
|
|
47
51
|
end
|
data/lib/pact/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pact
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.36.
|
|
4
|
+
version: 1.36.2
|
|
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-10-
|
|
15
|
+
date: 2018-10-29 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: randexp
|