PATH: //opt/alt/ruby33/share/rubygems/rubygems
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 available_set.rb
↓
X
📄 basic_specification.rb
↓
X
📄 bundler_version_finder.rb
↓
X
📄 ci_detector.rb
↓
X
📄 command.rb
↓
X
📄 command_manager.rb
↓
X
📁 commands/
X
📄 compatibility.rb
↓
X
📄 config_file.rb
↓
X
📁 core_ext/
X
📁 defaults/
X
📄 defaults.rb
↓
X
📄 dependency.rb
↓
X
📄 dependency_installer.rb
↓
X
📄 dependency_list.rb
↓
X
📄 deprecate.rb
↓
X
📄 doctor.rb
↓
X
📄 errors.rb
↓
X
📄 exceptions.rb
↓
X
📁 ext/
X
📄 ext.rb
↓
X
📄 gem_runner.rb
↓
X
📁 gemcutter_utilities/
X
📄 gemcutter_utilities.rb
↓
X
📄 gemspec_helpers.rb
↓
X
📄 install_default_message.rb
↓
X
📄 install_message.rb
↓
X
📄 install_update_options.rb
↓
X
📄 installer.rb
↓
X
📄 installer_uninstaller_utils.rb
↓
X
📄 local_remote_options.rb
↓
X
📄 name_tuple.rb
↓
X
📄 openssl.rb
↓
X
📁 package/
X
📄 package.rb
↓
X
📄 package_task.rb
↓
X
📄 path_support.rb
↓
X
📄 platform.rb
↓
X
📄 psych_tree.rb
↓
X
📄 query_utils.rb
↓
X
📄 rdoc.rb
↓
X
📄 remote_fetcher.rb
↓
X
📁 request/
X
📄 request.rb
↓
X
📁 request_set/
X
📄 request_set.rb
↓
X
📄 requirement.rb
↓
X
📁 resolver/
X
📄 resolver.rb
↓
X
📄 s3_uri_signer.rb
↓
X
📁 safe_marshal/
X
📄 safe_marshal.rb
↓
X
📄 safe_yaml.rb
↓
X
📁 security/
X
📄 security.rb
↓
X
📄 security_option.rb
↓
X
📄 shellwords.rb
↓
X
📁 source/
X
📄 source.rb
↓
X
📄 source_list.rb
↓
X
📄 spec_fetcher.rb
↓
X
📄 specification.rb
↓
X
📄 specification_policy.rb
↓
X
📄 specification_record.rb
↓
X
📁 ssl_certs/
X
📄 stub_specification.rb
↓
X
📄 text.rb
↓
X
📄 uninstaller.rb
↓
X
📄 unknown_command_spell_checker.rb
↓
X
📄 update_suggestion.rb
↓
X
📄 uri.rb
↓
X
📄 uri_formatter.rb
↓
X
📄 user_interaction.rb
↓
X
📁 util/
X
📄 util.rb
↓
X
📄 validator.rb
↓
X
📁 vendor/
X
📄 vendored_molinillo.rb
↓
X
📄 vendored_net_http.rb
↓
X
📄 vendored_optparse.rb
↓
X
📄 vendored_securerandom.rb
↓
X
📄 vendored_timeout.rb
↓
X
📄 vendored_tsort.rb
↓
X
📄 version.rb
↓
X
📄 version_option.rb
↓
X
📄 yaml_serializer.rb
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: path_support.rb
# frozen_string_literal: true ## # # Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings # to the rest of RubyGems. # class Gem::PathSupport ## # The default system path for managing Gems. attr_reader :home ## # Array of paths to search for Gems. attr_reader :path ## # Directory with spec cache attr_reader :spec_cache_dir # :nodoc: ## # # Constructor. Takes a single argument which is to be treated like a # hashtable, or defaults to ENV, the system environment. # def initialize(env) @home = normalize_home_dir(env["GEM_HOME"] || Gem.default_dir) @path = split_gem_path env["GEM_PATH"], @home @spec_cache_dir = env["GEM_SPEC_CACHE"] || Gem.default_spec_cache_dir end private def normalize_home_dir(home) if File::ALT_SEPARATOR home = home.gsub(File::ALT_SEPARATOR, File::SEPARATOR) end expand(home) end ## # Split the Gem search path (as reported by Gem.path). def split_gem_path(gpaths, home) # FIX: it should be [home, *path], not [*path, home] gem_path = [] if gpaths gem_path = gpaths.split(Gem.path_separator) # Handle the path_separator being set to a regexp, which will cause # end_with? to error if /#{Gem.path_separator}\z/.match?(gpaths) gem_path += default_path end if File::ALT_SEPARATOR gem_path.map! do |this_path| this_path.gsub File::ALT_SEPARATOR, File::SEPARATOR end end gem_path << home else gem_path = default_path end gem_path.map {|path| expand(path) }.uniq end # Return the default Gem path def default_path Gem.default_path + [@home] end def expand(path) if File.directory?(path) File.realpath(path) else path end end end
SIMPAN PERUBAHAN