From 43ba935f605136cbfbc0d28f435c678da2ddce38 Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Tue, 14 Apr 2020 17:38:19 +1000 Subject: [PATCH] fix: unset BUNDLE_APP_CONFIG to prevent Ruby contamination --- packaging/pact-broker.bat | 1 + packaging/pact-message.bat | 1 + packaging/pact-mock-service.bat | 1 + packaging/pact-provider-verifier.bat | 1 + packaging/pact-publish.bat | 1 + packaging/pact-stub-service.bat | 1 + packaging/pact.bat | 1 + 7 files changed, 7 insertions(+) diff --git a/packaging/pact-broker.bat b/packaging/pact-broker.bat index fc90cce..c0f50d0 100644 --- a/packaging/pact-broker.bat +++ b/packaging/pact-broker.bat @@ -7,6 +7,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile" set BUNDLE_IGNORE_CONFIG= set RUBYGEMS_GEMDEPS= +set BUNDLE_APP_CONFIG= set BUNDLE_FROZEN=1 :: Run the actual app using the bundled Ruby interpreter, with Bundler activated. diff --git a/packaging/pact-message.bat b/packaging/pact-message.bat index 9316488..8ef3c6d 100644 --- a/packaging/pact-message.bat +++ b/packaging/pact-message.bat @@ -7,6 +7,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile" set BUNDLE_IGNORE_CONFIG= set RUBYGEMS_GEMDEPS= +set BUNDLE_APP_CONFIG= set BUNDLE_FROZEN=1 :: Run the actual app using the bundled Ruby interpreter, with Bundler activated. diff --git a/packaging/pact-mock-service.bat b/packaging/pact-mock-service.bat index d25975a..7dffdf5 100644 --- a/packaging/pact-mock-service.bat +++ b/packaging/pact-mock-service.bat @@ -7,6 +7,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile" set BUNDLE_IGNORE_CONFIG= set RUBYGEMS_GEMDEPS= +set BUNDLE_APP_CONFIG= set BUNDLE_FROZEN=1 :: Run the actual app using the bundled Ruby interpreter, with Bundler activated. diff --git a/packaging/pact-provider-verifier.bat b/packaging/pact-provider-verifier.bat index d379ab1..4cad471 100644 --- a/packaging/pact-provider-verifier.bat +++ b/packaging/pact-provider-verifier.bat @@ -7,6 +7,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile" set BUNDLE_IGNORE_CONFIG= set RUBYGEMS_GEMDEPS= +set BUNDLE_APP_CONFIG= set BUNDLE_FROZEN=1 :: Run the actual app using the bundled Ruby interpreter, with Bundler activated. diff --git a/packaging/pact-publish.bat b/packaging/pact-publish.bat index 135efc2..f40626c 100644 --- a/packaging/pact-publish.bat +++ b/packaging/pact-publish.bat @@ -7,6 +7,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile" set BUNDLE_IGNORE_CONFIG= set RUBYGEMS_GEMDEPS= +set BUNDLE_APP_CONFIG= set BUNDLE_FROZEN=1 :: Run the actual app using the bundled Ruby interpreter, with Bundler activated. diff --git a/packaging/pact-stub-service.bat b/packaging/pact-stub-service.bat index ddc0dc7..82003f5 100644 --- a/packaging/pact-stub-service.bat +++ b/packaging/pact-stub-service.bat @@ -7,6 +7,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile" set BUNDLE_IGNORE_CONFIG= set RUBYGEMS_GEMDEPS= +set BUNDLE_APP_CONFIG= set BUNDLE_FROZEN=1 :: Run the actual app using the bundled Ruby interpreter, with Bundler activated. diff --git a/packaging/pact.bat b/packaging/pact.bat index ce7bc3a..b712631 100644 --- a/packaging/pact.bat +++ b/packaging/pact.bat @@ -7,6 +7,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile" set BUNDLE_IGNORE_CONFIG= set RUBYGEMS_GEMDEPS= +set BUNDLE_APP_CONFIG= set BUNDLE_FROZEN=1 :: Run the actual app using the bundled Ruby interpreter, with Bundler activated.