pact_broker 2.102.0 → 2.102.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 +7 -0
- data/lib/pact_broker/api/middleware/basic_auth.rb +2 -0
- data/lib/pact_broker/index/service.rb +3 -1
- data/lib/pact_broker/ui/app.rb +1 -0
- data/lib/pact_broker/ui/helpers/haml_helpers.rb +10 -0
- data/lib/pact_broker/ui/views/dashboard/show.haml +3 -4
- data/lib/pact_broker/ui/views/index/show-with-tags.haml +4 -5
- data/lib/pact_broker/ui/views/index/show.haml +1 -1
- data/lib/pact_broker/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ca0c487490557098ca1314f79ebe8736b1d7b72d29f5a3f48f04ad1204e81c0
|
4
|
+
data.tar.gz: f34e76335daffdff234eaad0f72c51b61080b47e4d0972be4893db97b094e80f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2688f72d68f644707b443bb695c8899f028a5ea4ad4ac76b8680e0409b283c7d760f4229eae4c611f3878c5f609097ffd95ed79ec55f64b6239402ffc060c98
|
7
|
+
data.tar.gz: ecf36e225ebc07860c368bbbc94a805d6ae1cacb587b36dd4344ed6b8a0038014fffc115c054f1785a7d134e940a5cab1bf6d2c36773718a581e66ab6d973b47
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
require "rack"
|
2
2
|
require "pact_broker/hash_refinements"
|
3
|
+
require "pact_broker/string_refinements"
|
3
4
|
|
4
5
|
module PactBroker
|
5
6
|
module Api
|
6
7
|
module Middleware
|
7
8
|
class BasicAuth
|
8
9
|
using PactBroker::HashRefinements
|
10
|
+
using PactBroker::StringRefinements
|
9
11
|
|
10
12
|
def initialize(app, write_credentials, read_credentials, policy)
|
11
13
|
@app = app
|
@@ -4,6 +4,7 @@ require "pact_broker/domain/index_item"
|
|
4
4
|
require "pact_broker/repositories/helpers"
|
5
5
|
require "pact_broker/index/page"
|
6
6
|
require "pact_broker/verifications/latest_verification_for_consumer_version_tag"
|
7
|
+
require "pact_broker/string_refinements"
|
7
8
|
|
8
9
|
module PactBroker
|
9
10
|
module Index
|
@@ -11,6 +12,7 @@ module PactBroker
|
|
11
12
|
extend PactBroker::Repositories
|
12
13
|
extend PactBroker::Services
|
13
14
|
extend PactBroker::Logging
|
15
|
+
using PactBroker::StringRefinements
|
14
16
|
|
15
17
|
DEFAULT_PAGE_SIZE = 30
|
16
18
|
DEFAULT_PAGE_NUMBER = 1
|
@@ -182,7 +184,7 @@ module PactBroker
|
|
182
184
|
))
|
183
185
|
|
184
186
|
# Return early if there is no pacticipant matches the input name
|
185
|
-
return base.paginate(options[:page_number] || DEFAULT_PAGE_NUMBER, options[:page_size] || DEFAULT_PAGE_SIZE) if pacticipant_ids.
|
187
|
+
return base.paginate(options[:page_number] || DEFAULT_PAGE_NUMBER, options[:page_size] || DEFAULT_PAGE_SIZE) if pacticipant_ids.empty?
|
186
188
|
end
|
187
189
|
|
188
190
|
ids_query = if options[:view]
|
data/lib/pact_broker/ui/app.rb
CHANGED
@@ -5,6 +5,7 @@ require "pact_broker/ui/controllers/matrix"
|
|
5
5
|
require "pact_broker/ui/controllers/can_i_deploy"
|
6
6
|
require "pact_broker/ui/controllers/error_test"
|
7
7
|
require "pact_broker/ui/controllers/dashboard"
|
8
|
+
require "pact_broker/ui/helpers/haml_helpers"
|
8
9
|
require "pact_broker/doc/controllers/app"
|
9
10
|
|
10
11
|
module PactBroker
|
@@ -2,15 +2,14 @@
|
|
2
2
|
!= render :haml, :'index/_css_and_js', :layout => false
|
3
3
|
.container
|
4
4
|
!= render :haml, :'index/_navbar', :layout => false, locals: {tag_toggle: false, base_url: base_url}
|
5
|
-
- if index_items.empty? &&
|
5
|
+
- if index_items.empty? && blank?(search)
|
6
6
|
!= render :haml, :'index/_getting-started', :layout => false
|
7
7
|
%h1.page-header
|
8
8
|
Pacts
|
9
9
|
|
10
|
-
-
|
11
|
-
-
|
12
|
-
|
13
|
-
= error
|
10
|
+
- errors.each do | error |
|
11
|
+
%div.alert.alert-danger
|
12
|
+
= error
|
14
13
|
|
15
14
|
%form{action: "#{base_url}"}
|
16
15
|
.field
|
@@ -2,7 +2,7 @@
|
|
2
2
|
!= render :haml, :'index/_css_and_js', :layout => false
|
3
3
|
.container
|
4
4
|
!= render :haml, :'index/_navbar', :layout => false, locals: {tag_toggle: true, base_url: base_url}
|
5
|
-
- if index_items.empty? &&
|
5
|
+
- if index_items.empty? && blank?(search)
|
6
6
|
!= render :haml, :'index/_getting-started', :layout => false
|
7
7
|
%h1.page-header
|
8
8
|
Pacts
|
data/lib/pact_broker/version.rb
CHANGED
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.102.
|
4
|
+
version: 2.102.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: 2022-07-
|
13
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -1002,6 +1002,7 @@ files:
|
|
1002
1002
|
- lib/pact_broker/ui/controllers/index.rb
|
1003
1003
|
- lib/pact_broker/ui/controllers/matrix.rb
|
1004
1004
|
- lib/pact_broker/ui/controllers/pacts.rb
|
1005
|
+
- lib/pact_broker/ui/helpers/haml_helpers.rb
|
1005
1006
|
- lib/pact_broker/ui/helpers/matrix_helper.rb
|
1006
1007
|
- lib/pact_broker/ui/helpers/url_helper.rb
|
1007
1008
|
- lib/pact_broker/ui/view_models/clusters.rb
|