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: 9a30055706afb5eca1184777c027d6c89fcc58d9
4
- data.tar.gz: ded720370181e3cf0afe1554253b6e13a374a2f9
3
+ metadata.gz: 21168dea650979bf15b03fbd6e3b2f39d768b97b
4
+ data.tar.gz: 9ba121b9c9a67a2c841d199555d614be324598b6
5
5
  SHA512:
6
- metadata.gz: 771ed02390e14db3c6aef45d2d1faa2784dea6a4f2d50040873378876ada7b6e42cc7d8a67db2f9c4bd60b576e7669b41706e5433b0c24f2792814819a3200df
7
- data.tar.gz: 957fcf5f64742d212d1936a39288fa556d8476ec81f8a740899fe6cbd372728db596e3bc6c854a34ed9a68f8bbf5d7edb7199d09ce6b55207e6e8bb7102dab0d
6
+ metadata.gz: 16ebdbe7cf6a942fa28b8b6fc73466c175a66ecae6d2d62cc5d119b812672c8b339fd8da16aa46a462c8f1e2422580614463e428413c212add54e7054718d493
7
+ data.tar.gz: 17facd761557eec0411073d2a4031f84ad5da8f45cbcd58f939914eeb41b786bbbe43d52d8eb40af87d4216dbbaadbf5933911f37d932228896e12e7c0c34a93
@@ -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 as there is currently an issue with [bundler 1.13](https://github.com/bethesque/pact_broker/issues/57)
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 as there is currently an issue with [bundler 1.13](https://github.com/bethesque/pact_broker/issues/57)
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.
@@ -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',
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = '1.11.2'
2
+ VERSION = '1.12.0'
3
3
  end
@@ -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.11.2
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-11-25 00:00:00.000000000 Z
13
+ date: 2016-12-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty