pact_broker 1.11.2 → 1.12.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21168dea650979bf15b03fbd6e3b2f39d768b97b
|
|
4
|
+
data.tar.gz: 9ba121b9c9a67a2c841d199555d614be324598b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16ebdbe7cf6a942fa28b8b6fc73466c175a66ecae6d2d62cc5d119b812672c8b339fd8da16aa46a462c8f1e2422580614463e428413c212add54e7054718d493
|
|
7
|
+
data.tar.gz: 17facd761557eec0411073d2a4031f84ad5da8f45cbcd58f939914eeb41b786bbbe43d52d8eb40af87d4216dbbaadbf5933911f37d932228896e12e7c0c34a93
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@ 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.0 (2016-12-09)
|
|
6
|
+
* 67779ac - add pb:latest-provider-pacts-with-tag to index.rb (Olga Vasylchenko, Thu Dec 8 16:02:19 2016 +0100)
|
|
7
|
+
* cdfa17b - upgrade default sqlite db to current migration level (Bo Daley, Wed Nov 30 14:37:54 2016 -0500)
|
|
8
|
+
|
|
5
9
|
#### 1.11.2 (2016-11-25)
|
|
6
10
|
* 43f2373 - Added require to hopefully fix broken build. https://travis-ci.org/bethesque/pact_broker/jobs/174397806 (Bethany Skurrie, Thu Nov 24 07:47:07 2016 +1100)
|
|
7
11
|
* f747e09 - Removed ruby 2.1 build as it is failing (Beth Skurrie, Wed Nov 9 13:42:08 2016 +1100)
|
data/README.md
CHANGED
|
@@ -80,7 +80,7 @@ Use the HAL browser to view documentation as you browse.
|
|
|
80
80
|
|
|
81
81
|
### To have a play around on your local machine
|
|
82
82
|
|
|
83
|
-
* Install ruby 1.9.3 or later and bundler >= 1.12.0
|
|
83
|
+
* Install ruby 1.9.3 or later and bundler >= 1.12.0
|
|
84
84
|
* Run `git clone git@github.com:bethesque/pact_broker.git && cd pact_broker/example`
|
|
85
85
|
* Run `bundle`
|
|
86
86
|
* Run `bundle exec rackup -p 8080`
|
|
@@ -96,7 +96,7 @@ You can use the [Pact Broker Docker container][docker] or [Terraform on AWS][ter
|
|
|
96
96
|
|
|
97
97
|
* Create a database using a product that is supported by the Sequel gem (listed on this page http://sequel.jeremyevans.net/rdoc/files/README_rdoc.html). The migrations have been tested on MySQL and PostgreSQL - your milage will vary on other databases.
|
|
98
98
|
* __Note:__ It is recommended to use __PostgreSQL__ as it will support JSON search features that are planned in a future release, however MySQL the other [semi supported](https://github.com/bethesque/pact_broker/issues/33) database.
|
|
99
|
-
* Install ruby 1.9.3 or later and bundler >= 1.12.0
|
|
99
|
+
* Install ruby 1.9.3 or later and bundler >= 1.12.0
|
|
100
100
|
* Copy the [example](/example) directory to the location you want to install the application.
|
|
101
101
|
* Modify the config.ru and Gemfile as desired (eg. choose database driver gem, set your database credentials. Use the "pg" gem if using Postgres.)
|
|
102
102
|
* Please ensure you use `encoding: 'utf8'` in your Sequel options to avoid encoding issues.
|
|
Binary file
|
|
@@ -42,6 +42,12 @@ module PactBroker
|
|
|
42
42
|
title: 'Latest pacts by provider',
|
|
43
43
|
templated: true
|
|
44
44
|
},
|
|
45
|
+
'pb:latest-provider-pacts-with-tag' =>
|
|
46
|
+
{
|
|
47
|
+
href: base_url + '/pacts/provider/{provider}/latest/{tag}',
|
|
48
|
+
title: 'Latest pacts by provider with a specified tag',
|
|
49
|
+
templated: true
|
|
50
|
+
},
|
|
45
51
|
'pb:webhooks' =>
|
|
46
52
|
{
|
|
47
53
|
href: base_url + '/webhooks',
|
data/lib/pact_broker/version.rb
CHANGED
|
@@ -88,4 +88,25 @@ Pact.provider_states_for "Pact Broker Client" do
|
|
|
88
88
|
provider_state "no pacticipant version exists for the Pricing Service" do
|
|
89
89
|
no_op
|
|
90
90
|
end
|
|
91
|
+
|
|
92
|
+
provider_state "a latest pact between Condor and the Pricing Service exists" do
|
|
93
|
+
set_up do
|
|
94
|
+
ProviderStateBuilder.new
|
|
95
|
+
.create_consumer("Condor")
|
|
96
|
+
.create_consumer_version('1.3.0')
|
|
97
|
+
.create_provider("Pricing Service")
|
|
98
|
+
.create_pact
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
provider_state "tagged as prod pact between Condor and the Pricing Service exists" do
|
|
103
|
+
set_up do
|
|
104
|
+
ProviderStateBuilder.new
|
|
105
|
+
.create_consumer("Condor")
|
|
106
|
+
.create_consumer_version('1.3.0')
|
|
107
|
+
.create_consumer_version_tag('prod')
|
|
108
|
+
.create_provider("Pricing Service")
|
|
109
|
+
.create_pact
|
|
110
|
+
end
|
|
111
|
+
end
|
|
91
112
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pact_broker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bethany Skurrie
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2016-
|
|
13
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: httparty
|