pact_broker 2.117.0 → 2.117.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile +7 -1
- data/lib/pact_broker/api/contracts/pacts_for_verification_json_query_schema.rb +1 -1
- data/lib/pact_broker/api/resources/clean.rb +1 -1
- data/lib/pact_broker/api/resources/provider_pacts_for_verification.rb +2 -2
- data/lib/pact_broker/app.rb +0 -1
- data/lib/pact_broker/config/runtime_configuration.rb +1 -1
- data/lib/pact_broker/pacts/pact_publication.rb +1 -1
- data/lib/pact_broker/tasks/clean_task.rb +1 -0
- data/lib/pact_broker/ui/controllers/can_i_deploy.rb +2 -2
- data/lib/pact_broker/ui/controllers/clusters.rb +1 -1
- data/lib/pact_broker/ui/controllers/dashboard.rb +2 -2
- data/lib/pact_broker/ui/controllers/error_test.rb +1 -1
- data/lib/pact_broker/ui/controllers/groups.rb +1 -1
- data/lib/pact_broker/ui/controllers/index.rb +2 -2
- data/lib/pact_broker/ui/controllers/matrix.rb +3 -3
- data/lib/pact_broker/ui/controllers/pacts.rb +1 -1
- data/lib/pact_broker/ui/view_models/index_item.rb +1 -1
- data/lib/pact_broker/ui/view_models/index_item_branch_head.rb +1 -1
- data/lib/pact_broker/ui/view_models/index_item_provider_branch_head.rb +1 -1
- data/lib/pact_broker/ui/view_models/index_items.rb +1 -1
- data/lib/pact_broker/ui/view_models/matrix_branch.rb +1 -1
- data/lib/pact_broker/ui/view_models/matrix_deployed_version.rb +1 -1
- data/lib/pact_broker/ui/view_models/matrix_line.rb +1 -1
- data/lib/pact_broker/ui/view_models/matrix_lines.rb +2 -2
- data/lib/pact_broker/ui/view_models/matrix_released_version.rb +1 -1
- data/lib/pact_broker/ui/view_models/matrix_tag.rb +1 -1
- data/lib/pact_broker/version.rb +1 -1
- metadata +4 -6
- data/lib/pact_broker/dashboard/service.rb +0 -0
- data/lib/pact_broker/ui/view_models/clusters.rb +0 -0
- /data/lib/pact_broker/config/{basic_auth_configuration.rb → runtime_configuration_basic_auth_methods.rb} +0 -0
- /data/lib/pact_broker/tags/{head_pact_tags.rb → head_pact_tag.rb} +0 -0
- /data/lib/pact_broker/ui/controllers/{base_controller.rb → base.rb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c52b0ab9c14e0eff3a49143fa09d4205ba9c1d9c16e96fd8e88bc74fb2b798d2
|
|
4
|
+
data.tar.gz: bf44ad81e1676d10d8af2912875726cdc50e91bbfbd10b02b62d689d7590fbaa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f9ef0b473f58fd3b60c4c6e61125041bf93002d5cff4fe03f589583ca4bff47e719a23bd14220c18a78e0ce662cb0dfcda0947c94b253d96c7caf4bfdb55238
|
|
7
|
+
data.tar.gz: 8558c5f412cd6bbbdf21b1af7e235c7f3f78b6e871a7584d7654319758043c7652d341cab21e4b00c1f6014bd5e950bd7484a4eb1ec5e384dcb09237d8e0db2d
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -21,7 +21,13 @@ end
|
|
|
21
21
|
|
|
22
22
|
group :test do
|
|
23
23
|
gem "simplecov", :require => false
|
|
24
|
-
|
|
24
|
+
if ENV["X_PACT_DEVELOPMENT"] == "true"
|
|
25
|
+
gem "pact", path: "../pact-ruby"
|
|
26
|
+
gem "pact-ffi", path: "../pact-ruby-ffi"
|
|
27
|
+
else
|
|
28
|
+
gem "pact", "~>1.14"
|
|
29
|
+
gem "pact-ffi", "~>0.4.28"
|
|
30
|
+
end
|
|
25
31
|
gem "rspec-pact-matchers", "~>0.1"
|
|
26
32
|
gem "bundler-audit", "~>0.4"
|
|
27
33
|
gem "webmock", "~>3.9"
|
|
@@ -5,7 +5,7 @@ require "pact_broker/logging"
|
|
|
5
5
|
module PactBroker
|
|
6
6
|
module Api
|
|
7
7
|
module Contracts
|
|
8
|
-
class
|
|
8
|
+
class PactsForVerificationJsonQuerySchema < BaseContract
|
|
9
9
|
json do
|
|
10
10
|
optional(:providerVersionBranch).maybe(:string)
|
|
11
11
|
optional(:providerVersionTags).maybe(:array?)
|
|
@@ -19,7 +19,7 @@ module PactBroker
|
|
|
19
19
|
def process_post
|
|
20
20
|
if content_type_json?
|
|
21
21
|
keep_selectors = (params[:keep] || []).collect do | hash |
|
|
22
|
-
PactBroker::
|
|
22
|
+
PactBroker::DB::Clean::Selector.new(hash)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
result = PactBroker::DB::Clean.call(Sequel::Model.db, { keep: keep_selectors })
|
|
@@ -73,9 +73,9 @@ module PactBroker
|
|
|
73
73
|
|
|
74
74
|
def schema
|
|
75
75
|
if request.get?
|
|
76
|
-
|
|
76
|
+
api_contract_class(:pacts_for_verification_query_string_schema)
|
|
77
77
|
elsif request.post?
|
|
78
|
-
|
|
78
|
+
api_contract_class(:pacts_for_verification_json_query_schema)
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
data/lib/pact_broker/app.rb
CHANGED
|
@@ -23,7 +23,6 @@ require "rack/pact_broker/application_context"
|
|
|
23
23
|
require "sucker_punch"
|
|
24
24
|
require "pact_broker/api/middleware/configuration"
|
|
25
25
|
require "pact_broker/api/middleware/basic_auth"
|
|
26
|
-
require "pact_broker/config/basic_auth_configuration"
|
|
27
26
|
require "pact_broker/api/authorization/resource_access_policy"
|
|
28
27
|
require "pact_broker/api/middleware/http_debug_logs"
|
|
29
28
|
require "pact_broker/application_context"
|
|
@@ -3,7 +3,7 @@ require "pact_broker/config/runtime_configuration_logging_methods"
|
|
|
3
3
|
require "pact_broker/config/runtime_configuration_database_methods"
|
|
4
4
|
require "pact_broker/config/runtime_configuration_coercion_methods"
|
|
5
5
|
require "pact_broker/version"
|
|
6
|
-
require "pact_broker/config/
|
|
6
|
+
require "pact_broker/config/runtime_configuration_basic_auth_methods"
|
|
7
7
|
require "pact_broker/string_refinements"
|
|
8
8
|
require "pact_broker/hash_refinements"
|
|
9
9
|
require "pact_broker/error"
|
|
@@ -3,7 +3,7 @@ require "pact_broker/dataset"
|
|
|
3
3
|
require "pact_broker/domain/pact"
|
|
4
4
|
require "pact_broker/pacts/pact_version"
|
|
5
5
|
require "pact_broker/integrations/integration"
|
|
6
|
-
require "pact_broker/tags/
|
|
6
|
+
require "pact_broker/tags/head_pact_tag"
|
|
7
7
|
require "pact_broker/pacts/pact_publication_dataset_module"
|
|
8
8
|
require "pact_broker/pacts/pact_publication_wip_dataset_module"
|
|
9
9
|
require "pact_broker/pacts/eager_loaders"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require "pact_broker/ui/controllers/
|
|
1
|
+
require "pact_broker/ui/controllers/base"
|
|
2
2
|
require "pact_broker/ui/view_models/matrix_lines"
|
|
3
3
|
require "pact_broker/matrix/unresolved_selector"
|
|
4
4
|
require "pact_broker/matrix/parse_query"
|
|
@@ -20,7 +20,7 @@ module PactBroker
|
|
|
20
20
|
selectors = [ PactBroker::Matrix::UnresolvedSelector.new(pacticipant_name: params[:pacticipant_name], latest: true, tag: params[:tag]) ]
|
|
21
21
|
options = { latestby: "cvp", limit: 100, tag: params[:to] }
|
|
22
22
|
result = matrix_service.find(selectors, options)
|
|
23
|
-
lines = PactBroker::UI::
|
|
23
|
+
lines = PactBroker::UI::ViewModels::MatrixLines.new(result, base_url: base_url)
|
|
24
24
|
locals = {
|
|
25
25
|
lines: lines,
|
|
26
26
|
selectors: create_selector_objects(selectors),
|
|
@@ -18,7 +18,7 @@ module PactBroker
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
get "/" do
|
|
21
|
-
view_model =
|
|
21
|
+
view_model = PactBroker::UI::ViewModels::IndexItems.new(pacticipant_service.find_index_items, base_url: base_url)
|
|
22
22
|
haml "clusters/show", locals: { relationships: view_model, base_url: base_url }, escape_html: true
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require "pact_broker/ui/controllers/
|
|
1
|
+
require "pact_broker/ui/controllers/base"
|
|
2
2
|
require "pact_broker/ui/view_models/index_items"
|
|
3
3
|
require "haml"
|
|
4
4
|
|
|
@@ -44,7 +44,7 @@ module PactBroker
|
|
|
44
44
|
[]
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
view_index_items =
|
|
47
|
+
view_index_items = PactBroker::UI::ViewModels::IndexItems.new(index_items, base_url: base_url, view: view)
|
|
48
48
|
|
|
49
49
|
page = :'dashboard/show'
|
|
50
50
|
locals = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require "pact_broker/ui/controllers/
|
|
1
|
+
require "pact_broker/ui/controllers/base"
|
|
2
2
|
require "pact_broker/ui/view_models/index_items"
|
|
3
3
|
require "pact_broker/string_refinements"
|
|
4
4
|
require "haml"
|
|
@@ -33,7 +33,7 @@ module PactBroker
|
|
|
33
33
|
error_messages << "No pacticipants found matching: \"#{search}\""
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
view_index_items =
|
|
36
|
+
view_index_items = PactBroker::UI::ViewModels::IndexItems.new(index_items, base_url: base_url)
|
|
37
37
|
|
|
38
38
|
page = tags ? :'index/show-with-tags' : :'index/show'
|
|
39
39
|
locals = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require "pact_broker/ui/controllers/
|
|
1
|
+
require "pact_broker/ui/controllers/base"
|
|
2
2
|
require "pact_broker/ui/view_models/matrix_lines"
|
|
3
3
|
require "pact_broker/matrix/unresolved_selector"
|
|
4
4
|
require "pact_broker/matrix/parse_query"
|
|
@@ -32,7 +32,7 @@ module PactBroker
|
|
|
32
32
|
errors = matrix_service.validate_selectors(selectors, options)
|
|
33
33
|
if errors.empty?
|
|
34
34
|
lines = matrix_service.find(selectors, options)
|
|
35
|
-
locals[:lines] = PactBroker::UI::
|
|
35
|
+
locals[:lines] = PactBroker::UI::ViewModels::MatrixLines.new(lines, base_url: base_url)
|
|
36
36
|
locals[:badge_url] = matrix_badge_url(selectors, lines, base_url)
|
|
37
37
|
else
|
|
38
38
|
locals[:errors] = errors
|
|
@@ -52,7 +52,7 @@ module PactBroker
|
|
|
52
52
|
]
|
|
53
53
|
options = { latestby: "cvpv", limit: 100 }
|
|
54
54
|
lines = matrix_service.find(selectors, options)
|
|
55
|
-
lines = PactBroker::UI::
|
|
55
|
+
lines = PactBroker::UI::ViewModels::MatrixLines.new(lines, base_url: base_url)
|
|
56
56
|
locals = {
|
|
57
57
|
lines: lines,
|
|
58
58
|
consumer_name: params[:consumer_name],
|
|
@@ -2,12 +2,12 @@ require "pact_broker/ui/view_models/matrix_line"
|
|
|
2
2
|
|
|
3
3
|
module PactBroker
|
|
4
4
|
module UI
|
|
5
|
-
module
|
|
5
|
+
module ViewModels
|
|
6
6
|
class MatrixLines < Array
|
|
7
7
|
|
|
8
8
|
def initialize rows, options = {}
|
|
9
9
|
lines = rows.collect do | row |
|
|
10
|
-
PactBroker::UI::
|
|
10
|
+
PactBroker::UI::ViewModels::MatrixLine.new(row, options)
|
|
11
11
|
end
|
|
12
12
|
super(lines.sort)
|
|
13
13
|
end
|
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.117.
|
|
4
|
+
version: 2.117.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bethany Skurrie
|
|
@@ -805,10 +805,10 @@ files:
|
|
|
805
805
|
- lib/pact_broker/build_http_options.rb
|
|
806
806
|
- lib/pact_broker/certificates/certificate.rb
|
|
807
807
|
- lib/pact_broker/certificates/service.rb
|
|
808
|
-
- lib/pact_broker/config/basic_auth_configuration.rb
|
|
809
808
|
- lib/pact_broker/config/load.rb
|
|
810
809
|
- lib/pact_broker/config/repository.rb
|
|
811
810
|
- lib/pact_broker/config/runtime_configuration.rb
|
|
811
|
+
- lib/pact_broker/config/runtime_configuration_basic_auth_methods.rb
|
|
812
812
|
- lib/pact_broker/config/runtime_configuration_coercion_methods.rb
|
|
813
813
|
- lib/pact_broker/config/runtime_configuration_database_methods.rb
|
|
814
814
|
- lib/pact_broker/config/runtime_configuration_logging_methods.rb
|
|
@@ -823,7 +823,6 @@ files:
|
|
|
823
823
|
- lib/pact_broker/contracts/contracts_to_publish.rb
|
|
824
824
|
- lib/pact_broker/contracts/notice.rb
|
|
825
825
|
- lib/pact_broker/contracts/service.rb
|
|
826
|
-
- lib/pact_broker/dashboard/service.rb
|
|
827
826
|
- lib/pact_broker/dataset.rb
|
|
828
827
|
- lib/pact_broker/dataset/page.rb
|
|
829
828
|
- lib/pact_broker/date_helper.rb
|
|
@@ -1035,7 +1034,7 @@ files:
|
|
|
1035
1034
|
- lib/pact_broker/services.rb
|
|
1036
1035
|
- lib/pact_broker/string_refinements.rb
|
|
1037
1036
|
- lib/pact_broker/tags/eager_loaders.rb
|
|
1038
|
-
- lib/pact_broker/tags/
|
|
1037
|
+
- lib/pact_broker/tags/head_pact_tag.rb
|
|
1039
1038
|
- lib/pact_broker/tags/repository.rb
|
|
1040
1039
|
- lib/pact_broker/tags/service.rb
|
|
1041
1040
|
- lib/pact_broker/tasks.rb
|
|
@@ -1048,7 +1047,7 @@ files:
|
|
|
1048
1047
|
- lib/pact_broker/test/test_data_builder.rb
|
|
1049
1048
|
- lib/pact_broker/ui.rb
|
|
1050
1049
|
- lib/pact_broker/ui/app.rb
|
|
1051
|
-
- lib/pact_broker/ui/controllers/
|
|
1050
|
+
- lib/pact_broker/ui/controllers/base.rb
|
|
1052
1051
|
- lib/pact_broker/ui/controllers/can_i_deploy.rb
|
|
1053
1052
|
- lib/pact_broker/ui/controllers/clusters.rb
|
|
1054
1053
|
- lib/pact_broker/ui/controllers/dashboard.rb
|
|
@@ -1060,7 +1059,6 @@ files:
|
|
|
1060
1059
|
- lib/pact_broker/ui/helpers/haml_helpers.rb
|
|
1061
1060
|
- lib/pact_broker/ui/helpers/matrix_helper.rb
|
|
1062
1061
|
- lib/pact_broker/ui/helpers/url_helper.rb
|
|
1063
|
-
- lib/pact_broker/ui/view_models/clusters.rb
|
|
1064
1062
|
- lib/pact_broker/ui/view_models/index_item.rb
|
|
1065
1063
|
- lib/pact_broker/ui/view_models/index_item_branch_head.rb
|
|
1066
1064
|
- lib/pact_broker/ui/view_models/index_item_provider_branch_head.rb
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|