pact-provider-verifier 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf3959321043229d2395fd60f2b91d9e33a2171e
4
- data.tar.gz: e64d7814e71e7844672d0b9aa17375d21031b716
3
+ metadata.gz: 425876558c0c04561d81ecdfcaedac4a68971c98
4
+ data.tar.gz: 643b57e821b0570109d23153bea9df7c3247410c
5
5
  SHA512:
6
- metadata.gz: 04a296a4de5140d5b1c0a0c5e72ee722bf912d2bb0dd7a547985e57298de4c69237124dc5b4a54cca3d62002320f9f4cd5069f2680b005a632c101ac494036dc
7
- data.tar.gz: 9da8bdbabb0c02878bc242bec24428c9ebf8b3c7d15b97952e84272518a85c54044971b347fdc6b19b22f044ce1afd5f69d5c5366fec7dae5fc0bc43385cab96
6
+ metadata.gz: 8a0171affd185b45c47ca21223bb717be43cf7123b6725c78e7c3aa45606845e8a2849f903eed050800fa06c4d536dc8474a275e64f93c1a76f1961c9b26d6d0
7
+ data.tar.gz: bfc988b04a9abb87cb4a4905d3cedae33f63b474e1b302a864cab5cb570a8c01d6c3f24d7746555f99e0a10a8f5ae51585ef81851ef796055e845d2dd360c926
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ <a name="v1.8.0-1"></a>
2
+ ### v1.8.0-1 (2017-10-27)
3
+
4
+ #### Features
5
+
6
+ * **cli**
7
+ * allow --format json to be used to output spec results in json format to stdout ([aa7359a](/../../commit/aa7359a))
8
+
1
9
  <a name="v1.7.0-1"></a>
2
10
  ### v1.7.0-1 (2017-10-18)
3
11
 
@@ -25,7 +25,8 @@ module Pact
25
25
  if existing_value.nil?
26
26
  $stderr.puts "WARN: Adding header '#{header_name}: #{new_value}' to replayed request. This header did not exist in the pact, and hence this test cannot confirm that the request will work in real life."
27
27
  else
28
- $stdout.puts "INFO: Replacing header '#{header_name}: #{existing_value}' with '#{header_name}: #{new_value}'"
28
+ # Don't mess up the json formatter by using stdout here
29
+ $stderr.puts "INFO: Replacing header '#{header_name}: #{existing_value}' with '#{header_name}: #{new_value}'"
29
30
  end
30
31
  end
31
32
  end
@@ -93,11 +93,12 @@ module Pact
93
93
  def verify_pact pact_url
94
94
  begin
95
95
  verify_options = {
96
- :pact_helper => PROXY_PACT_HELPER,
97
- :pact_uri => pact_url,
98
- :backtrace => ENV['BACKTRACE'] == 'true',
99
- :pact_broker_username => options.broker_username,
100
- :pact_broker_password => options.broker_password
96
+ pact_helper: PROXY_PACT_HELPER,
97
+ pact_uri: pact_url,
98
+ backtrace: ENV['BACKTRACE'] == 'true',
99
+ pact_broker_username: options.broker_username,
100
+ pact_broker_password: options.broker_password,
101
+ format: options.format
101
102
  }
102
103
  verify_options[:description] = ENV['PACT_DESCRIPTION'] if ENV['PACT_DESCRIPTION']
103
104
  verify_options[:provider_state] = ENV['PACT_PROVIDER_STATE'] if ENV['PACT_PROVIDER_STATE']
@@ -16,7 +16,8 @@ module Pact
16
16
  method_option :broker_password, aliases: "-p", desc: "Pact Broker basic auth password", :required => false
17
17
  method_option :custom_provider_header, type: :array, banner: 'CUSTOM_PROVIDER_HEADER', desc: "Header to add to provider state set up and pact verification requests. eg 'Authorization: Basic cGFjdDpwYWN0'. May be specified multiple times.", :required => false
18
18
  method_option :verbose, aliases: "-v", desc: "Verbose output", :required => false
19
- method_option :provider_states_url, aliases: "-s", desc: "DEPRECATED", :required => false
19
+ method_option :provider_states_url, aliases: "-s", :required => false, hide: true
20
+ method_option :format, banner: "FORMATTER", aliases: "-f", desc: "RSpec formatter. Defaults to custom Pact formatter. [j]son may also be used."
20
21
  method_option :pact_urls, aliases: "-u", desc: "DEPRECATED. Please provide as space separated arguments.", :required => false
21
22
 
22
23
  def verify(*pact_urls)
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module ProviderVerifier
3
- VERSION = "1.7.0"
3
+ VERSION = "1.8.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-provider-verifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Fellows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.13'
33
+ version: '1.17'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.13'
40
+ version: '1.17'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday
43
43
  requirement: !ruby/object:Gem::Requirement