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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/pact/provider/pact_spec_runner.rb +6 -8
- data/lib/pact/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25ae3362c392a7deab31b4273d9d35c954822fc5e67febdccd318239831be087
|
4
|
+
data.tar.gz: 89de14252d7225f678881afff334c501a2cfc1e39c191cf3b5a4da9c642c97da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf708ab7cbebbf0dbb0df3bc196ee5bd9818218c2dd925f73f59055bf1d05fea698731b6ac2d510098eea48f05b02c49b9f7492e2a9f6cfb3064ebb8524dc7bf
|
7
|
+
data.tar.gz: 223a6ed21f94fdd178794af79eb6f47371aa66e85b5f7e19140a2e51a6fcaf7cc71dfae9f1c965162bd0a8b0b1a82dff0c699a4582a1747e3ebd7e2dd17bd9f7
|
data/CHANGELOG.md
CHANGED
@@ -133,14 +133,12 @@ module Pact
|
|
133
133
|
|
134
134
|
output = options[:out] || Pact.configuration.output_stream
|
135
135
|
if options[:format]
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
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
|
data/lib/pact/version.rb
CHANGED