summaryrefslogtreecommitdiffstats
path: root/pre_commit
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-16 09:45:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-16 09:45:14 +0000
commit35ec33b96f10ec62082ce42c4d12ea69234de892 (patch)
treebd43e36343bac693cbb0d99d350e94b954dcaedf /pre_commit
parentReleasing debian version 3.3.2-2. (diff)
downloadpre-commit-35ec33b96f10ec62082ce42c4d12ea69234de892.tar.xz
pre-commit-35ec33b96f10ec62082ce42c4d12ea69234de892.zip
Merging upstream version 3.3.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--pre_commit/languages/ruby.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pre_commit/languages/ruby.py b/pre_commit/languages/ruby.py
index 76631f2..c88269f 100644
--- a/pre_commit/languages/ruby.py
+++ b/pre_commit/languages/ruby.py
@@ -114,6 +114,8 @@ def _install_ruby(
def install_environment(
prefix: Prefix, version: str, additional_dependencies: Sequence[str],
) -> None:
+ envdir = lang_base.environment_dir(prefix, ENVIRONMENT_DIR, version)
+
if version != 'system': # pragma: win32 no cover
_install_rbenv(prefix, version)
with in_env(prefix, version):
@@ -135,6 +137,8 @@ def install_environment(
'gem', 'install',
'--no-document', '--no-format-executable',
'--no-user-install',
+ '--install-dir', os.path.join(envdir, 'gems'),
+ '--bindir', os.path.join(envdir, 'gems', 'bin'),
*prefix.star('.gem'), *additional_dependencies,
),
)