Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Specification#spec_dir
spec_dir
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/specification.rb, line 2428
def spec_dir
@spec_dir ||= File.join base_dir, "specifications"
end
Returns the full path to the directory containing this spec’s gemspec file. eg: /usr/local/lib/ruby/gems/1.8/specifications
See also
#sort_obj
#spec_file
#satisfies_requirement?
#spec_name
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0