Prepares the gem for signing and checksum generation. If a signing certificate and key are not present only checksum generation is set up.
Verifies entry
in a .gem file.
Verifies the files of the gem
Load custom marshal format. It’s a string for backwards (RubyGems 1.3.5 and earlier) compatibility.
Loads type
kind of specs fetching from +@uri+ if the on-disk cache is out of date.
type
is one of the following:
:released => Return the list of all released specs :latest => Return the list of only the highest version of each gem :prerelease => Return the list of all prerelease only specs
Loads the default specifications. It should be called only once.
Return a list of all gems that have a dependency on this gemspec. The list is structured with entries that conform to:
[depending_gem, dependency, [list_of_gems_that_satisfy_dependency]]
List of dependencies that are used for development
Sets the rubygems_version
to the current RubyGems version.
Issues a warning for each file to be packaged which is world-readable.
Implementation for Specification#validate_permissions
Uninstalls gem spec
Display a warning on stderr. Will ask question
if it is not nil.
Return the currently matched lines as a ‘CodeBlock`
When a ‘CodeBlock` is created it will gather metadata about itself, so this is not a free conversion. Avoid allocating more CodeBlock’s than needed
Smushes all heredoc lines into one line
source = <<~'EOM' foo = <<~HEREDOC lol hehehe HEREDOC EOM lines = CleanDocument.new(source: source).join_heredoc!.lines expect(lines[0].to_s).to eq(source) expect(lines[1].to_s).to eq("")
Discards any changes that have not been committed