pact_broker 1.8.0 → 1.8.1

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: f8743214a344901e8cc75cc159a44113ec371bcc
4
- data.tar.gz: e4896ed8041a01d95c50c73366532c56beea87f0
3
+ metadata.gz: 2285ce5cae5cde5142184e3e74eb8ef40b3d7136
4
+ data.tar.gz: 07a8eaf72ea92839a00928991f5ae33162a0c6ab
5
5
  SHA512:
6
- metadata.gz: 1af8a1a03263bc9e06adb104945576f023edaff95063f9b0885323d12eff57ccc12aa548c4576a8e0925e02e91070f4380ec69d4e2624f2db1750cba31abe770
7
- data.tar.gz: 594b39972c370fd2a8bbf60051f6ba825f3fef1e31f3dfbac096dfb6484e81ac4ece3c123f81b796f7849c623af28f402dd43f9321ceb825f1e2c976312d0e76
6
+ metadata.gz: cb28c1cd9e6db7f4ca2e0119dd1b227d4e7fb2980f3ac9ea7195504ddd1b8a77c536e7e7824c598afcb35c3004ee1adee2014771c06bd908a4e368b7a7f1877c
7
+ data.tar.gz: f75108480b94f2aba9929f8c44e7067fa28ca0039fb16553b1e0e6848a65ad10968f7998e91a6d93fa0187f6f376f05c0870e4d30602409ebbf21d4a3c9a1049
@@ -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.8.1 (2015-06-30)
6
+
7
+ * d0d466d - Avoid making a query for tags for each pact shown on the Pacts page (Beth Skurrie, Tue Jun 30 06:42:09 2015 +1000)
8
+
5
9
  #### 1.8.0 (2015-05-28)
6
10
 
7
11
  * 6c40e9c - Added ability to specify a tag when retrieving pacts for a given provider (Beth Skurrie, Thu May 28 09:03:46 2015 +1000)
data/README.md CHANGED
@@ -89,7 +89,7 @@ Use the HAL browser to view documentation as you browse.
89
89
 
90
90
  ### For reals
91
91
 
92
- You can use the [Pact Broker Docker container][docker] or...
92
+ You can use the [Pact Broker Docker container][docker] or [Terraform on AWS][terraform] or to roll your own...
93
93
 
94
94
  * 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.
95
95
  * __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 well supported database.
@@ -105,3 +105,5 @@ You can use the [Pact Broker Docker container][docker] or...
105
105
  [nerf]: https://github.com/bethesque/pact_broker/wiki/pact-broker-ci-nerf-gun
106
106
  [different-teams]: https://github.com/realestate-com-au/pact/wiki/Using-pact-where-the-consumer-team-is-different-from-the-provider-team
107
107
  [docker]: https://registry.hub.docker.com/u/dius/pact_broker/
108
+ [terraform]: https://github.com/nadnerb/terraform-pact-broker
109
+
@@ -60,6 +60,12 @@ module PactBroker
60
60
  end
61
61
 
62
62
  def to_domain
63
+ domain = to_domain_without_tags
64
+ domain.consumer_version.tags = tags
65
+ domain
66
+ end
67
+
68
+ def to_domain_without_tags
63
69
  consumer = Domain::Pacticipant.new(name: consumer_name)
64
70
  consumer.id = consumer_id
65
71
  provider = Domain::Pacticipant.new(name: provider_name)
@@ -68,7 +74,7 @@ module PactBroker
68
74
  number: consumer_version_number,
69
75
  order: consumer_version_order,
70
76
  pacticipant: consumer,
71
- tags: tags)
77
+ tags: nil)
72
78
  Domain::Pact.new(id: id,
73
79
  consumer: consumer,
74
80
  consumer_version: consumer_version,
@@ -63,7 +63,7 @@ module PactBroker
63
63
  end
64
64
 
65
65
  def find_latest_pacts
66
- LatestPacts.collect(&:to_domain)
66
+ LatestPacts.collect(&:to_domain_without_tags)
67
67
  end
68
68
 
69
69
  def find_latest_pact(consumer_name, provider_name, tag = nil)
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = '1.8.0'
2
+ VERSION = '1.8.1'
3
3
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
24
24
  gem.add_runtime_dependency 'json'
25
25
  gem.add_runtime_dependency 'roar', '~> 1.0.0.beta2'
26
26
  gem.add_runtime_dependency 'reform', '~> 1.0'
27
- gem.add_runtime_dependency 'sequel', '~> 4.12'
27
+ gem.add_runtime_dependency 'sequel', '~> 4.23'
28
28
  gem.add_runtime_dependency 'webmachine', '1.3.1'
29
29
  gem.add_runtime_dependency 'versionomy', '~> 0.4'
30
30
  gem.add_runtime_dependency 'rack'
@@ -459,6 +459,7 @@ module PactBroker
459
459
  expect(pacts[0].provider.name).to eq("Pricing Service")
460
460
  expect(pacts[0].provider.id).to_not be nil
461
461
  expect(pacts[0].consumer_version.number).to eq("1.4.0")
462
+ expect(pacts[1].consumer_version.tags).to be nil # Not used, don't bother loading
462
463
 
463
464
  expect(pacts[1].consumer_version.pacticipant.name).to eq("Contract Email Service")
464
465
  expect(pacts[1].consumer.name).to eq("Contract Email Service")
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.8.0
4
+ version: 1.8.1
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: 2015-05-28 00:00:00.000000000 Z
13
+ date: 2015-06-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: '4.12'
77
+ version: '4.23'
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ~>
83
83
  - !ruby/object:Gem::Version
84
- version: '4.12'
84
+ version: '4.23'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: webmachine
87
87
  requirement: !ruby/object:Gem::Requirement