$27 GRAYBYTE WORDPRESS FILE MANAGER $91

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.36
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby25/lib64/ruby/2.5.0/rubygems/

HOME
Current File : /opt/alt/ruby25/lib64/ruby/2.5.0/rubygems//installer_test_case.rb
# frozen_string_literal: true
require 'rubygems/test_case'
require 'rubygems/installer'
require 'rubygems/deprecate'

class Gem::Installer

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :bin_dir

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :build_args

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :gem_dir

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :force

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :format

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :gem_home

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :env_shebang

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :ignore_dependencies

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :format_executable

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :security_policy

  ##
  # Available through requiring rubygems/installer_test_case

  attr_writer :wrappers
end

##
# A test case for Gem::Installer.

class Gem::InstallerTestCase < Gem::TestCase

  ##
  # Creates the following instance variables:
  #
  # @spec::
  #   a spec named 'a', intended for regular installs
  # @user_spec::
  #   a spec named 'b', intended for user installs
  #
  # @gem::
  #   the path to a built gem from @spec
  # @user_spec::
  #   the path to a built gem from @user_spec
  #
  # @installer::
  #   a Gem::Installer for the @spec that installs into @gemhome
  # @user_installer::
  #   a Gem::Installer for the @user_spec that installs into Gem.user_dir

  def setup
    super

    @spec = quick_gem 'a' do |spec|
      util_make_exec spec
    end

    @user_spec = quick_gem 'b' do |spec|
      util_make_exec spec
    end

    util_build_gem @spec
    util_build_gem @user_spec

    @gem = @spec.cache_file
    @user_gem = @user_spec.cache_file

    @installer      = util_installer @spec, @gemhome
    @user_installer = util_installer @user_spec, Gem.user_dir, :user

    Gem::Installer.path_warning = false
  end

  def util_gem_bindir spec = @spec # :nodoc:
    spec.bin_dir
  end

  def util_gem_dir spec = @spec # :nodoc:
    spec.gem_dir
  end

  extend Gem::Deprecate
  deprecate :util_gem_bindir, "@spec.bin_dir", 2016, 10
  deprecate :util_gem_dir, "@spec.gem_dir", 2016, 10

  ##
  # The path where installed executables live

  def util_inst_bindir
    File.join @gemhome, "bin"
  end

  ##
  # Adds an executable named "executable" to +spec+ with the given +shebang+.
  #
  # The executable is also written to the bin dir in @tmpdir and the installed
  # gem directory for +spec+.

  def util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby")
    spec.executables = %w[executable]
    spec.files << 'bin/executable'

    exec_path = spec.bin_file "executable"
    write_file exec_path do |io|
      io.puts shebang
    end

    bin_path = File.join @tempdir, "bin", "executable"
    write_file bin_path do |io|
      io.puts shebang
    end
  end

  ##
  # Builds the @spec gem and returns an installer for it.  The built gem
  # includes:
  #
  #   bin/executable
  #   lib/code.rb
  #   ext/a/mkrf_conf.rb

  def util_setup_gem(ui = @ui) # HACK fix use_ui to make this automatic
    @spec.files << File.join('lib', 'code.rb')
    @spec.extensions << File.join('ext', 'a', 'mkrf_conf.rb')

    Dir.chdir @tempdir do
      FileUtils.mkdir_p 'bin'
      FileUtils.mkdir_p 'lib'
      FileUtils.mkdir_p File.join('ext', 'a')
      File.open File.join('bin', 'executable'), 'w' do |f|
        f.puts "raise 'ran executable'"
      end
      File.open File.join('lib', 'code.rb'), 'w' do |f| f.puts '1' end
      File.open File.join('ext', 'a', 'mkrf_conf.rb'), 'w' do |f|
        f << <<-EOF
          File.open 'Rakefile', 'w' do |rf| rf.puts "task :default" end
        EOF
      end

      yield @spec if block_given?

      use_ui ui do
        FileUtils.rm_f @gem

        @gem = Gem::Package.build @spec
      end
    end

    @installer = Gem::Installer.at @gem
  end

  ##
  # Creates an installer for +spec+ that will install into +gem_home+.  If
  # +user+ is true a user-install will be performed.

  def util_installer(spec, gem_home, user=false)
    Gem::Installer.at(spec.cache_file,
                       :install_dir => gem_home,
                       :user_install => user)
  end

end



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.47 PM
root / root
0755
commands
--
3 Mar 2024 10.47 PM
root / linksafe
0755
core_ext
--
3 Mar 2024 10.47 PM
root / linksafe
0755
ext
--
3 Mar 2024 10.47 PM
root / linksafe
0755
package
--
3 Mar 2024 10.47 PM
root / linksafe
0755
request
--
3 Mar 2024 10.47 PM
root / linksafe
0755
request_set
--
3 Mar 2024 10.47 PM
root / linksafe
0755
resolver
--
3 Mar 2024 10.47 PM
root / linksafe
0755
security
--
3 Mar 2024 10.47 PM
root / linksafe
0755
source
--
3 Mar 2024 10.47 PM
root / linksafe
0755
ssl_certs
--
3 Mar 2024 10.47 PM
root / linksafe
0755
util
--
3 Mar 2024 10.47 PM
root / linksafe
0755
available_set.rb
3.02 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
basic_specification.rb
7.359 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
bundler_version_finder.rb
2.689 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
command.rb
13.977 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
command_manager.rb
4.773 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
compatibility.rb
1.655 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
config_file.rb
12.508 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
defaults.rb
4.456 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
dependency.rb
8.383 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
dependency_installer.rb
14.165 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
dependency_list.rb
5.547 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
deprecate.rb
1.73 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
doctor.rb
3.064 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
errors.rb
4.624 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
exceptions.rb
6.386 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
ext.rb
0.45 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
gem_runner.rb
2.178 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
gemcutter_utilities.rb
4.373 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
indexer.rb
11.056 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
install_default_message.rb
0.329 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
install_message.rb
0.304 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
install_update_options.rb
6.893 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
installer.rb
25.11 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
installer_test_case.rb
4.414 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
local_remote_options.rb
3.404 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
mock_gem_ui.rb
1.376 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
name_tuple.rb
2.406 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
package.rb
16.474 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
package_task.rb
3.798 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
path_support.rb
1.725 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
platform.rb
6.245 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
psych_additions.rb
0.293 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
psych_tree.rb
0.774 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
rdoc.rb
7.735 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
remote_fetcher.rb
11.673 KB
26 Jul 2023 2.54 PM
root / linksafe
0644
request.rb
8.662 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
request_set.rb
10.772 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
requirement.rb
6.592 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
resolver.rb
9.526 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
safe_yaml.rb
1.153 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
security.rb
21.128 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
security_option.rb
1.062 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
server.rb
22.719 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
source.rb
5.425 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
source_list.rb
2.527 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
source_local.rb
0.269 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
source_specific_file.rb
0.266 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
spec_fetcher.rb
6.47 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
specification.rb
82.559 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
stub_specification.rb
4.864 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
syck_hack.rb
2.117 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
test_case.rb
40.33 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
test_utilities.rb
8.635 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
text.rb
1.878 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
uninstaller.rb
8.735 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
uri_formatter.rb
0.773 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
user_interaction.rb
14.538 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
util.rb
2.567 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
validator.rb
4.229 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
version.rb
11.969 KB
5 Apr 2021 11.46 AM
root / linksafe
0644
version_option.rb
2.028 KB
5 Apr 2021 11.46 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF