Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Commands::UnpackCommand.new
new
lib/rubygems/commands/unpack_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/commands/unpack_command.rb, line 20
def initialize
require "fileutils"
super "unpack", "Unpack an installed gem to the current directory",
version: Gem::Requirement.default,
target: Dir.pwd
add_option("--target=DIR",
"target directory for unpacking") do |value, options|
options[:target] = value
end
add_option("--spec", "unpack the gem specification") do |_value, options|
options[:spec] = true
end
add_security_option
add_version_option
end
No documentation available