summaryrefslogtreecommitdiffstats
path: root/pre_commit
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-16 09:45:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-16 09:45:11 +0000
commitf2ae340aa5fc69bc4f305365bfe7ad41cf5f4973 (patch)
tree10c69f11608df1ba4aa763602ad45e4748d0a6ce /pre_commit
parentAdding upstream version 3.3.2. (diff)
downloadpre-commit-f2ae340aa5fc69bc4f305365bfe7ad41cf5f4973.tar.xz
pre-commit-f2ae340aa5fc69bc4f305365bfe7ad41cf5f4973.zip
Adding upstream version 3.3.3.upstream/3.3.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit')
-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,
),
)