End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Commands::SpecificationCommand.new
new
lib/rubygems/commands/specification_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/commands/specification_command.rb, line 11
def initialize
Gem.load_yaml
super "specification", "Display gem specification (in yaml)",
:domain => :local, :version => Gem::Requirement.default,
:format => :yaml
add_version_option("examine")
add_platform_option
add_prerelease_option
add_option("--all", "Output specifications for all versions of",
"the gem") do |value, options|
options[:all] = true
end
add_option("--ruby", "Output ruby format") do |value, options|
options[:format] = :ruby
end
add_option("--yaml", "Output YAML format") do |value, options|
options[:format] = :yaml
end
add_option("--marshal", "Output Marshal format") do |value, options|
options[:format] = :marshal
end
add_local_remote_options
end
No documentation available