Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Specification#licenses=
licenses=(licenses)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/specification.rb, line 377
def licenses=(licenses)
@licenses = Array licenses
end
The license(s) for the library.
Each license must be a short name, no more than 64 characters.
This should just be the name of your license. The full text of the license should be inside of the gem when you build it.
See license= for more discussion
Usage:
Example
spec.licenses = ['MIT', 'GPL-2.0']
See also
#licenses
#mark_version
#license=
#missing_extensions?
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0