PATH: //opt/alt/ruby33/share/rubygems/rubygems/resolver
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 activation_request.rb
↓
X
📁 api_set/
X
📄 api_set.rb
↓
X
📄 api_specification.rb
↓
X
📄 best_set.rb
↓
X
📄 composed_set.rb
↓
X
📄 conflict.rb
↓
X
📄 current_set.rb
↓
X
📄 dependency_request.rb
↓
X
📄 git_set.rb
↓
X
📄 git_specification.rb
↓
X
📄 index_set.rb
↓
X
📄 index_specification.rb
↓
X
📄 installed_specification.rb
↓
X
📄 installer_set.rb
↓
X
📄 local_specification.rb
↓
X
📄 lock_set.rb
↓
X
📄 lock_specification.rb
↓
X
📄 requirement_list.rb
↓
X
📄 set.rb
↓
X
📄 source_set.rb
↓
X
📄 spec_specification.rb
↓
X
📄 specification.rb
↓
X
📄 stats.rb
↓
X
📄 vendor_set.rb
↓
X
📄 vendor_specification.rb
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: source_set.rb
# frozen_string_literal: true ## # The SourceSet chooses the best available method to query a remote index. # # Kind off like BestSet but filters the sources for gems class Gem::Resolver::SourceSet < Gem::Resolver::Set ## # Creates a SourceSet for the given +sources+ or Gem::sources if none are # specified. +sources+ must be a Gem::SourceList. def initialize super() @links = {} @sets = {} end def find_all(req) # :nodoc: if set = get_set(req.dependency.name) set.find_all req else [] end end # potentially no-op def prefetch(reqs) # :nodoc: reqs.each do |req| if set = get_set(req.dependency.name) set.prefetch reqs end end end def add_source_gem(name, source) @links[name] = source end private def get_set(name) link = @links[name] @sets[link] ||= Gem::Source.new(link).dependency_resolver_set if link end end
SIMPAN PERUBAHAN