$17 GRAYBYTE WORDPRESS FILE MANAGER $24

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby22/lib64/ruby/2.2.0/rubygems/

HOME
Current File : /opt/alt/ruby22/lib64/ruby/2.2.0/rubygems//source_list.rb
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.add '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
    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


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.53 PM
root / root
0755
commands
--
3 Mar 2024 10.43 PM
root / linksafe
0755
core_ext
--
3 Mar 2024 10.43 PM
root / linksafe
0755
ext
--
3 Mar 2024 10.43 PM
root / linksafe
0755
package
--
3 Mar 2024 10.43 PM
root / linksafe
0755
request
--
3 Mar 2024 10.43 PM
root / linksafe
0755
request_set
--
3 Mar 2024 10.43 PM
root / linksafe
0755
resolver
--
3 Mar 2024 10.43 PM
root / linksafe
0755
security
--
3 Mar 2024 10.43 PM
root / linksafe
0755
source
--
3 Mar 2024 10.43 PM
root / linksafe
0755
ssl_certs
--
3 Mar 2024 10.43 PM
root / linksafe
0755
util
--
3 Mar 2024 10.43 PM
root / linksafe
0755
available_set.rb
2.99 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
basic_specification.rb
6.659 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
command.rb
13.552 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
command_manager.rb
4.629 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
compatibility.rb
1.626 KB
25 Dec 2014 3.37 AM
root / linksafe
0644
config_file.rb
12.573 KB
14 Dec 2017 1.50 PM
root / linksafe
0644
defaults.rb
4.014 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
dependency.rb
8.483 KB
17 Nov 2014 3.55 AM
root / linksafe
0644
dependency_installer.rb
13.812 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
dependency_list.rb
5.44 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
deprecate.rb
1.701 KB
7 Jan 2014 1.19 AM
root / linksafe
0644
doctor.rb
3.035 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
errors.rb
3.121 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
exceptions.rb
6.199 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
ext.rb
0.421 KB
16 Oct 2013 6.00 AM
root / linksafe
0644
gem_runner.rb
1.957 KB
14 Sep 2013 8.59 AM
root / linksafe
0644
gemcutter_utilities.rb
3.943 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
indexer.rb
13.025 KB
17 Nov 2014 3.55 AM
root / linksafe
0644
install_default_message.rb
0.3 KB
9 Jul 2013 11.21 PM
root / linksafe
0644
install_message.rb
0.274 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
install_update_options.rb
5.854 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
installer.rb
22.482 KB
10 Sep 2017 1.10 AM
root / linksafe
0644
installer_test_case.rb
4.233 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
local_remote_options.rb
3.369 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
mock_gem_ui.rb
1.347 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
name_tuple.rb
2.373 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
package.rb
14.874 KB
16 Feb 2018 4.27 PM
root / linksafe
0644
package_task.rb
3.769 KB
26 Aug 2013 8.24 PM
root / linksafe
0644
path_support.rb
1.82 KB
14 Sep 2013 8.59 AM
root / linksafe
0644
platform.rb
6.131 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
psych_additions.rb
0.263 KB
20 Oct 2013 1.33 AM
root / linksafe
0644
psych_tree.rb
0.745 KB
9 Jul 2013 10.34 PM
root / linksafe
0644
rdoc.rb
7.705 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
remote_fetcher.rb
11.091 KB
10 Sep 2017 1.10 AM
root / linksafe
0644
request.rb
6.729 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
request_set.rb
9.397 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
requirement.rb
6.198 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
resolver.rb
13.348 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
safe_yaml.rb
1.108 KB
14 Dec 2017 1.50 PM
root / linksafe
0644
security.rb
20.957 KB
20 Jan 2014 4.57 AM
root / linksafe
0644
server.rb
22.927 KB
16 Feb 2018 4.27 PM
root / linksafe
0644
source.rb
5.206 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
source_list.rb
2.47 KB
19 Nov 2013 12.34 AM
root / linksafe
0644
source_local.rb
0.108 KB
14 Sep 2013 8.59 AM
root / linksafe
0644
source_specific_file.rb
0.091 KB
14 Sep 2013 8.59 AM
root / linksafe
0644
spec_fetcher.rb
6.314 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
specification.rb
72.877 KB
16 Feb 2018 4.27 PM
root / linksafe
0644
stub_specification.rb
3.556 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
syck_hack.rb
2.088 KB
19 Dec 2013 10.09 PM
root / linksafe
0644
test_case.rb
37.488 KB
22 Apr 2016 9.15 AM
root / linksafe
0644
test_utilities.rb
8.438 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
text.rb
1.896 KB
10 Sep 2017 1.10 AM
root / linksafe
0644
uninstaller.rb
8.717 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
uri_formatter.rb
0.744 KB
20 Oct 2013 1.33 AM
root / linksafe
0644
user_interaction.rb
14.644 KB
17 Nov 2014 3.55 AM
root / linksafe
0644
util.rb
2.594 KB
3 Aug 2014 1.33 PM
root / linksafe
0644
validator.rb
4.185 KB
30 Nov 2013 11.27 PM
root / linksafe
0644
version.rb
10.916 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
version_option.rb
1.827 KB
14 Sep 2013 8.59 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF