Returns a null location that does not correspond to a source and points to the beginning of the file. Useful for when you want a location object but do not care where it points.
Compile the query into a callable object that can be used to match against nodes.
Lazily initialize the parse result.
Removes tuple
from the TupleBag
.
Moves tuple
to port
.
True if the command handles the given argument list.
Does this dependency require a prerelease?
A null NameTuple
, ie name=nil, version=0
Indicate if this NameTuple
is for a prerelease version.
A requirement is a prerelease if any of the versions inside of it are prereleases
A version is considered a prerelease if it contains a letter.
The release for this version (e.g. 1.2.0.a -> 1.2.0). Non-prerelease versions return themselves.
Removes all sources from the SourceList
.
Deletes source
from the source list which may be a Gem::Source
or a URI
.
Files included in this gem. You cannot append to this accessor, you must assign to it.
Only add files you can require to this list, not directories, etc.
Directories are automatically stripped from this list when building a gem, other non-files cause an error.
Usage:
require 'rake' spec.files = FileList['lib/**/*.rb', 'bin/*', '[A-Z]*'].to_a # or without Rake... spec.files = Dir['lib/**/*.rb'] + Dir['bin/*'] spec.files += Dir['[A-Z]*'] spec.files.reject! { |fn| fn.include? "CVS" }
Executables included in the gem.
For example, the rake gem has rake as an executable. You don’t specify the full path (as in bin/rake); all application-style files are expected to be found in bindir. These files must be executable Ruby files. Files that use bash or other interpreters will not work.
Executables included may only be ruby scripts, not scripts for other languages or compiled binaries.
Usage:
spec.executables << 'rake'
Dump only crucial instance variables.
Singular accessor for executables
Singular accessor for executables
Sets executables to value
, ensuring it is an array.