Current Path: > > opt > > alt > ruby32 > share > rubygems > rubygems
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
commands | Directory | - | - | |
core_ext | Directory | - | - | |
defaults | Directory | - | - | |
ext | Directory | - | - | |
gemcutter_utilities | Directory | - | - | |
optparse | Directory | - | - | |
package | Directory | - | - | |
request | Directory | - | - | |
request_set | Directory | - | - | |
resolver | Directory | - | - | |
security | Directory | - | - | |
source | Directory | - | - | |
ssl_certs | Directory | - | - | |
tsort | Directory | - | - | |
util | Directory | - | - | |
available_set.rb | File | 3086 bytes | April 24 2025 07:53:50. | |
basic_specification.rb | File | 7836 bytes | April 24 2025 07:53:50. | |
bundler_version_finder.rb | File | 2010 bytes | April 24 2025 07:53:50. | |
command.rb | File | 16463 bytes | April 24 2025 07:53:50. | |
command_manager.rb | File | 5726 bytes | April 24 2025 07:53:50. | |
compatibility.rb | File | 1027 bytes | April 24 2025 07:53:50. | |
config_file.rb | File | 14367 bytes | April 24 2025 07:53:50. | |
defaults.rb | File | 7122 bytes | April 24 2025 07:53:50. | |
dependency.rb | File | 8854 bytes | April 24 2025 07:53:50. | |
dependency_installer.rb | File | 10256 bytes | April 24 2025 07:53:50. | |
dependency_list.rb | File | 5676 bytes | April 24 2025 07:53:50. | |
deprecate.rb | File | 5007 bytes | April 24 2025 07:53:50. | |
doctor.rb | File | 3205 bytes | April 24 2025 07:53:50. | |
errors.rb | File | 4634 bytes | April 24 2025 07:53:50. | |
exceptions.rb | File | 7516 bytes | April 24 2025 07:53:50. | |
ext.rb | File | 498 bytes | April 24 2025 07:53:50. | |
gem_runner.rb | File | 1839 bytes | April 24 2025 07:53:50. | |
gemcutter_utilities.rb | File | 10788 bytes | April 24 2025 07:53:50. | |
indexer.rb | File | 11169 bytes | April 24 2025 07:53:50. | |
install_default_message.rb | File | 349 bytes | April 24 2025 07:53:50. | |
install_message.rb | File | 323 bytes | April 24 2025 07:53:50. | |
install_update_options.rb | File | 6507 bytes | April 24 2025 07:53:50. | |
installer.rb | File | 27885 bytes | April 24 2025 07:53:50. | |
installer_uninstaller_utils.rb | File | 773 bytes | April 24 2025 07:53:50. | |
local_remote_options.rb | File | 3647 bytes | April 24 2025 07:53:50. | |
mock_gem_ui.rb | File | 1413 bytes | April 24 2025 07:53:50. | |
name_tuple.rb | File | 2445 bytes | April 24 2025 07:53:50. | |
openssl.rb | File | 125 bytes | April 24 2025 07:53:50. | |
optparse.rb | File | 72 bytes | April 24 2025 07:53:50. | |
package.rb | File | 18120 bytes | April 24 2025 07:53:50. | |
package_task.rb | File | 3885 bytes | April 24 2025 07:53:50. | |
path_support.rb | File | 1828 bytes | April 24 2025 07:53:50. | |
platform.rb | File | 7663 bytes | April 24 2025 07:53:50. | |
psych_tree.rb | File | 795 bytes | April 24 2025 07:53:50. | |
query_utils.rb | File | 8699 bytes | April 24 2025 07:53:50. | |
rdoc.rb | File | 232 bytes | April 24 2025 07:53:50. | |
remote_fetcher.rb | File | 9417 bytes | April 24 2025 07:53:50. | |
request.rb | File | 8803 bytes | April 24 2025 07:53:50. | |
request_set.rb | File | 11582 bytes | April 24 2025 07:53:50. | |
requirement.rb | File | 7055 bytes | April 24 2025 07:53:50. | |
resolver.rb | File | 9870 bytes | April 24 2025 07:53:50. | |
s3_uri_signer.rb | File | 6066 bytes | April 24 2025 07:53:50. | |
safe_yaml.rb | File | 1578 bytes | April 24 2025 07:53:50. | |
security.rb | File | 22476 bytes | April 24 2025 07:53:50. | |
security_option.rb | File | 1084 bytes | April 24 2025 07:53:50. | |
shellwords.rb | File | 66 bytes | April 24 2025 07:53:50. | |
source.rb | File | 5710 bytes | April 24 2025 07:53:50. | |
source_list.rb | File | 2466 bytes | April 24 2025 07:53:50. | |
spec_fetcher.rb | File | 6515 bytes | April 24 2025 07:53:50. | |
specification.rb | File | 72144 bytes | April 24 2025 07:53:50. | |
specification_policy.rb | File | 14124 bytes | April 24 2025 07:53:50. | |
stub_specification.rb | File | 4569 bytes | April 24 2025 07:53:50. | |
text.rb | File | 2117 bytes | April 24 2025 07:53:50. | |
tsort.rb | File | 66 bytes | April 24 2025 07:53:50. | |
uninstaller.rb | File | 10445 bytes | April 24 2025 07:53:50. | |
unknown_command_spell_checker.rb | File | 411 bytes | April 24 2025 07:53:50. | |
update_suggestion.rb | File | 2313 bytes | April 24 2025 07:53:50. | |
uri.rb | File | 2382 bytes | April 24 2025 07:53:50. | |
uri_formatter.rb | File | 781 bytes | April 24 2025 07:53:50. | |
user_interaction.rb | File | 13354 bytes | April 24 2025 07:53:50. | |
util.rb | File | 2465 bytes | April 24 2025 07:53:50. | |
validator.rb | File | 3744 bytes | April 24 2025 07:53:50. | |
version.rb | File | 12870 bytes | April 24 2025 07:53:50. | |
version_option.rb | File | 2262 bytes | April 24 2025 07:53:50. |
# frozen_string_literal: true require_relative "deprecate" ## # Available list of platforms for targeting Gem installations. # # See `gem help platform` for information on platform matching. class Gem::Platform @local = nil attr_accessor :cpu, :os, :version def self.local arch = RbConfig::CONFIG["arch"] arch = "#{arch}_60" if arch =~ /mswin(?:32|64)$/ @local ||= new(arch) end def self.match(platform) match_platforms?(platform, Gem.platforms) end def self.match_platforms?(platform, platforms) platform = Gem::Platform.new(platform) unless platform.is_a?(Gem::Platform) platforms.any? do |local_platform| platform.nil? || local_platform == platform || (local_platform != Gem::Platform::RUBY && platform =~ local_platform) end end private_class_method :match_platforms? def self.match_spec?(spec) match_gem?(spec.platform, spec.name) end def self.match_gem?(platform, gem_name) # Note: this method might be redefined by Ruby implementations to # customize behavior per RUBY_ENGINE, gem_name or other criteria. match_platforms?(platform, Gem.platforms) end def self.sort_priority(platform) platform == Gem::Platform::RUBY ? -1 : 1 end def self.installable?(spec) if spec.respond_to? :installable_platform? spec.installable_platform? else match_spec? spec end end def self.new(arch) # :nodoc: case arch when Gem::Platform::CURRENT then Gem::Platform.local when Gem::Platform::RUBY, nil, "" then Gem::Platform::RUBY else super end end def initialize(arch) case arch when Array then @cpu, @os, @version = arch when String then arch = arch.split "-" if arch.length > 2 && arch.last !~ /\d+(\.\d+)?$/ # reassemble x86-linux-{libc} extra = arch.pop arch.last << "-#{extra}" end cpu = arch.shift @cpu = case cpu when /i\d86/ then "x86" else cpu end if arch.length == 2 && arch.last =~ /^\d+(\.\d+)?$/ # for command-line @os, @version = arch return end os, = arch @cpu, os = nil, cpu if os.nil? # legacy jruby @os, @version = case os when /aix(\d+)?/ then [ "aix", $1 ] when /cygwin/ then [ "cygwin", nil ] when /darwin(\d+)?/ then [ "darwin", $1 ] when /^macruby$/ then [ "macruby", nil ] when /freebsd(\d+)?/ then [ "freebsd", $1 ] when /^java$/, /^jruby$/ then [ "java", nil ] when /^java([\d.]*)/ then [ "java", $1 ] when /^dalvik(\d+)?$/ then [ "dalvik", $1 ] when /^dotnet$/ then [ "dotnet", nil ] when /^dotnet([\d.]*)/ then [ "dotnet", $1 ] when /linux-?(\w+)?/ then [ "linux", $1 ] when /mingw32/ then [ "mingw32", nil ] when /mingw-?(\w+)?/ then [ "mingw", $1 ] when /(mswin\d+)(\_(\d+))?/ then os, version = $1, $3 @cpu = "x86" if @cpu.nil? && os =~ /32$/ [os, version] when /netbsdelf/ then [ "netbsdelf", nil ] when /openbsd(\d+\.\d+)?/ then [ "openbsd", $1 ] when /solaris(\d+\.\d+)?/ then [ "solaris", $1 ] # test when /^(\w+_platform)(\d+)?/ then [ $1, $2 ] else [ "unknown", nil ] end when Gem::Platform then @cpu = arch.cpu @os = arch.os @version = arch.version else raise ArgumentError, "invalid argument #{arch.inspect}" end end def to_a [@cpu, @os, @version] end def to_s to_a.compact.join "-" end ## # Is +other+ equal to this platform? Two platforms are equal if they have # the same CPU, OS and version. def ==(other) self.class === other && to_a == other.to_a end alias :eql? :== def hash # :nodoc: to_a.hash end ## # Does +other+ match this platform? Two platforms match if they have the # same CPU, or either has a CPU of 'universal', they have the same OS, and # they have the same version, or either one has no version # # Additionally, the platform will match if the local CPU is 'arm' and the # other CPU starts with "arm" (for generic ARM family support). # # Of note, this method is not commutative. Indeed the OS 'linux' has a # special case: the version is the libc name, yet while "no version" stands # as a wildcard for a binary gem platform (as for other OSes), for the # runtime platform "no version" stands for 'gnu'. To be able to distinguish # these, the method receiver is the gem platform, while the argument is # the runtime platform. # #-- # NOTE: Until it can be removed, changes to this method must also be reflected in `bundler/lib/bundler/rubygems_ext.rb` def ===(other) return nil unless Gem::Platform === other # universal-mingw32 matches x64-mingw-ucrt return true if (@cpu == "universal" || other.cpu == "universal") && @os.start_with?("mingw") && other.os.start_with?("mingw") # cpu ([nil,"universal"].include?(@cpu) || [nil, "universal"].include?(other.cpu) || @cpu == other.cpu || (@cpu == "arm" && other.cpu.start_with?("arm"))) && # os @os == other.os && # version ( (@os != "linux" && (@version.nil? || other.version.nil?)) || (@os == "linux" && (normalized_linux_version == other.normalized_linux_version || ["musl#{@version}", "musleabi#{@version}", "musleabihf#{@version}"].include?(other.version))) || @version == other.version ) end #-- # NOTE: Until it can be removed, changes to this method must also be reflected in `bundler/lib/bundler/rubygems_ext.rb` def normalized_linux_version return nil unless @version without_gnu_nor_abi_modifiers = @version.sub(/\Agnu/, "").sub(/eabi(hf)?\Z/, "") return nil if without_gnu_nor_abi_modifiers.empty? without_gnu_nor_abi_modifiers end ## # Does +other+ match this platform? If +other+ is a String it will be # converted to a Gem::Platform first. See #=== for matching rules. def =~(other) case other when Gem::Platform then # nop when String then # This data is from http://gems.rubyforge.org/gems/yaml on 19 Aug 2007 other = case other when /^i686-darwin(\d)/ then ["x86", "darwin", $1 ] when /^i\d86-linux/ then ["x86", "linux", nil ] when "java", "jruby" then [nil, "java", nil ] when /^dalvik(\d+)?$/ then [nil, "dalvik", $1 ] when /dotnet(\-(\d+\.\d+))?/ then ["universal","dotnet", $2 ] when /mswin32(\_(\d+))?/ then ["x86", "mswin32", $2 ] when /mswin64(\_(\d+))?/ then ["x64", "mswin64", $2 ] when "powerpc-darwin" then ["powerpc", "darwin", nil ] when /powerpc-darwin(\d)/ then ["powerpc", "darwin", $1 ] when /sparc-solaris2.8/ then ["sparc", "solaris", "2.8" ] when /universal-darwin(\d)/ then ["universal", "darwin", $1 ] else other end other = Gem::Platform.new other else return nil end self === other end ## # A pure-Ruby gem that may use Gem::Specification#extensions to build # binary files. RUBY = "ruby" ## # A platform-specific gem that is built for the packaging Ruby's platform. # This will be replaced with Gem::Platform::local. CURRENT = "current" end
SILENT KILLER Tool