From ae214be9d678756c5af26fd9161f03ee8340e1c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 13 Sep 2024 11:14:53 +0200 Subject: [PATCH] [rubygems/rubygems] Fix TODO https://github.com/rubygems/rubygems/commit/2cd13005f6 --- lib/rubygems/basic_specification.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/rubygems/basic_specification.rb b/lib/rubygems/basic_specification.rb index 0eee52492f..b76716acf5 100644 --- a/lib/rubygems/basic_specification.rb +++ b/lib/rubygems/basic_specification.rb @@ -139,11 +139,11 @@ class Gem::BasicSpecification # The full path to the gem (install path + full name). def full_gem_path - # TODO: This is a heavily used method by gems, so we'll need - # to aleast just alias it to #gem_dir rather than remove it. @full_gem_path ||= find_full_gem_path end + alias_method :gem_dir, :full_gem_path + ## # Returns the full name (name-version) of this Gem. Platform information # is included (name-version-platform) if it is specified and not the @@ -213,14 +213,6 @@ class Gem::BasicSpecification end end - ## - # Returns the full path to this spec's gem directory. - # eg: /usr/local/lib/ruby/1.8/gems/mygem-1.0 - - def gem_dir - @gem_dir ||= File.expand_path File.join(gems_dir, full_name) - end - ## # Returns the full path to the gems directory containing this spec's # gem directory. eg: /usr/local/lib/ruby/1.8/gems