pact 1.16.0 → 1.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/pact/provider/request.rb +3 -3
- 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: 267331deb30dc707b5eca6e97ba5287216788c28
|
4
|
+
data.tar.gz: d5ec90edb6af928a1769e7792912233ce1b23734
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba3e1ea5c2063da723cab8b0122ecda20594c6289f27ade1e20eb820e5bc77c7929ad6fcb020fc16d4da7fa8971fe254868ccf9e72d08c117ea8a07f6d33ba6e
|
7
|
+
data.tar.gz: 484c68ed162a8b02453083fecc37931b6d81ea268c3658aa9b3fc3a61d011c90fb42477fb4670e85670dcfff5c03eb83caa3d29b3ca7447e37da7150a227e86e
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@ Do this to generate your change history
|
|
2
2
|
|
3
3
|
git log --pretty=format:' * %h - %s (%an, %ad)'
|
4
4
|
|
5
|
+
<a name="v1.16.1"></a>
|
6
|
+
## 1.16.1 (2017-10-18)
|
7
|
+
|
8
|
+
* 7b1747b - fix: reify terms in headers when replaying request (Beth Skurrie, Wed Oct 18 09:01:26 2017 +1100)
|
9
|
+
|
5
10
|
## 1.16.0 (25 September 2017)
|
6
11
|
* 70e67cf - feat: improve description of rspec header matching 'it' blocks and failure text (Beth Skurrie, Mon Sep 25 08:46:06 2017 +1000)
|
7
12
|
* 85d8e09 - fix: correctly display pact term when parent key is missing (Beth Skurrie, Mon Sep 25 08:43:02 2017 +1000)
|
@@ -35,12 +35,13 @@ module Pact
|
|
35
35
|
request_headers = {}
|
36
36
|
return request_headers if expected_request.headers.is_a?(Pact::NullExpectation)
|
37
37
|
expected_request.headers.each do |key, value|
|
38
|
-
request_headers[rack_request_header_for(key)] = value
|
38
|
+
request_headers[rack_request_header_for(key)] = Pact::Reification.from_term(value)
|
39
39
|
end
|
40
40
|
request_headers
|
41
41
|
end
|
42
42
|
|
43
43
|
private
|
44
|
+
|
44
45
|
attr_reader :expected_request
|
45
46
|
|
46
47
|
def reified_body
|
@@ -63,8 +64,7 @@ module Pact
|
|
63
64
|
def with_http_prefix header
|
64
65
|
NO_HTTP_PREFIX.include?(header) ? header : "HTTP_#{header}"
|
65
66
|
end
|
66
|
-
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
70
|
-
end
|
70
|
+
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.16.
|
4
|
+
version: 1.16.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: 2017-
|
15
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: randexp
|