Exploit databaseDownload repository ZIP
GH-08b4e46992fde5efb0a6e5e3983b5d84
jas502n/cve-2019-12384
Sources for CVE-2019-12384
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files73
jas502n/cve-2019-12384Revision 20605173b861
- ↑..Parent directory
- commands/
- core_ext/
- defaults/
- ext/
- package/
- request/
- request_set/
- resolver/
- security/
- source/
- ssl_certs/
- util/
- available_set.rb
- basic_specification.rb
- bundler_version_finder.rb
- command.rb
- command_manager.rb
- compatibility.rb
- config_file.rb
- defaults.rb
- dependency.rb
- dependency_installer.rb
- dependency_list.rb
- deprecate.rb
- doctor.rb
- errors.rb
- exceptions.rb
- ext.rb
- gem_runner.rb
- gemcutter_utilities.rb
- indexer.rb
- install_default_message.rb
- install_message.rb
- install_update_options.rb
- installer.rb
- installer_test_case.rb
- local_remote_options.rb
- mock_gem_ui.rb
- name_tuple.rb
- package.rb
- package_task.rb
- path_support.rb
- platform.rb
- psych_additions.rb
- psych_tree.rb
- rdoc.rb
- remote_fetcher.rb
- request.rb
- request_set.rb
- requirement.rb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
jruby-9.2.7.0/lib/ruby/stdlib/rubygems/source_list.rb
Ruby · 2,588 bytes# frozen_string_literal: true
require 'rubygems/source'
##
# The SourceList represents the sources rubygems has been configured to use.
# A source may be created from an array of sources:
#
# Gem::SourceList.from %w[https://rubygems.example https://internal.example]
#
# Or by adding them:
#
# sources = Gem::SourceList.new
# sources << 'https://rubygems.example'
#
# The most common way to get a SourceList is Gem.sources.
class Gem::SourceList
include Enumerable
##
# Creates a new SourceList
def initialize
@sources = []
end
##
# The sources in this list
attr_reader :sources
##
# Creates a new SourceList from an array of sources.
def self.from(ary)
list = new
list.replace ary
return list
end
def initialize_copy(other) # :nodoc:
@sources = @sources.dup
end
##
# Appends +obj+ to the source list which may be a Gem::Source, URI or URI
# String.
def <<(obj)
src = case obj
when URI
Gem::Source.new(obj)
when Gem::Source
obj
else
Gem::Source.new(URI.parse(obj))
end
@sources << src unless @sources.include?(src)
src
end
##
# Replaces this SourceList with the sources in +other+ See #<< for
# acceptable items in +other+.
def replace(other)
clear
other.each do |x|
self << x
end
self
end
##
# Removes all sources from the SourceList.
def clear
@sources.clear
end
##
# Yields each source URI in the list.
def each
@sources.each { |s| yield s.uri.to_s }
end
##
# Yields each source in the list.
def each_source(&b)
@sources.each(&b)
end
##
# Returns true if there are no sources in this SourceList.
def empty?
@sources.empty?
end
def == other # :nodoc:
to_a == other
end
##
# Returns an Array of source URI Strings.
def to_a
@sources.map { |x| x.uri.to_s }
end
alias_method :to_ary, :to_a
##
# Returns the first source in the list.
def first
@sources.first
end
##
# Returns true if this source list includes +other+ which may be a
# Gem::Source or a source URI.
def include?(other)
if other.kind_of? Gem::Source
@sources.include? other
else
@sources.find { |x| x.uri.to_s == other.to_s }
end
end
##
# Deletes +source+ from the source list which may be a Gem::Source or a URI.
def delete source
if source.kind_of? Gem::Source
@sources.delete source
else
@sources.delete_if { |x| x.uri.to_s == source.to_s }
end
end
end