X7ROOT File Manager
Current Path:
/opt/alt/ruby32/share/gems/gems/bundler-2.4.19/lib/bundler
opt
/
alt
/
ruby32
/
share
/
gems
/
gems
/
bundler-2.4.19
/
lib
/
bundler
/
ðŸ“
..
📄
build_metadata.rb
(1.2 KB)
📄
capistrano.rb
(883 B)
ðŸ“
cli
📄
cli.rb
(41 KB)
ðŸ“
compact_index_client
📄
compact_index_client.rb
(3.36 KB)
📄
constants.rb
(224 B)
📄
current_ruby.rb
(2.43 KB)
📄
definition.rb
(32.33 KB)
📄
dependency.rb
(3.11 KB)
📄
deployment.rb
(3.19 KB)
📄
deprecate.rb
(876 B)
📄
digest.rb
(2.16 KB)
📄
dsl.rb
(19.97 KB)
📄
endpoint_specification.rb
(3.65 KB)
📄
env.rb
(5.01 KB)
📄
environment_preserver.rb
(1.94 KB)
📄
errors.rb
(5.17 KB)
📄
feature_flag.rb
(1.79 KB)
ðŸ“
fetcher
📄
fetcher.rb
(11.19 KB)
📄
force_platform.rb
(557 B)
📄
friendly_errors.rb
(3.75 KB)
📄
gem_helper.rb
(6.89 KB)
📄
gem_helpers.rb
(4.08 KB)
📄
gem_tasks.rb
(138 B)
📄
gem_version_promoter.rb
(4.76 KB)
📄
graph.rb
(4.99 KB)
📄
index.rb
(4.14 KB)
📄
injector.rb
(10.08 KB)
📄
inline.rb
(2.47 KB)
ðŸ“
installer
📄
installer.rb
(10.25 KB)
📄
lazy_specification.rb
(5.35 KB)
📄
lockfile_generator.rb
(2.18 KB)
📄
lockfile_parser.rb
(7.01 KB)
ðŸ“
man
📄
match_metadata.rb
(290 B)
📄
match_platform.rb
(583 B)
📄
match_remote_metadata.rb
(863 B)
📄
mirror.rb
(5.78 KB)
ðŸ“
plugin
📄
plugin.rb
(11.25 KB)
📄
process_lock.rb
(686 B)
📄
remote_specification.rb
(3.71 KB)
ðŸ“
resolver
📄
resolver.rb
(14.62 KB)
📄
retry.rb
(1.61 KB)
📄
ruby_dsl.rb
(961 B)
📄
ruby_version.rb
(4.17 KB)
📄
rubygems_ext.rb
(10.88 KB)
📄
rubygems_gem_installer.rb
(5.24 KB)
📄
rubygems_integration.rb
(15.82 KB)
📄
runtime.rb
(10.15 KB)
📄
safe_marshal.rb
(597 B)
📄
self_manager.rb
(4.76 KB)
ðŸ“
settings
📄
settings.rb
(13.19 KB)
📄
setup.rb
(963 B)
📄
shared_helpers.rb
(10.76 KB)
📄
similarity_detector.rb
(1.84 KB)
ðŸ“
source
📄
source.rb
(2.98 KB)
📄
source_list.rb
(6.18 KB)
📄
source_map.rb
(2.17 KB)
📄
spec_set.rb
(5.08 KB)
📄
stub_specification.rb
(2.79 KB)
ðŸ“
templates
ðŸ“
ui
📄
ui.rb
(255 B)
📄
uri_credentials_filter.rb
(1.28 KB)
📄
uri_normalizer.rb
(715 B)
ðŸ“
vendor
📄
vendored_fileutils.rb
(101 B)
📄
vendored_persistent.rb
(270 B)
📄
vendored_pub_grub.rb
(99 B)
📄
vendored_thor.rb
(180 B)
📄
vendored_tsort.rb
(93 B)
📄
vendored_uri.rb
(89 B)
📄
version.rb
(260 B)
📄
vlad.rb
(468 B)
📄
worker.rb
(2.85 KB)
📄
yaml_serializer.rb
(2.36 KB)
Editing: dependency.rb
# frozen_string_literal: true require "rubygems/dependency" require_relative "shared_helpers" require_relative "rubygems_ext" module Bundler class Dependency < Gem::Dependency attr_reader :autorequire attr_reader :groups, :platforms, :gemfile, :path, :git, :github, :branch, :ref ALL_RUBY_VERSIONS = ((18..27).to_a + (30..33).to_a).freeze PLATFORM_MAP = { :ruby => [Gem::Platform::RUBY, ALL_RUBY_VERSIONS], :mri => [Gem::Platform::RUBY, ALL_RUBY_VERSIONS], :rbx => [Gem::Platform::RUBY], :truffleruby => [Gem::Platform::RUBY], :jruby => [Gem::Platform::JAVA, [18, 19]], :windows => [Gem::Platform::WINDOWS, ALL_RUBY_VERSIONS], :mswin => [Gem::Platform::MSWIN, ALL_RUBY_VERSIONS], :mswin64 => [Gem::Platform::MSWIN64, ALL_RUBY_VERSIONS - [18]], :mingw => [Gem::Platform::MINGW, ALL_RUBY_VERSIONS], :x64_mingw => [Gem::Platform::X64_MINGW, 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 initialize(name, version, options = {}, &blk) type = options["type"] || :runtime super(name, version, type) @autorequire = nil @groups = Array(options["group"] || :default).map(&:to_sym) @source = options["source"] @path = options["path"] @git = options["git"] @github = options["github"] @branch = options["branch"] @ref = options["ref"] @platforms = Array(options["platforms"]) @env = options["env"] @should_include = options.fetch("should_include", true) @gemfile = options["gemfile"] @force_ruby_platform = options["force_ruby_platform"] if options.key?("force_ruby_platform") @autorequire = Array(options["require"] || []) if options.key?("require") end # Returns the platforms this dependency is valid for, in the same order as # passed in the `valid_platforms` parameter def gem_platforms(valid_platforms) return [Gem::Platform::RUBY] if force_ruby_platform return valid_platforms if @platforms.empty? valid_platforms.select {|p| expanded_platforms.include?(GemHelpers.generic(p)) } end def expanded_platforms @expanded_platforms ||= @platforms.map {|pl| PLATFORM_MAP[pl] }.compact.flatten.uniq end def should_include? @should_include && current_env? && current_platform? end def current_env? return true unless @env if @env.is_a?(Hash) @env.all? do |key, val| ENV[key.to_s] && (val.is_a?(String) ? ENV[key.to_s] == val : ENV[key.to_s] =~ val) end else ENV[@env.to_s] end end def current_platform? return true if @platforms.empty? @platforms.any? do |p| Bundler.current_ruby.send("#{p}?") end end def to_lock out = super out << "!" if source out end def specific? super rescue NoMethodError requirement != ">= 0" end end end
Upload File
Create Folder