Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::VersionOption#add_ruby_abi_option
add_ruby_abi_option(task = command, *wrap)
lib/rubygems/version_option.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/version_option.rb, line 52
def add_ruby_abi_option(task = command, *wrap)
add_option("--ruby-abi RUBY_ABI",
"Specify the Ruby ABI of gem to #{task}", *wrap) do |value, options|
unless Gem::ContentAddress.valid_ruby_abi?(value)
raise Gem::OptionParser::InvalidArgument, "#{value}: Ruby ABI must be in X.Y format"
end
options[:ruby_abi] = value
end
end
Add the –ruby-abi option to the option parser.