mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
Merge RubyGems-3.3.19 and Bundler-2.3.19
This commit is contained in:
parent
0918783347
commit
44c926f3a9
362 changed files with 7843 additions and 7605 deletions
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
require_relative '../command'
|
||||
require_relative "../command"
|
||||
|
||||
class Gem::Commands::HelpCommand < Gem::Command
|
||||
# :stopdoc:
|
||||
|
@ -280,7 +280,7 @@ platform.
|
|||
# :startdoc:
|
||||
|
||||
def initialize
|
||||
super 'help', "Provide help on the 'gem' command"
|
||||
super "help", "Provide help on the 'gem' command"
|
||||
|
||||
@command_manager = Gem::CommandManager.instance
|
||||
end
|
||||
|
@ -326,7 +326,7 @@ platform.
|
|||
desc_width = @command_manager.command_names.map {|n| n.size }.max + 4
|
||||
|
||||
summary_width = 80 - margin_width - desc_width
|
||||
wrap_indent = ' ' * (margin_width + desc_width)
|
||||
wrap_indent = " " * (margin_width + desc_width)
|
||||
format = "#{' ' * margin_width}%-#{desc_width}s%s"
|
||||
|
||||
@command_manager.command_names.each do |cmd_name|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue