End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Specification#requirements=
requirements=(req)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/specification.rb, line 2316
def requirements=(req)
@requirements = Array req
end
Set requirements to req, ensuring it is an array.
See also
#requirements
#require_path
#required_ruby_version=
#require_path=
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0