pact 1.12.0 → 1.12.1

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: cbf8ca0e8eb42b7d2b67e27f21ee3122fda7f37b
4
- data.tar.gz: 9ba2f1a1e7fa4d3c7d1ade0b217f1205a6365782
3
+ metadata.gz: e10f79532387534068f34ff3b2d668337c417aa0
4
+ data.tar.gz: 94f1bbcd78f8c3aeb42a6a654628fc6e87668b60
5
5
  SHA512:
6
- metadata.gz: 916d6e74b28510e9ab4e72f1287eb463bb5ef714a1ccf132e9dc667fcab0cbe7563426b3d42eee7d4c2beee84a2eb9f0a2d7b0a61b12674c61538b91f696382f
7
- data.tar.gz: '07887c5e02a9b802905b3ad12f1b03c985a33ffde4dc449e2013295b00ebb94a95fc9a2ded6014269a9f9d80ba8b248f69a0cc2816aee48c51780498cc4ea4ed'
6
+ metadata.gz: c01ecae0852887118f186847882c5928ce698eb4188d1f7b867f1634ee55d7c2b1c4284ffed04905563c18e2dc78b01e9f9e4e02942b0460a90178f442e36039
7
+ data.tar.gz: 10f8cc6cd40996b9f6d3236f4b25a05ac24abbfbb0258ca911a3069b8a5e5bbcb480507ab972b9332898c4be389d8d9aa70c7bf3c7d319ffdc0ed28b9e76c15f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@ Do this to generate your change history
2
2
 
3
3
  git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
4
4
 
5
+ ## 1.12.1 (23 May 2017)
6
+ * 47140b7 - Update .travis.yml to publish to rubygems (Beth Skurrie, Tue May 23 16:23:21 2017 +1000)
7
+ * 16c40bd - Use RSpec.configuration.reporter.failed_examples to get failed examples instead of the suite, as it is backwards compatible with rspec 3.0.0 (Beth Skurrie, Tue May 23 15:59:36 2017 +1000)
8
+ * c54a3a9 - Add specs and tasks for doing manual end to end testing (create, publish, verify, publish verification) (Beth Skurrie, Tue May 23 15:45:41 2017 +1000)
9
+
5
10
  ## 1.12.0 (12 May 2017)
6
11
  * e12ce11 - Updated pact-mock_service and pact-support gems. Major change: provider_state is now providerState in pact files. (Beth Skurrie, Fri May 12 08:43:04 2017 +1000)
7
12
 
@@ -83,7 +83,7 @@ module Pact
83
83
  config.after(:suite) do | suite |
84
84
  Pact::Provider::Help::Write.call(jsons)
85
85
  Pact::RSpec.with_rspec_3 do
86
- Pact::Provider::VerificationResults::PublishAll.call(sources, suite)
86
+ Pact::Provider::VerificationResults::PublishAll.call(sources, ::RSpec.configuration.reporter.failed_examples)
87
87
  end
88
88
  end
89
89
 
@@ -4,13 +4,13 @@ module Pact
4
4
  module VerificationResults
5
5
  class Create
6
6
 
7
- def self.call pact_json, suite_context
8
- new(pact_json, suite_context).call
7
+ def self.call pact_json, failed_examples
8
+ new(pact_json, failed_examples).call
9
9
  end
10
10
 
11
- def initialize pact_json, suite_context
11
+ def initialize pact_json, failed_examples
12
12
  @pact_json = pact_json
13
- @suite_context = suite_context
13
+ @failed_examples = failed_examples
14
14
  end
15
15
 
16
16
  def call
@@ -28,14 +28,14 @@ module Pact
28
28
  end
29
29
 
30
30
  def count_failures_for_pact_json
31
- suite_context.reporter.failed_examples.collect{ |e| e.metadata[:pact_json] == pact_json }.uniq.size
31
+ failed_examples.collect{ |e| e.metadata[:pact_json] == pact_json }.uniq.size
32
32
  end
33
33
 
34
34
  def any_failures?
35
35
  count_failures_for_pact_json > 0
36
36
  end
37
37
 
38
- attr_reader :pact_json, :suite_context
38
+ attr_reader :pact_json, :failed_examples
39
39
  end
40
40
  end
41
41
  end
data/lib/pact/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pact
2
- VERSION = "1.12.0"
2
+ VERSION = "1.12.1"
3
3
  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.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2017-05-12 00:00:00.000000000 Z
15
+ date: 2017-05-23 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp