Calculate cursor position in word wrapped content.
Creates an option parser and fills it in with the help info for the command.
Checks the permissions of the credentials file. If they are not 0600 an error message is displayed and RubyGems aborts.
Adds a runtime dependency named gem
with requirements
to this gem.
Usage:
spec.add_runtime_dependency 'example', '~> 1.1', '>= 1.1.4'
Add the –key option
Add the –otp option
Default options for the gem install and update commands.
Add the –http-proxy option
Add the –source option
Add the –platform option to the option parser.
Initiates the SSL/TLS handshake as a client in non-blocking manner.
# emulates blocking connect begin ssl.connect_nonblock rescue IO::WaitReadable IO.select([s2]) retry rescue IO::WaitWritable IO.select(nil, [s2]) retry end
By specifying a keyword argument exception to false
, you can indicate that connect_nonblock
should not raise an IO::WaitReadable
or IO::WaitWritable
exception, but return the symbol :wait_readable
or :wait_writable
instead.
Create an exception with class klass
and message