pact 1.49.3 → 1.50.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4977d1d79d691b6825034ac05aaf84261ced3e7ebdad2b000e28fc0307a8864
4
- data.tar.gz: a0685cfb4a9e2af1e64b0e0885170e86bcbc8564b6d99f42e3bc6df0408f9d3b
3
+ metadata.gz: 72dbb710ec5471bb551465a8f55342f32cc057cb2a6d36a7f1b4ec613e90fb19
4
+ data.tar.gz: b0c3329c670d4704517df5eeb79b4cbb8d874c2a52151851009a211d3ab89d36
5
5
  SHA512:
6
- metadata.gz: 599bd994c3d9abe122ec925c2717b28acf68761fc6dcde7138251c5ba98a35765ad018f3ebb11e4c0c76231e941d6173b475948904bf465b82da96dad22abce0
7
- data.tar.gz: 497bc3626ba25a40dc65791967754f3fb2ccc1fb7d3dd7e89989fd31e982141ca664272d3cc2a5db4db2639fcd04773a7c0603a175638b6bcaef04fa9b8c2871
6
+ metadata.gz: 8a4fed394938fb5ad9489f79df8b06589d5982cc289cf45fd0c8a5056a23b875b48be9efb3b082e34477935ffbc7b7416a1de5daa9183bf9c2dbd20ba548f503
7
+ data.tar.gz: b8b501317bb1e1446d1776c7c3d9e5674632475cae4cbd4a5e38f726c374463a23000f95760e432c48cc3cee46fd74dbff17dae6226d5f614f4972f4938a2df2
@@ -1,3 +1,12 @@
1
+ <a name="v1.50.0"></a>
2
+ ### v1.50.0 (2020-04-25)
3
+
4
+
5
+ #### Features
6
+
7
+ * Set expected interactions on mock service but without writing them to pact file (#210) ([14f5327](/../../commit/14f5327))
8
+
9
+
1
10
  <a name="v1.49.3"></a>
2
11
  ### v1.49.3 (2020-04-22)
3
12
 
@@ -25,6 +25,10 @@ module Pact
25
25
  @mock_service_base_url = "http://#{attributes[:host]}:#{attributes[:port]}"
26
26
  end
27
27
 
28
+ def without_writing_to_pact
29
+ interaction_builder.without_writing_to_pact
30
+ end
31
+
28
32
  def given(provider_state)
29
33
  interaction_builder.given(provider_state)
30
34
  end
@@ -13,6 +13,12 @@ module Pact
13
13
  @callback = block
14
14
  end
15
15
 
16
+ def without_writing_to_pact
17
+ interaction.metadata ||= {}
18
+ interaction.metadata[:write_to_pact] = false
19
+ self
20
+ end
21
+
16
22
  def upon_receiving description
17
23
  @interaction.description = description
18
24
  self
@@ -1,4 +1,4 @@
1
1
  # Remember to bump pact-provider-proxy when this changes major version
2
2
  module Pact
3
- VERSION = "1.49.3"
3
+ VERSION = "1.50.0"
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.49.3
4
+ version: 1.50.0
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: 2020-04-22 00:00:00.000000000 Z
15
+ date: 2020-06-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec