pact 1.12.0 → 1.12.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 +5 -0
- data/lib/pact/provider/pact_spec_runner.rb +1 -1
- data/lib/pact/provider/verification_results/create.rb +6 -6
- data/lib/pact/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e10f79532387534068f34ff3b2d668337c417aa0
|
4
|
+
data.tar.gz: 94f1bbcd78f8c3aeb42a6a654628fc6e87668b60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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,
|
8
|
-
new(pact_json,
|
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,
|
11
|
+
def initialize pact_json, failed_examples
|
12
12
|
@pact_json = pact_json
|
13
|
-
@
|
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
|
-
|
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, :
|
38
|
+
attr_reader :pact_json, :failed_examples
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
data/lib/pact/version.rb
CHANGED
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.
|
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-
|
15
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: randexp
|