mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
Merge the current master branch of rubygems/rubygems.
Just started to develop RubyGems 3.2.0.
This commit is contained in:
parent
adc3031311
commit
600a715c9b
54 changed files with 1236 additions and 1207 deletions
|
@ -1,17 +1,20 @@
|
|||
# frozen_string_literal: true
|
||||
require 'rubygems/command'
|
||||
require 'rubygems/commands/query_command'
|
||||
require 'rubygems/query_utils'
|
||||
|
||||
##
|
||||
# An alternate to Gem::Commands::QueryCommand that searches for gems starting
|
||||
# with the supplied argument.
|
||||
# Searches for gems starting with the supplied argument.
|
||||
|
||||
class Gem::Commands::ListCommand < Gem::Commands::QueryCommand
|
||||
class Gem::Commands::ListCommand < Gem::Command
|
||||
|
||||
include Gem::QueryUtils
|
||||
|
||||
def initialize
|
||||
super 'list', 'Display local gems whose name matches REGEXP'
|
||||
super 'list', 'Display local gems whose name matches REGEXP',
|
||||
:name => //, :domain => :local, :details => false, :versions => true,
|
||||
:installed => nil, :version => Gem::Requirement.default
|
||||
|
||||
remove_option('--name-matches')
|
||||
add_query_options
|
||||
end
|
||||
|
||||
def arguments # :nodoc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue