Maintenance Ruby 3.4 gets fixes, but no new features. 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.4.1/lib/rubygems/uninstaller.rb, line 309
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
#plugin_dir_for
#default_spec_matches?
#regenerate_plugins
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0