PATH: //opt/alt/ruby33/share/rubygems/rubygems/commands
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 build_command.rb
↓
X
📄 cert_command.rb
↓
X
📄 check_command.rb
↓
X
📄 cleanup_command.rb
↓
X
📄 contents_command.rb
↓
X
📄 dependency_command.rb
↓
X
📄 environment_command.rb
↓
X
📄 exec_command.rb
↓
X
📄 fetch_command.rb
↓
X
📄 generate_index_command.rb
↓
X
📄 help_command.rb
↓
X
📄 info_command.rb
↓
X
📄 install_command.rb
↓
X
📄 list_command.rb
↓
X
📄 lock_command.rb
↓
X
📄 mirror_command.rb
↓
X
📄 open_command.rb
↓
X
📄 outdated_command.rb
↓
X
📄 owner_command.rb
↓
X
📄 pristine_command.rb
↓
X
📄 push_command.rb
↓
X
📄 query_command.rb
↓
X
📄 rdoc_command.rb
↓
X
📄 rebuild_command.rb
↓
X
📄 search_command.rb
↓
X
📄 server_command.rb
↓
X
📄 setup_command.rb
↓
X
📄 signin_command.rb
↓
X
📄 signout_command.rb
↓
X
📄 sources_command.rb
↓
X
📄 specification_command.rb
↓
X
📄 stale_command.rb
↓
X
📄 uninstall_command.rb
↓
X
📄 unpack_command.rb
↓
X
📄 update_command.rb
↓
X
📄 which_command.rb
↓
X
📄 yank_command.rb
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: generate_index_command.rb
# frozen_string_literal: true require_relative "../command" unless defined? Gem::Commands::GenerateIndexCommand class Gem::Commands::GenerateIndexCommand < Gem::Command module RubygemsTrampoline def description # :nodoc: <<~EOF The generate_index command has been moved to the rubygems-generate_index gem. EOF end def execute alert_error "Install the rubygems-generate_index gem for the generate_index command" end def invoke_with_build_args(args, build_args) name = "rubygems-generate_index" spec = begin Gem::Specification.find_by_name(name) rescue Gem::LoadError require "rubygems/dependency_installer" Gem.install(name, Gem::Requirement.default, Gem::DependencyInstaller::DEFAULT_OPTIONS).find {|s| s.name == name } end # remove the methods defined in this file so that the methods defined in the gem are used instead, # and without a method redefinition warning %w[description execute invoke_with_build_args].each do |method| RubygemsTrampoline.remove_method(method) end self.class.singleton_class.remove_method(:new) spec.activate Gem.load_plugin_files spec.matches_for_glob("rubygems_plugin#{Gem.suffix_pattern}") self.class.new.invoke_with_build_args(args, build_args) end end private_constant :RubygemsTrampoline # remove_method(:initialize) warns, but removing new does not warn def self.new command = allocate command.send(:initialize, "generate_index", "Generates the index files for a gem server directory (requires rubygems-generate_index)") command end prepend(RubygemsTrampoline) end end
SIMPAN PERUBAHAN