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
Returns an array of all the CodeLines that exist after the currently scanned block
do nothing
do nothing
Checks the user
and password
.
If password
is not provided, then user
is split, using URI::Generic.split_userinfo
, to pull user
and +password.
See also URI::Generic.check_user
, URI::Generic.check_password
.
Checks the user v
component for RFC2396 compliance and against the URI::Parser Regexp
for :USERINFO.
Can not have a registry or opaque component defined, with a user component defined.
Protected setter for the user
component, and password
if available (with validation).
See also URI::Generic.userinfo=
.
Returns the userinfo ui
as [user, password]
if properly formatted as ‘user:password’.
Escapes ‘user:password’ v
based on RFC 1738 section 3.1.
Returns the user component after URI
decoding.
Private method to cleanup attributes
, scope
, filter
, and extensions
from using the query
component attribute.
Private setter for filter val
.