/opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/bundler
NameSizeModeActions
cli/-0755rm
compact_index_client/-0755rm
fetcher/-0755rm
installer/-0755rm
plugin/-0755rm
resolver/-0755rm
settings/-0755rm
source/-0755rm
templates/-0755rm
ui/-0755rm
vendor/-0755rm
build_metadata.rb16040644editdlrm
capistrano.rb8830644editdlrm
cli.rb373000644editdlrm
compact_index_client.rb36710644editdlrm
constants.rb2120644editdlrm
current_ruby.rb21730644editdlrm
definition.rb376050644editdlrm
dependency.rb49550644editdlrm
deployment.rb32690644editdlrm
deprecate.rb8760644editdlrm
dep_proxy.rb8270644editdlrm
dsl.rb209180644editdlrm
endpoint_specification.rb40020644editdlrm
env.rb51260644editdlrm
environment_preserver.rb13100644editdlrm
errors.rb47000644editdlrm
feature_flag.rb25070644editdlrm
fetcher.rb113680644editdlrm
friendly_errors.rb44660644editdlrm
gemdeps.rb4230644editdlrm
gem_helper.rb63750644editdlrm
gem_helpers.rb32690644editdlrm
gem_remote_fetcher.rb14940644editdlrm
gem_tasks.rb1380644editdlrm
gem_version_promoter.rb66640644editdlrm
graph.rb51120644editdlrm
index.rb53680644editdlrm
injector.rb89730644editdlrm
inline.rb28290644editdlrm
installer.rb118740644editdlrm
lazy_specification.rb36930644editdlrm
lockfile_generator.rb22310644editdlrm
lockfile_parser.rb84690644editdlrm
match_platform.rb6600644editdlrm
mirror.rb59560644editdlrm
plugin.rb98520644editdlrm
process_lock.rb7020644editdlrm
psyched_yaml.rb8540644editdlrm
remote_specification.rb35250644editdlrm
resolver.rb164220644editdlrm
retry.rb16500644editdlrm
rubygems_ext.rb42440644editdlrm
rubygems_gem_installer.rb35740644editdlrm
rubygems_integration.rb184760644editdlrm
ruby_dsl.rb7610644editdlrm
ruby_version.rb45540644editdlrm
runtime.rb109300644editdlrm
settings.rb116680644editdlrm
setup.rb8020644editdlrm
shared_helpers.rb115350644editdlrm
similarity_detector.rb18820644editdlrm
source.rb28140644editdlrm
source_list.rb56490644editdlrm
spec_set.rb54020644editdlrm
stub_specification.rb23280644editdlrm
ui.rb2550644editdlrm
uri_credentials_filter.rb12660644editdlrm
vendored_fileutils.rb1010644editdlrm
vendored_molinillo.rb1010644editdlrm
vendored_persistent.rb17070644editdlrm
vendored_thor.rb1800644editdlrm
vendored_uri.rb890644editdlrm
version.rb1790644editdlrm
version_ranges.rb38880644editdlrm
vlad.rb4680644editdlrm
worker.rb26510644editdlrm
yaml_serializer.rb24120644editdlrm
Edit: /opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/bundler/current_ruby.rb (2173B)
# frozen_string_literal: true module Bundler # Returns current version of Ruby # # @return [CurrentRuby] Current version of Ruby def self.current_ruby @current_ruby ||= CurrentRuby.new end class CurrentRuby KNOWN_MINOR_VERSIONS = %w[ 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 ].freeze KNOWN_MAJOR_VERSIONS = KNOWN_MINOR_VERSIONS.map {|v| v.split(".", 2).first }.uniq.freeze KNOWN_PLATFORMS = %w[ jruby maglev mingw mri mswin mswin64 rbx ruby truffleruby x64_mingw ].freeze def ruby? return true if Bundler::GemHelpers.generic_local_platform == Gem::Platform::RUBY !mswin? && (RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev" || RUBY_ENGINE == "truffleruby") end def mri? !mswin? && RUBY_ENGINE == "ruby" end def rbx? ruby? && RUBY_ENGINE == "rbx" end def jruby? RUBY_ENGINE == "jruby" end def maglev? RUBY_ENGINE == "maglev" end def truffleruby? RUBY_ENGINE == "truffleruby" end def mswin? Bundler::WINDOWS end def mswin64? Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mswin64" && Bundler.local_platform.cpu == "x64" end def mingw? Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mingw32" && Bundler.local_platform.cpu != "x64" end def x64_mingw? Bundler::WINDOWS && Bundler.local_platform != Gem::Platform::RUBY && Bundler.local_platform.os == "mingw32" && Bundler.local_platform.cpu == "x64" end (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 KNOWN_PLATFORMS.each do |platform| define_method(:"#{platform}_#{trimmed_version}?") do send(:"#{platform}?") && send(:"on_#{trimmed_version}?") end end end end end