From f2ae340aa5fc69bc4f305365bfe7ad41cf5f4973 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 16 Jun 2023 11:45:11 +0200 Subject: Adding upstream version 3.3.3. Signed-off-by: Daniel Baumann --- pre_commit/languages/ruby.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pre_commit') 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, ), ) -- cgit v1.2.3