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#authors=
authors=(value)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/specification.rb, line 279
def authors=(value)
@authors = Array(value).flatten.grep(String)
end
A list of authors for this gem.
Alternatively, a single author can be specified by assigning a string to spec.author
Usage:
Example
spec.authors = ['John Jones', 'Mary Smith']