summaryrefslogtreecommitdiff
path: root/lib/bundler/compact_index_client
diff options
context:
space:
mode:
authorAdam Wanninger <ajwann@ajwann.codes>2017-08-20 09:01:37 -0400
committerAdam Wanninger <ajwann@ajwann.codes>2017-08-27 10:56:04 -0400
commit34351f10568f56ae93d8a8f47f09af2b0121f525 (patch)
treeda9ab2e77ef24402d42045661ffcb5b8feb1027d /lib/bundler/compact_index_client
parent31b8f312ac09cdbd94ccc9607221fa8a95ad24b4 (diff)
downloadbundler-34351f10568f56ae93d8a8f47f09af2b0121f525.tar.gz
bundler already does validations on $HOME
Diffstat (limited to 'lib/bundler/compact_index_client')
-rw-r--r--lib/bundler/compact_index_client/updater.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/bundler/compact_index_client/updater.rb b/lib/bundler/compact_index_client/updater.rb
index f69b81f116..8dd8de3d06 100644
--- a/lib/bundler/compact_index_client/updater.rb
+++ b/lib/bundler/compact_index_client/updater.rb
@@ -29,8 +29,6 @@ module Bundler
headers = {}
Bundler::SharedHelpers.filesystem_access(Dir.tmpdir, :write) do
- validate_permissions_on_home
-
Dir.mktmpdir("bundler-compact-index-") do |local_temp_dir|
local_temp_path = Pathname.new(local_temp_dir).join(local_path.basename)
@@ -106,16 +104,6 @@ module Bundler
Digest::MD5.hexdigest(IO.read(path))
end
end
-
- private
-
- def validate_permissions_on_home
- return if File.stat(ENV["HOME"]).writable?
- raise Bundler::PermissionError,
- "Bundler does not have write access to $HOME. Bundler must " \
- "have write access to $HOME to function properly. " \
- "$HOME is currently #{ENV["HOME"]}"
- end
end
end
end