pact_broker 2.56.0 → 2.56.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
  SHA256:
3
- metadata.gz: f4391656ae9cddad910749af5c6bb4c3c94644cf605122e31a40ce8891feb49d
4
- data.tar.gz: db46a7cdf21674996ed6271dac6c13e2238771004d76693fea6bc11e18fdd146
3
+ metadata.gz: 78ca82ae8d3f9574d9844689ebb3423e5a2c2966f5907253f82e996aa0dbdcd4
4
+ data.tar.gz: 64a1cec77d11ae9f82e4408736147afe69d294def7b07afa31bdab1c38947a72
5
5
  SHA512:
6
- metadata.gz: 77ebcb58e85910f527b5750b4a484d856cb7a84369e4d6dc89097e3cc706c8077e1f2cc83ff8f7c5e1e079eb55b686680cacccb52c79a20a6b42b903d98e8784
7
- data.tar.gz: c151197191dab0a0b35dd08f7ec0df10a280f28f372a5d72365052a813b67265a2cd1e3d602927641169b5e72fd9e1b6547c0e04a260895693c6a65415fcace0
6
+ metadata.gz: c43133723319d295e3e3a9a818ef668e5f15b75b65589c90d77902737e807145e5647b92e4d7c80880e9886a4e75c20f23140716310f5c28dc77cd8a726e381c
7
+ data.tar.gz: 92cd37b6e992d89886fe7f9f6f9b220879b92c48f081c64ea344201229e45d8ca6a12fb676d0cecdba9d15da0ccd70163e54392acda943d4e66adea46706d9b6
@@ -1,3 +1,13 @@
1
+ <a name="v2.56.1"></a>
2
+ ### v2.56.1 (2020-06-01)
3
+
4
+
5
+ #### Bug Fixes
6
+
7
+ * **matrix ui**
8
+ * fix home link ([67065b7d](/../../commit/67065b7d))
9
+
10
+
1
11
  <a name="v2.56.0"></a>
2
12
  ### v2.56.0 (2020-06-01)
3
13
 
@@ -62,6 +62,11 @@ module PactBroker
62
62
  PactBroker.configuration.base_url || request.base_uri.to_s.chomp('/')
63
63
  end
64
64
 
65
+ # See comments for base_url in lib/pact_broker/doc/controllers/app.rb
66
+ def ui_base_url
67
+ PactBroker.configuration.base_url || ''
68
+ end
69
+
65
70
  def charsets_provided
66
71
  [['utf-8', :encode]]
67
72
  end
@@ -36,7 +36,7 @@ module PactBroker
36
36
  def to_html
37
37
  PactBroker.configuration.html_pact_renderer.call(
38
38
  pact, {
39
- base_url: base_url,
39
+ base_url: ui_base_url,
40
40
  badge_url: "#{resource_url}/badge.svg"
41
41
  })
42
42
  end
@@ -77,8 +77,8 @@ module PactBroker
77
77
  def to_html
78
78
  PactBroker.configuration.html_pact_renderer.call(
79
79
  pact, {
80
- base_url: base_url,
81
- badge_url: badge_url_for_latest_pact(pact, base_url)
80
+ base_url: ui_base_url,
81
+ badge_url: badge_url_for_latest_pact(pact, ui_base_url)
82
82
  })
83
83
  end
84
84
 
@@ -10,7 +10,7 @@
10
10
 
11
11
  .container
12
12
  .navbar-right
13
- %a{href: base_url}
13
+ %a{href: "#{base_url}/"}
14
14
  Home
15
15
  %h1.page-header
16
16
  = title
@@ -1,3 +1,3 @@
1
1
  module PactBroker
2
- VERSION = '2.56.0'
2
+ VERSION = '2.56.1'
3
3
  end
@@ -21,6 +21,7 @@ module PactBroker::Api
21
21
  before do
22
22
  allow(PactBroker::Pacts::Service).to receive(:find_latest_pact).and_return(pact)
23
23
  allow(PactBroker.configuration.html_pact_renderer).to receive(:call).and_return(html)
24
+ allow_any_instance_of(LatestPact).to receive(:ui_base_url).and_return('http://example.org')
24
25
  end
25
26
 
26
27
  subject { get(path, nil, 'HTTP_ACCEPT' => accept) }
@@ -24,6 +24,7 @@ module PactBroker::Api
24
24
 
25
25
  before do
26
26
  allow_any_instance_of(Pact).to receive(:badge_url_for_latest_pact).and_return('http://badge')
27
+ allow_any_instance_of(Pact).to receive(:ui_base_url).and_return('http://example.org')
27
28
  allow(PactBroker::Pacts::Service).to receive(:find_pact).and_return(pact)
28
29
  allow(PactBroker.configuration.html_pact_renderer).to receive(:call).and_return(html)
29
30
  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: 2.56.0
4
+ version: 2.56.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bethany Skurrie