End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Uninstaller#path_ok?
path_ok?(gem_dir, spec)
lib/rubygems/uninstaller.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/uninstaller.rb, line 304
def path_ok?(gem_dir, spec)
full_path = File.join gem_dir, "gems", spec.full_name
original_path = File.join gem_dir, "gems", spec.original_name
full_path == spec.full_gem_path || original_path == spec.full_gem_path
end
Is spec in gem_dir?
See also
#default_specs_that_match
#regenerate_plugins
#default_spec_matches?
#remove
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0