pact 1.30.0 → 1.31.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
2
  SHA1:
3
- metadata.gz: ae5b619b17a3e5134fea66e3e089ce3c096af93d
4
- data.tar.gz: d8b230915ee8eadb59febb4c5551862db5bed69c
3
+ metadata.gz: 3246206b449a6e86f34238c21b65d9c7398bacbe
4
+ data.tar.gz: 81e315d3a515245380b74d5bd0af808907509915
5
5
  SHA512:
6
- metadata.gz: 9c4b09e2c225fbda956928c81adf1cb965c9b3bac351459fb0e7a4b4ebf22ec90dde93aa02c734f5084f83919d5dca04b2379db25c533c6db93693ec0d02ae76
7
- data.tar.gz: e28af9fce398f9c0835bfb874320150b0ce9e2fb154c9e590b771f935b3ce3775be87a430ace03d7b6ae7b6c14c261447fc250a14246a881a600fca0b36c8028
6
+ metadata.gz: 8e639c95f870d765157461662325b366ff13b2cde410225a02e52544f06cc030338bb291ab284fb8f7bce93ddc696c9059c051884b7d2bda1bb644fde99eac6f
7
+ data.tar.gz: fcbd756e9af2cb0b5cbce44dbbd6afcb75d986b9c20477c2286d1c21bcee26fe7339d309886553019607901ac40d34c322b89a1fa565887e16e6dc606b472fd9
@@ -1,3 +1,12 @@
1
+ <a name="v1.31.0"></a>
2
+ ### v1.31.0 (2018-07-25)
3
+
4
+
5
+ #### Features
6
+
7
+ * publish beta format of individual interaction results to Pact Broker ([6742afa](/../../commit/6742afa))
8
+
9
+
1
10
  <a name="v1.30.0"></a>
2
11
  ### v1.30.0 (2018-07-24)
3
12
 
@@ -8,23 +8,14 @@ module Pact
8
8
  module RSpec
9
9
  class PactBrokerFormatter < ::RSpec::Core::Formatters::BaseFormatter
10
10
  Pact::RSpec.with_rspec_3 do
11
- ::RSpec::Core::Formatters.register self, :message, :dump_summary, :stop, :seed, :close
11
+ ::RSpec::Core::Formatters.register self, :stop, :close
12
12
  end
13
13
 
14
14
  attr_reader :output_hash
15
15
 
16
16
  def initialize(output)
17
17
  super
18
- @output_hash = {
19
- :version => ::RSpec::Core::Version::STRING
20
- }
21
- end
22
-
23
- def message(notification)
24
- (@output_hash[:messages] ||= []) << notification.message
25
- end
26
-
27
- def dump_summary(summary)
18
+ @output_hash = {}
28
19
  end
29
20
 
30
21
  def stop(notification)
@@ -33,11 +24,6 @@ module Pact
33
24
  .map { |example| format_example(example) }
34
25
  end
35
26
 
36
- def seed(notification)
37
- return unless notification.seed_used?
38
- @output_hash[:seed] = notification.seed
39
- end
40
-
41
27
  def close(_notification)
42
28
  Pact::Provider::VerificationResults::PublishAll.call(Pact.provider_world.pact_sources, output_hash)
43
29
  end
@@ -57,6 +57,12 @@ module Pact
57
57
  summary: {
58
58
  testCount: examples_for_pact_uri.size,
59
59
  failureCount: count_failures_for_pact_uri
60
+ },
61
+ metadata: {
62
+ warning: "These test results use a beta format. Do not rely on it, as it will definitely change.",
63
+ pactVerificationResultsSpecification: {
64
+ version: "1.0.0-beta.1"
65
+ }
60
66
  }
61
67
  }
62
68
  end
@@ -24,7 +24,7 @@ module Pact
24
24
  {
25
25
  success: success,
26
26
  providerApplicationVersion: provider_application_version,
27
- #testResults: test_results_hash # not yet
27
+ testResults: test_results_hash
28
28
  }.to_json(options)
29
29
  end
30
30
 
@@ -1,4 +1,4 @@
1
1
  # Remember to bump pact-provider-proxy when this changes major version
2
2
  module Pact
3
- VERSION = "1.30.0"
3
+ VERSION = "1.31.0"
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.30.0
4
+ version: 1.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser