pact-support 1.18.1 → 1.19.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: b3fb2c40a2b73c204a645be5480655e98c5c41698b4958ca1acd1a98aeff1c9b
4
- data.tar.gz: 2d1c53df9037d026df359c0aa818d62ba00f3e1f0def19f06b350091f54a4706
3
+ metadata.gz: b14c4782f4f8ac5c6a2695b3328b8605a51af770e463ac55a3df41843b976677
4
+ data.tar.gz: 683323b4a276240ecfe2dc7cb650b0b232008f5904f9f59df071b5fe5e2ee291
5
5
  SHA512:
6
- metadata.gz: 006d3697dafed4dca50b3c20f6cd3ade9bfc1d430b2681a489a8878cc86e274c2ede6b3976c4a8276bfcb6cd252d751d158c42ef6236273d97ab88d256aabb99
7
- data.tar.gz: ac8367a3b773c10e927307324d0e5c2fc379c1e727efb2bb69288c0ea0d6548555201bbc6168b52b0dfd55534fa2ba2a25eabeb842c8cadbff3f7a4be5d08f35
6
+ metadata.gz: 80825eb6afa2d2684c54e1805aaa2b19c14200ff516d72654a48ab5ee5b0df11ede5fb6a4cdd0761687e52489936c6b61bcaa8ecfbbc0b271957f5b9f46ae3f0
7
+ data.tar.gz: cebfe89b260425ca88e91a3594a4d84037444a0f3f490b0042d9991543a0afbdce7ea19c1ef94f241e64dd7648f07877ec61e8984a493673b080aef4752b957f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ <a name="v1.19.0"></a>
2
+ ### v1.19.0 (2022-11-15)
3
+
4
+ #### Features
5
+
6
+ * **generators**
7
+ * add generators to a consumer contract request (#97) ([fbce4cb](/../../commit/fbce4cb))
8
+
1
9
  <a name="v1.18.1"></a>
2
10
  ### v1.18.1 (2022-08-17)
3
11
 
@@ -6,7 +6,7 @@ module Pact
6
6
  class Expected < Pact::Request::Base
7
7
 
8
8
  DEFAULT_OPTIONS = {:allow_unexpected_keys => false}.freeze
9
- attr_accessor :options #Temporary hack
9
+ attr_accessor :options, :generators
10
10
 
11
11
  def self.from_hash(hash)
12
12
  sym_hash = symbolize_keys hash
@@ -16,11 +16,13 @@ module Pact
16
16
  headers = sym_hash.fetch(:headers, key_not_found)
17
17
  body = sym_hash.fetch(:body, key_not_found)
18
18
  options = sym_hash.fetch(:options, {})
19
- new(method, path, headers, body, query, options)
19
+ generators = sym_hash.fetch(:generators, {})
20
+ new(method, path, headers, body, query, options, generators)
20
21
  end
21
22
 
22
- def initialize(method, path, headers, body, query, options = {})
23
+ def initialize(method, path, headers, body, query, options = {}, generators = {})
23
24
  super(method, path, headers, body, query)
25
+ @generators = generators
24
26
  @options = options
25
27
  end
26
28
 
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.18.1"
3
+ VERSION = "1.19.0"
4
4
  end
5
5
  end
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.18.1
4
+ version: 1.19.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: 2022-08-16 00:00:00.000000000 Z
15
+ date: 2022-11-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rainbow
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  - !ruby/object:Gem::Version
320
320
  version: '0'
321
321
  requirements: []
322
- rubygems_version: 3.3.20
322
+ rubygems_version: 3.3.25
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: Shared code for Pact gems