stats: 2.11.23 -> 2.11.26 (#374860)
[NixPkgs.git] / pkgs / development / interpreters / ruby / rubygems / 0002-binaries-with-env-shebang.patch
blobfef2c558e24672a40df46ae2f71aea0b1f0cdd5f
1 From 2e1328bcdddd35e557eabdff83ac07f3591dc693 Mon Sep 17 00:00:00 2001
2 From: zimbatm <zimbatm@zimbatm.com>
3 Date: Wed, 21 Sep 2016 19:37:05 +0100
4 Subject: [PATCH 2/3] binaries with env shebang
6 By default, don't point to the absolute ruby derivation path. As a user
7 installing a gem in the home, it would freeze the selected ruby version
8 to the currently-installed ruby derivation.
9 ---
10 lib/rubygems/dependency_installer.rb | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
13 diff --git a/lib/rubygems/dependency_installer.rb b/lib/rubygems/dependency_installer.rb
14 index 34620860..00ab31d9 100644
15 --- a/lib/rubygems/dependency_installer.rb
16 +++ b/lib/rubygems/dependency_installer.rb
17 @@ -17,7 +17,7 @@ class Gem::DependencyInstaller
18 extend Gem::Deprecate
20 DEFAULT_OPTIONS = { # :nodoc:
21 - env_shebang: false,
22 + env_shebang: true,
23 document: %w[ri],
24 domain: :both, # HACK: dup
25 force: false,
26 --
27 2.21.0