Returns a string representation of this comment.
Returns a string representation of this comment.
Returns a string representation of this magic comment.
Returns a string representation of this error.
Returns a string representation of this warning.
Returns the encoding of the source code that was parsed.
A Location
object representing the location of this token in the source.
Returns a string representation of this token.
Compile the query into a callable object that can be used to match against nodes.
Returns the list of plugins in this spec.
Whether this specification is stubbed - i.e. we have information about the gem from a stub line, without having to evaluate the entire gemspec file.
True if long
begins with the characters from short
.
Override to display a longer description of what this command does.
true if this gem has no requirements.
Returns the first source in the list.
The license for this gem.
The license must be 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 (at the top level) when you build it.
The simplest way is to specify the standard SPDX ID spdx.org/licenses/ for the license. Ideally, you should pick one that is OSI (Open Source Initiative) opensource.org/licenses/ approved.
The most commonly used OSI-approved licenses are MIT and Apache-2.0. GitHub also provides a license picker at choosealicense.com/.
You can also use a custom license file along with your gemspec and specify a LicenseRef-<idstring>, where idstring is the name of the file containing the license text.
You should specify a license for your gem so that people know how they are permitted to use it and any restrictions you’re placing on it. Not specifying a license means all rights are reserved; others have no right to use the code for any purpose.
You can set multiple licenses with licenses=
Usage:
spec.license = 'MIT'
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:
spec.licenses = ['MIT', 'GPL-2.0']
Returns a Gem::StubSpecification
for every installed gem
A detailed description of this gem. See also summary
Singular accessor for licenses
Returns a Gem::StubSpecification
for every specification in the record
Manageable rspec errors
Manageable rspec errors