End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::GemcutterUtilities#add_key_option
add_key_option
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/gemcutter_utilities.rb, line 21
def add_key_option
add_option('-k', '--key KEYNAME', Symbol,
'Use the given API key',
"from #{Gem.configuration.credentials_path}") do |value,options|
options[:key] = value
end
end
Add the –key option