aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/shared_helpers.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-04-01 11:39:38 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-04-28 19:08:49 +0900
commit479ba9a44b6beda1dce32842bcbc66b6f46a85a0 (patch)
tree9d977fb535deba5125c8031de4c2d17cc351775f /lib/bundler/shared_helpers.rb
parentf4009566afed45db82cf1fe73d7a16192a89b810 (diff)
downloadruby-479ba9a44b6beda1dce32842bcbc66b6f46a85a0.tar.gz
[rubygems/rubygems] All supported rubies have `File.realpath`
https://github.com/rubygems/rubygems/commit/c60ed4878c
Diffstat (limited to 'lib/bundler/shared_helpers.rb')
-rw-r--r--lib/bundler/shared_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index 8b476c9135..ed0b072b65 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -325,7 +325,7 @@ module Bundler
def resolve_path(path)
expanded = File.expand_path(path)
- return expanded unless File.respond_to?(:realpath) && File.exist?(expanded)
+ return expanded unless File.exist?(expanded)
File.realpath(expanded)
end