From 479ba9a44b6beda1dce32842bcbc66b6f46a85a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 1 Apr 2022 11:39:38 +0200 Subject: [PATCH] [rubygems/rubygems] All supported rubies have `File.realpath` https://github.com/rubygems/rubygems/commit/c60ed4878c --- lib/bundler/shared_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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