summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-07-31 21:55:08 +0000
committerThe Bundler Bot <bot@bundler.io>2018-07-31 21:55:08 +0000
commit5dcfc318f2f58d81875880533a65c8b58cda5622 (patch)
tree3ed4d2473993a47ad870a215babbdcc471886529
parent0fc64a60b9dfe2f5275f6001a34ea2bf078fd12c (diff)
parentc763bee818570a4dc3fbe402b87086e729e37822 (diff)
downloadbundler-5dcfc318f2f58d81875880533a65c8b58cda5622.tar.gz
Auto merge of #6645 - bundler:colby/require-etc, r=colby-swandale
require `etc` in Bundler#user_home ### What was the end-user problem that led to this PR? In some cases, we are sending messages to the`Etc` library which may not be loaded. ### What was your diagnosis of the problem? See #6640 ### What is your fix for the problem, implemented in this PR? Require the `etc` library before we use it Fixes #6640
-rw-r--r--lib/bundler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 68d5dc3368..6b62ac9b1c 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -170,6 +170,7 @@ module Bundler
end
if warning
+ Kernel.send(:require, "etc")
user_home = tmp_home_path(Etc.getlogin, warning)
Bundler.ui.warn "#{warning}\nBundler will use `#{user_home}' as your home directory temporarily.\n"
user_home