mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
e151a37e98
patches don't age well. closes #4440 closes #4450
16 lines
697 B
Diff
16 lines
697 B
Diff
diff -ru a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
|
|
--- a/lib/rubygems/installer.rb 2023-12-15 18:44:02
|
|
+++ b/lib/rubygems/installer.rb 2023-12-15 19:04:30
|
|
@@ -691,6 +691,12 @@
|
|
@plugins_dir = File.join(@build_root, @plugins_dir.gsub(/^[a-zA-Z]:/, ""))
|
|
alert_warning "You build with buildroot.\n Build root: #{@build_root}\n Bin dir: #{@bin_dir}\n Gem home: #{@gem_home}\n Plugins dir: #{@plugins_dir}"
|
|
end
|
|
+
|
|
+ unless File.writable? @gem_home
|
|
+ @bin_dir = File.join(Gem.user_home, ".local/bin")
|
|
+ @gem_home = Gem.user_dir
|
|
+ @plugins_dir = File.join(Gem.user_dir, "plugins")
|
|
+ end
|
|
end
|
|
|
|
def check_that_user_bin_dir_is_in_path # :nodoc:
|