Skip to content

Commit

Permalink
feat(gems): update pact_broker gem to version 2.57.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 25, 2020
1 parent 04ea0af commit fc36cc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pact_broker/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ GEM
declarative-builder (0.1.0)
declarative-option (< 0.2.0)
declarative-option (0.1.0)
diff-lcs (1.3)
diff-lcs (1.4.2)
disposable (0.4.7)
declarative (>= 0.0.9, < 1.0.0)
declarative-builder (< 0.2.0)
declarative-option (< 0.2.0)
representable (>= 2.4.0, <= 3.1.0)
uber (< 0.2.0)
dry-configurable (0.11.5)
dry-configurable (0.11.6)
concurrent-ruby (~> 1.0)
dry-core (~> 0.4, >= 0.4.7)
dry-equalizer (~> 0.2)
Expand Down Expand Up @@ -151,7 +151,7 @@ GEM
sucker_punch (2.1.2)
concurrent-ruby (~> 1.0)
sync (0.5.0)
table_print (1.5.6)
table_print (1.5.7)
temple (0.8.2)
term-ansicolor (1.7.1)
tins (~> 1.0)
Expand Down
12 changes: 6 additions & 6 deletions pact_broker/config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ allow_public_read_access = ENV.fetch('PACT_BROKER_ALLOW_PUBLIC_READ', '') == 'tr
allow_public_access_to_heartbeat = ENV.fetch('PACT_BROKER_PUBLIC_HEARTBEAT', '') == 'true'
use_basic_auth = basic_auth_username != '' && basic_auth_password != ''


if use_basic_auth
puts "INFO: Public read access is enabled" if allow_public_read_access
policy = PactBrokerResourceAccessPolicy.build(allow_public_read_access, allow_public_access_to_heartbeat)
use BasicAuth,
basic_auth_username,
basic_auth_password,
basic_auth_read_only_username,
basic_auth_read_only_password,
allow_public_read_access,
allow_public_access_to_heartbeat
[basic_auth_username, basic_auth_password],
[basic_auth_read_only_username, basic_auth_read_only_password],
policy
end

run app

0 comments on commit fc36cc2

Please sign in to comment.