End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::SpecificationPolicy#validate_nil_attributes
validate_nil_attributes
lib/rubygems/specification_policy.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/specification_policy.rb, line 246
def validate_nil_attributes
nil_attributes = Gem::Specification.non_nil_attributes.select do |attrname|
@specification.instance_variable_get("@#{attrname}").nil?
end
return if nil_attributes.empty?
error "#{nil_attributes.join ', '} must not be nil"
end
No documentation available
See also
#validate_name
#validate_non_files
#validate_metadata
#validate_optional
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1