pact-support 1.10.2 → 1.10.3

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
  SHA1:
3
- metadata.gz: 83d8ef0314caa890c897dbe6ecee42fed7639351
4
- data.tar.gz: 78c824a2ab9eec797ba4fa65b0650c06cd3d8874
3
+ metadata.gz: 22c9bd406afc40bd0c83b91c36eb49f142512b15
4
+ data.tar.gz: f5f990ba3e1c1b5337283a167346a41411b774c6
5
5
  SHA512:
6
- metadata.gz: 2112f87ddb641a4e80451099f3f4b4c7b577cbaa9085aa78f89ad0267d5c85b111332b51707aaaa7e7921e3ffdd86981dc9994edd78431e542979fe1618d2613
7
- data.tar.gz: 7d17db1871695ba7da90aa400286142bdfaefc151580c1f01347005dd57b7cd7862abb67c68a8a17db4bc12ebae5e5539e4e4dcf4c93ed43bb85e7318444ad58
6
+ metadata.gz: 7b6cff7af477db0aaba912d79bcfe0293926cffcd77a39b61529decb7e391054a9a2adc1981afe6847b6690d57b464d3e1e8a04c3c82398b53f92d14eb5c659e
7
+ data.tar.gz: dba22a097b35198446c77bd03f6f305f751406a471adfb5446574662736c344dd599641505fa9b9a022831563026c311687cef2cfdd70ce816093f0d27105c97
@@ -0,0 +1,33 @@
1
+ # Pre issue-raising checklist
2
+
3
+ I have already (please mark the applicable with an `x`):
4
+
5
+ * [ ] Upgraded to the latest version of the relevant libraries
6
+ * [ ] Checked to see if the issue has already been raised
7
+ * [ ] Created an executable example that demonstrates the issue using either:
8
+ * a Dockerfile
9
+ * a fork of https://github.com/pact-foundation/pact-ruby-standalone-e2e-example
10
+ * a Git repository with a Travis or Appveyor (or similar) build
11
+ * a gist with all the relevant code and full instructions on how to run it
12
+
13
+ ## Software versions
14
+
15
+ * **pact-support:** eg pact-js 1.2.3
16
+ * **pact-ruby-standalone** (if relevant): eg 2.3.1-1
17
+ * **OS**: e.g. Mac OSX 10.11.5
18
+
19
+ ## Expected behaviour
20
+
21
+ Please complete...
22
+
23
+ ## Actual behaviour
24
+
25
+ Please complete...
26
+
27
+ ## Steps to reproduce
28
+
29
+ Your bug will be fixed in our free time, so help us to help you, and make it as easy as possible for us to reproduce the issue. Issues that take longer to reproduce are less likely to be fixed quickly. Please provide a Dockerfile or git repository + build, with instructions on how to reproduce the issue.
30
+
31
+ ## Relevent log files
32
+
33
+ Please ensure you set logging to `DEBUG` and attach any relevant log files here (or link from a gist).
@@ -1,3 +1,12 @@
1
+ <a name="v1.10.3"></a>
2
+ ### v1.10.3 (2019-06-07)
3
+
4
+
5
+ #### Bug Fixes
6
+
7
+ * gracefully handle diff between an expected multipart form request and an actual application/json request ([8577d52](/../../commit/8577d52))
8
+
9
+
1
10
  <a name="v1.10.2"></a>
2
11
  ### v1.10.2 (2019-05-20)
3
12
 
@@ -9,6 +9,8 @@ module Pact
9
9
  actual_boundary = actual.split.first
10
10
  actual_with_hardcoded_boundary = actual.gsub(actual_boundary, expected_boundary)
11
11
  TextDiffer.call(expected, actual_with_hardcoded_boundary, options)
12
+ rescue StandardError
13
+ TextDiffer.call(expected, actual, options)
12
14
  end
13
15
  end
14
16
  end
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.10.2"
3
+ VERSION = "1.10.3"
4
4
  end
5
5
  end
@@ -2,9 +2,7 @@ require 'pact/shared/multipart_form_differ'
2
2
 
3
3
  module Pact
4
4
  describe MultipartFormDiffer do
5
-
6
5
  describe ".call" do
7
-
8
6
  let(:expected_body) do
9
7
  "-------------RubyMultipartPost-1e4912957c7bb64de3c444568326663b\r\nContent-Disposition: form-data; name=\"file\"; filename=\"text.txt\"\r\nContent-Length: 14\r\nContent-Type: text/plain\r\nContent-Transfer-Encoding: binary\r\n\r\nThis is a file\r\n-------------RubyMultipartPost-1e4912957c7bb64de3c444568326663b--\r\n\r\n"
10
8
  end
@@ -34,6 +32,18 @@ module Pact
34
32
  expect(subject).to_not eq({})
35
33
  end
36
34
  end
35
+
36
+ context "when the actual is the hash body of application/json request" do
37
+ let(:actual_body) do
38
+ {
39
+ "some" => "hash"
40
+ }
41
+ end
42
+
43
+ it "doesn't blow up" do
44
+ subject
45
+ end
46
+ end
37
47
  end
38
48
  end
39
49
  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.10.2
4
+ version: 1.10.3
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: 2019-05-20 00:00:00.000000000 Z
15
+ date: 2019-06-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp
@@ -249,6 +249,7 @@ executables: []
249
249
  extensions: []
250
250
  extra_rdoc_files: []
251
251
  files:
252
+ - ".github/ISSUE_TEMPLATE.md"
252
253
  - ".gitignore"
253
254
  - ".rspec"
254
255
  - ".travis.yml"