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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b30477b50a98ca1563f8d3dea130b68cd7cbf88c
4
- data.tar.gz: 43212f356f6580287d135da4b85b6e23ad039d0c
3
+ metadata.gz: 3e598b19223be35dd3c6f476b889e8eabe6e69e6
4
+ data.tar.gz: 03bede44787e3804e70de0d31b46748331a6567f
5
5
  SHA512:
6
- metadata.gz: f68cc2abcf6ad6bd93f6804c1509dc15c6f23a9f697bf988186d9b630cd846323c56082a59bf978dc5e729519cfc2f51d6a54634f083948f18a66cd599591645
7
- data.tar.gz: 8495fc3f5bdf6bef3d859bcf3f4c58d2666e6423b615b79fb2542460cf0ce9947e226da184de301831f15a90a227e9ae9532d775021d481b69a3c9159f3a8437
6
+ metadata.gz: 6b6f487d9d12536fbd90fea3c0051cd7923b7f525fa7da37fb1b8c45936227d95ce74b51a2eb87359c2baae5f8215dd0ebbcad7be8199413a63839e58e5807dd
7
+ data.tar.gz: 9774362b1afff2002d2bda5949ed0f1e439b590d205a0742bdeaa6ea37bc357a18b906ccfedf16cdd7c51618fc7900693d8075c4e9238616b41a74438c12f8c0
@@ -1,3 +1,12 @@
1
+ <a name="v1.36.2"></a>
2
+ ### v1.36.2 (2018-10-22)
3
+
4
+
5
+ #### Bug Fixes
6
+
7
+ * always execute global and base states ([8317fe3](/../../commit/8317fe3))
8
+
9
+
1
10
  <a name="v1.36.0"></a>
2
11
  ### v1.36.0 (2018-10-04)
3
12
 
@@ -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
@@ -1,4 +1,4 @@
1
1
  # Remember to bump pact-provider-proxy when this changes major version
2
2
  module Pact
3
- VERSION = "1.36.0"
3
+ VERSION = "1.36.2"
4
4
  end
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.0
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-03 00:00:00.000000000 Z
15
+ date: 2018-10-29 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp