diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-04-01 11:39:38 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-04-28 19:08:49 +0900 |
commit | 479ba9a44b6beda1dce32842bcbc66b6f46a85a0 (patch) | |
tree | 9d977fb535deba5125c8031de4c2d17cc351775f | |
parent | f4009566afed45db82cf1fe73d7a16192a89b810 (diff) | |
download | ruby-479ba9a44b6beda1dce32842bcbc66b6f46a85a0.tar.gz |
[rubygems/rubygems] All supported rubies have `File.realpath`
https://github.com/rubygems/rubygems/commit/c60ed4878c
-rw-r--r-- | lib/bundler/shared_helpers.rb | 2 |
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 |