pact 1.46.0 → 1.46.1

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: cb066bd9c58b0085b3dcf8d2a1b2b6ead728548ae780b6611062f7492933c682
4
- data.tar.gz: 2de9d7e4f33911be208fc92e8f8daaed79f5154b4f794b18da6352028444c07e
3
+ metadata.gz: 25ae3362c392a7deab31b4273d9d35c954822fc5e67febdccd318239831be087
4
+ data.tar.gz: 89de14252d7225f678881afff334c501a2cfc1e39c191cf3b5a4da9c642c97da
5
5
  SHA512:
6
- metadata.gz: 948b41aa6e5196b3392f7a9057bbe284e00688f25e5293f2e4310469076c0fbd3e3246cf91c8a3e6841754dd6e865c78b716f862185793b019655e5f9d8d0866
7
- data.tar.gz: 0db721bf7f1746efd56a1e0f2d9fa92c3590a20161dd7bd06c802a820f35c6da3ff7dbe44597855642276853681c1dffebdd1d21c004aa55b6dd927d1be4acac
6
+ metadata.gz: cf708ab7cbebbf0dbb0df3bc196ee5bd9818218c2dd925f73f59055bf1d05fea698731b6ac2d510098eea48f05b02c49b9f7492e2a9f6cfb3064ebb8524dc7bf
7
+ data.tar.gz: 223a6ed21f94fdd178794af79eb6f47371aa66e85b5f7e19140a2e51a6fcaf7cc71dfae9f1c965162bd0a8b0b1a82dff0c699a4582a1747e3ebd7e2dd17bd9f7
@@ -1,3 +1,12 @@
1
+ <a name="v1.46.1"></a>
2
+ ### v1.46.1 (2020-01-22)
3
+
4
+
5
+ #### Bug Fixes
6
+
7
+ * send output messages to the correct stream when using the XML formatter ([e768a33](/../../commit/e768a33))
8
+
9
+
1
10
  <a name="v1.46.0"></a>
2
11
  ### v1.46.0 (2020-01-22)
3
12
 
@@ -133,14 +133,12 @@ module Pact
133
133
 
134
134
  output = options[:out] || Pact.configuration.output_stream
135
135
  if options[:format]
136
- if options[:format] == 'json'
137
- # To avoid mixing JSON and logging, the output_stream will be set to the error_stream
138
- # in the pact-provider-verifier.
139
- # Send JSON to a file if configured, or straight to $stdout
140
- ::RSpec.configuration.add_formatter Pact::Provider::RSpec::JsonFormatter, options[:out] || $stdout
141
- else
142
- ::RSpec.configuration.add_formatter options[:format], output
143
- end
136
+ formatter = options[:format] == 'json' ? Pact::Provider::RSpec::JsonFormatter : options[:format]
137
+ # Send formatted output to $stdout for parsing, unless a file is specified
138
+ output = options[:out] || $stdout
139
+ ::RSpec.configuration.add_formatter formatter, output
140
+ # Don't want to mess up the JSON parsing with INFO and DEBUG messages to stdout, so send it to stderr
141
+ Pact.configuration.output_stream = Pact.configuration.error_stream if !options[:out]
144
142
  else
145
143
  # Sometimes the formatter set in the cli.rb get set with an output of StringIO.. don't know why
146
144
  formatter_class = Pact::RSpec.formatter_class
@@ -1,4 +1,4 @@
1
1
  # Remember to bump pact-provider-proxy when this changes major version
2
2
  module Pact
3
- VERSION = "1.46.0"
3
+ VERSION = "1.46.1"
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.46.0
4
+ version: 1.46.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser