$96 GRAYBYTE WORDPRESS FILE MANAGER $43

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | 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//path_support.rb
##
#
# Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings
# to the rest of RubyGems.
#
class Gem::PathSupport
  ##
  # The default system path for managing Gems.
  attr_reader :home

  ##
  # Array of paths to search for Gems.
  attr_reader :path

  ##
  # Directory with spec cache
  attr_reader :spec_cache_dir # :nodoc:

  ##
  #
  # Constructor. Takes a single argument which is to be treated like a
  # hashtable, or defaults to ENV, the system environment.
  #
  def initialize(env=ENV)
    @env = env

    # note 'env' vs 'ENV'...
    @home     = env["GEM_HOME"] || ENV["GEM_HOME"] || Gem.default_dir

    if File::ALT_SEPARATOR then
      @home   = @home.gsub(File::ALT_SEPARATOR, File::SEPARATOR)
    end

    self.path = env["GEM_PATH"] || ENV["GEM_PATH"]

    @spec_cache_dir =
      env["GEM_SPEC_CACHE"] || ENV["GEM_SPEC_CACHE"] ||
        Gem.default_spec_cache_dir

    @spec_cache_dir = @spec_cache_dir.dup.untaint
  end

  private

  ##
  # Set the Gem home directory (as reported by Gem.dir).

  def home=(home)
    @home = home.to_s
  end

  ##
  # Set the Gem search path (as reported by Gem.path).

  def path=(gpaths)
    # FIX: it should be [home, *path], not [*path, home]

    gem_path = []

    # FIX: I can't tell wtf this is doing.
    gpaths ||= (ENV['GEM_PATH'] || "").empty? ? nil : ENV["GEM_PATH"]

    if gpaths
      if gpaths.kind_of?(Array)
        gem_path = gpaths.dup
      else
        gem_path = gpaths.split(Gem.path_separator)
      end

      if File::ALT_SEPARATOR then
        gem_path.map! do |this_path|
          this_path.gsub File::ALT_SEPARATOR, File::SEPARATOR
        end
      end

      gem_path << @home
    else
      gem_path = Gem.default_path + [@home]

      if defined?(APPLE_GEM_HOME)
        gem_path << APPLE_GEM_HOME
      end
    end

    @path = gem_path.uniq
  end
end


Current_dir [ NOT WRITEABLE ] Document_root [ 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