pact-provider-verifier 1.8.0 → 1.9.0

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
- SHA1:
3
- metadata.gz: 425876558c0c04561d81ecdfcaedac4a68971c98
4
- data.tar.gz: 643b57e821b0570109d23153bea9df7c3247410c
2
+ SHA256:
3
+ metadata.gz: 37d2c69230eb78e03c52bcffbfdaaeb201751aaf4a892cb9245bdf73d41c0829
4
+ data.tar.gz: d306552bb867959f258cb0e457829c41b6bef4ab1c1d446700551239a7673052
5
5
  SHA512:
6
- metadata.gz: 8a0171affd185b45c47ca21223bb717be43cf7123b6725c78e7c3aa45606845e8a2849f903eed050800fa06c4d536dc8474a275e64f93c1a76f1961c9b26d6d0
7
- data.tar.gz: bfc988b04a9abb87cb4a4905d3cedae33f63b474e1b302a864cab5cb570a8c01d6c3f24d7746555f99e0a10a8f5ae51585ef81851ef796055e845d2dd360c926
6
+ metadata.gz: cb900ce0da6ca57bd72680fec8527ce4208040c2b094911e9d9347a8c4ceb282ec4f79f66b1e004034926437053ea3bd3487b87c265a0417d50eaa1a7d993184
7
+ data.tar.gz: 11b702a3f718a0ab7d33d943cd78535ad0d871a2f0ad7bc2aa4b55069730df35d3b10d35616bb7d98c2929e703276cb8fb3ec2a0d3c2e0399f6314e1364bb7c7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ <a name="v1.9.0-1"></a>
2
+ ### v1.9.0-1 (2017-11-07)
3
+
4
+
5
+ #### Features
6
+
7
+ * **monkeypatch**
8
+ * allow a ruby file to be loaded in order to perform at monkeypatch ([96bb549](/../../commit/96bb549))
9
+
10
+
1
11
  <a name="v1.8.0-1"></a>
2
12
  ### v1.8.0-1 (2017-10-27)
3
13
 
@@ -47,6 +47,7 @@ module Pact
47
47
  ENV['PROVIDER_STATES_SETUP_URL'] = options.provider_states_setup_url
48
48
  ENV['VERBOSE_LOGGING'] = options.verbose if options.verbose
49
49
  ENV['CUSTOM_PROVIDER_HEADER'] = custom_provider_headers_for_env_var if custom_provider_headers_for_env_var
50
+ ENV['MONKEYPATCH'] = options.monkeypatch.join("\n") if options.monkeypatch && options.monkeypatch.any?
50
51
  end
51
52
 
52
53
  def configure_service_provider
@@ -15,6 +15,7 @@ module Pact
15
15
  method_option :broker_username, aliases: "-n", desc: "Pact Broker basic auth username", :required => false
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
+ method_option :monkeypatch, hide: true, type: :array, :required => false
18
19
  method_option :verbose, aliases: "-v", desc: "Verbose output", :required => false
19
20
  method_option :provider_states_url, aliases: "-s", :required => false, hide: true
20
21
  method_option :format, banner: "FORMATTER", aliases: "-f", desc: "RSpec formatter. Defaults to custom Pact formatter. [j]son may also be used."
@@ -11,3 +11,14 @@ Pact.configure do | config |
11
11
  config.provider_state_set_up = Pact::ProviderVerifier::SetUpProviderState
12
12
  config.provider_state_tear_down = -> (*args){ }
13
13
  end
14
+
15
+ if ENV['MONKEYPATCH']
16
+ ENV['MONKEYPATCH'].split("\n").each do | file |
17
+ $stdout.puts "DEBUG: Requiring monkeypatch file #{file}" if ENV['VERBOSE_LOGGING']
18
+ begin
19
+ require file
20
+ rescue LoadError => e
21
+ $stderr.puts "ERROR: #{e.class} - #{e.message}. Ensure you have specified the absolute path."
22
+ end
23
+ end
24
+ end
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module ProviderVerifier
3
- VERSION = "1.8.0"
3
+ VERSION = "1.9.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.8.0
4
+ version: 1.9.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-27 00:00:00.000000000 Z
11
+ date: 2017-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  requirements: []
277
277
  rubyforge_project:
278
- rubygems_version: 2.6.14
278
+ rubygems_version: 2.7.1
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: Provides a Pact verification service for use with Pact