summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-27 01:40:07 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-27 01:40:07 +0000
commit035ef0a3475943d92f813a6449a33dc07b6d4e4c ()
tree67116d189b67fad9406635921f7aaf088e69495d
parentb9c485aa0d6f13303e7e9ab05c6d2b2496610a35 (diff)
* lib/rubygems: Update to RubyGems 1.8.6.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/rubygems.rb43
-rw-r--r--lib/rubygems/builder.rb6
-rw-r--r--lib/rubygems/command.rb6
-rw-r--r--lib/rubygems/command_manager.rb6
-rw-r--r--lib/rubygems/commands/build_command.rb6
-rw-r--r--lib/rubygems/commands/cert_command.rb6
-rw-r--r--lib/rubygems/commands/check_command.rb6
-rw-r--r--lib/rubygems/commands/cleanup_command.rb6
-rw-r--r--lib/rubygems/commands/contents_command.rb6
-rw-r--r--lib/rubygems/commands/dependency_command.rb6
-rw-r--r--lib/rubygems/commands/environment_command.rb6
-rw-r--r--lib/rubygems/commands/fetch_command.rb6
-rw-r--r--lib/rubygems/commands/generate_index_command.rb6
-rw-r--r--lib/rubygems/commands/help_command.rb6
-rw-r--r--lib/rubygems/commands/install_command.rb6
-rw-r--r--lib/rubygems/commands/list_command.rb6
-rw-r--r--lib/rubygems/commands/lock_command.rb6
-rw-r--r--lib/rubygems/commands/outdated_command.rb6
-rw-r--r--lib/rubygems/commands/owner_command.rb6
-rw-r--r--lib/rubygems/commands/pristine_command.rb6
-rw-r--r--lib/rubygems/commands/push_command.rb6
-rw-r--r--lib/rubygems/commands/query_command.rb6
-rw-r--r--lib/rubygems/commands/rdoc_command.rb6
-rw-r--r--lib/rubygems/commands/search_command.rb6
-rw-r--r--lib/rubygems/commands/server_command.rb6
-rw-r--r--lib/rubygems/commands/setup_command.rb6
-rw-r--r--lib/rubygems/commands/sources_command.rb6
-rw-r--r--lib/rubygems/commands/specification_command.rb6
-rw-r--r--lib/rubygems/commands/stale_command.rb6
-rw-r--r--lib/rubygems/commands/uninstall_command.rb6
-rw-r--r--lib/rubygems/commands/unpack_command.rb6
-rw-r--r--lib/rubygems/commands/update_command.rb6
-rw-r--r--lib/rubygems/commands/which_command.rb8
-rw-r--r--lib/rubygems/config_file.rb6
-rw-r--r--lib/rubygems/custom_require.rb6
-rw-r--r--lib/rubygems/defaults.rb6
-rw-r--r--lib/rubygems/dependency.rb6
-rw-r--r--lib/rubygems/dependency_installer.rb6
-rw-r--r--lib/rubygems/dependency_list.rb6
-rw-r--r--lib/rubygems/deprecate.rb6
-rw-r--r--lib/rubygems/doc_manager.rb6
-rw-r--r--lib/rubygems/errors.rb6
-rw-r--r--lib/rubygems/exceptions.rb6
-rw-r--r--lib/rubygems/ext.rb6
-rw-r--r--lib/rubygems/ext/builder.rb6
-rw-r--r--lib/rubygems/ext/configure_builder.rb6
-rw-r--r--lib/rubygems/ext/ext_conf_builder.rb6
-rw-r--r--lib/rubygems/ext/rake_builder.rb6
-rw-r--r--lib/rubygems/format.rb6
-rw-r--r--lib/rubygems/gem_openssl.rb6
-rw-r--r--lib/rubygems/gem_path_searcher.rb6
-rw-r--r--lib/rubygems/gem_runner.rb6
-rw-r--r--lib/rubygems/gemcutter_utilities.rb6
-rw-r--r--lib/rubygems/indexer.rb6
-rw-r--r--lib/rubygems/install_update_options.rb6
-rw-r--r--lib/rubygems/installer.rb8
-rw-r--r--lib/rubygems/installer_test_case.rb6
-rw-r--r--lib/rubygems/local_remote_options.rb6
-rw-r--r--lib/rubygems/mock_gem_ui.rb6
-rw-r--r--lib/rubygems/old_format.rb6
-rw-r--r--lib/rubygems/package.rb6
-rw-r--r--lib/rubygems/package/f_sync_dir.rb6
-rw-r--r--lib/rubygems/package/tar_header.rb6
-rw-r--r--lib/rubygems/package/tar_input.rb6
-rw-r--r--lib/rubygems/package/tar_output.rb6
-rw-r--r--lib/rubygems/package/tar_reader.rb6
-rw-r--r--lib/rubygems/package/tar_reader/entry.rb6
-rw-r--r--lib/rubygems/package/tar_test_case.rb6
-rw-r--r--lib/rubygems/package/tar_writer.rb6
-rw-r--r--lib/rubygems/package_task.rb6
-rw-r--r--lib/rubygems/path_support.rb15
-rw-r--r--lib/rubygems/platform.rb6
-rw-r--r--lib/rubygems/remote_fetcher.rb6
-rw-r--r--lib/rubygems/require_paths_builder.rb6
-rw-r--r--lib/rubygems/requirement.rb40
-rw-r--r--lib/rubygems/security.rb6
-rw-r--r--lib/rubygems/server.rb6
-rw-r--r--lib/rubygems/source_index.rb12
-rw-r--r--lib/rubygems/spec_fetcher.rb8
-rw-r--r--lib/rubygems/specification.rb6
-rw-r--r--lib/rubygems/test_case.rb6
-rw-r--r--lib/rubygems/test_utilities.rb6
-rw-r--r--lib/rubygems/text.rb6
-rw-r--r--lib/rubygems/uninstaller.rb6
-rw-r--r--lib/rubygems/user_interaction.rb14
-rw-r--r--lib/rubygems/validator.rb6
-rw-r--r--lib/rubygems/version.rb6
-rw-r--r--lib/rubygems/version_option.rb6
-rw-r--r--test/rubygems/bogussources.rb6
-rw-r--r--test/rubygems/fake_certlib/openssl.rb6
-rw-r--r--test/rubygems/fix_openssl_warnings.rb6
-rw-r--r--test/rubygems/foo/discover.rb6
-rw-r--r--test/rubygems/insure_session.rb6
-rw-r--r--test/rubygems/plugin/exception/rubygems_plugin.rb6
-rw-r--r--test/rubygems/plugin/load/rubygems_plugin.rb6
-rw-r--r--test/rubygems/plugin/standarderror/rubygems_plugin.rb6
-rw-r--r--test/rubygems/rubygems/commands/crash_command.rb6
-rw-r--r--test/rubygems/rubygems_plugin.rb6
-rw-r--r--test/rubygems/sff/discover.rb6
-rw-r--r--test/rubygems/simple_gem.rb6
-rw-r--r--test/rubygems/test_config.rb6
-rw-r--r--test/rubygems/test_gem.rb34
-rw-r--r--test/rubygems/test_gem_builder.rb6
-rw-r--r--test/rubygems/test_gem_command.rb6
-rw-r--r--test/rubygems/test_gem_command_manager.rb6
-rw-r--r--test/rubygems/test_gem_commands_build_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_cert_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_check_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_cleanup_command.rb8
-rw-r--r--test/rubygems/test_gem_commands_contents_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_dependency_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_environment_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_fetch_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_generate_index_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_help_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_install_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_list_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_lock_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_outdated_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_owner_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_pristine_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_push_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_query_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_server_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_sources_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_specification_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_stale_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_uninstall_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_unpack_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_update_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_which_command.rb30
-rw-r--r--test/rubygems/test_gem_config_file.rb6
-rw-r--r--test/rubygems/test_gem_dependency.rb6
-rw-r--r--test/rubygems/test_gem_dependency_installer.rb6
-rw-r--r--test/rubygems/test_gem_dependency_list.rb6
-rw-r--r--test/rubygems/test_gem_doc_manager.rb6
-rw-r--r--test/rubygems/test_gem_ext_configure_builder.rb6
-rw-r--r--test/rubygems/test_gem_ext_ext_conf_builder.rb6
-rw-r--r--test/rubygems/test_gem_ext_rake_builder.rb6
-rw-r--r--test/rubygems/test_gem_format.rb6
-rw-r--r--test/rubygems/test_gem_gem_path_searcher.rb6
-rw-r--r--test/rubygems/test_gem_gem_runner.rb6
-rw-r--r--test/rubygems/test_gem_gemcutter_utilities.rb6
-rw-r--r--test/rubygems/test_gem_indexer.rb6
-rw-r--r--test/rubygems/test_gem_install_update_options.rb6
-rw-r--r--test/rubygems/test_gem_installer.rb24
-rw-r--r--test/rubygems/test_gem_local_remote_options.rb6
-rw-r--r--test/rubygems/test_gem_package_tar_header.rb6
-rw-r--r--test/rubygems/test_gem_package_tar_input.rb6
-rw-r--r--test/rubygems/test_gem_package_tar_output.rb6
-rw-r--r--test/rubygems/test_gem_package_tar_reader.rb6
-rw-r--r--test/rubygems/test_gem_package_tar_reader_entry.rb6
-rw-r--r--test/rubygems/test_gem_package_tar_writer.rb6
-rw-r--r--test/rubygems/test_gem_package_task.rb6
-rw-r--r--test/rubygems/test_gem_path_support.rb15
-rw-r--r--test/rubygems/test_gem_platform.rb6
-rw-r--r--test/rubygems/test_gem_remote_fetcher.rb6
-rw-r--r--test/rubygems/test_gem_requirement.rb6
-rw-r--r--test/rubygems/test_gem_security.rb6
-rw-r--r--test/rubygems/test_gem_server.rb6
-rw-r--r--test/rubygems/test_gem_silent_ui.rb10
-rw-r--r--test/rubygems/test_gem_source_index.rb6
-rw-r--r--test/rubygems/test_gem_spec_fetcher.rb6
-rw-r--r--test/rubygems/test_gem_specification.rb6
-rw-r--r--test/rubygems/test_gem_stream_ui.rb24
-rw-r--r--test/rubygems/test_gem_text.rb6
-rw-r--r--test/rubygems/test_gem_uninstaller.rb8
-rw-r--r--test/rubygems/test_gem_validator.rb6
-rw-r--r--test/rubygems/test_gem_version.rb6
-rw-r--r--test/rubygems/test_gem_version_option.rb6
-rw-r--r--test/rubygems/test_kernel.rb6
172 files changed, 175 insertions, 1060 deletions
@@ -1,3 +1,7 @@
Wed Jul 27 09:27:59 2011 Martin Bosslet <[email protected]>
* test/openssl/test_pkcs12.rb: Add test and intermediate certificates.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- ruby -*-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
@@ -124,7 +118,7 @@ require "rubygems/deprecate"
# -The RubyGems Team
module Gem
- VERSION = '1.8.5.1'
##
# Raised when RubyGems is unable to load or activate a gem. Contains the
@@ -426,15 +420,15 @@ module Gem
def self.each_load_path(partials)
partials.each do |gp|
base = File.basename gp
- specfn = dir.specifications.add(base + ".gemspec")
- if specfn.exist?
- spec = eval(specfn.read)
spec.require_paths.each do |rp|
- yield(gp.add(rp))
end
else
- filename = dir.add(gp, 'lib')
- yield(filename) if filename.exist?
end
end
end
@@ -589,7 +583,7 @@ module Gem
Gem.path.each do |gemdir|
each_load_path(latest_partials(gemdir)) do |load_path|
- result << gemdir.add(load_path).expand_path
end
end
@@ -644,10 +638,23 @@ module Gem
# Loads YAML, preferring Psych
def self.load_yaml
- require 'psych'
- rescue ::LoadError
- ensure
- require 'yaml'
end
##
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/builder'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/security'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/version_option'
require 'rubygems/validator'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/dependency_list'
require 'rubygems/uninstaller'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/version_option'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/version_option'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
class Gem::Commands::EnvironmentCommand < Gem::Command
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/version_option'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/indexer'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
class Gem::Commands::HelpCommand < Gem::Command
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/doc_manager'
require 'rubygems/install_update_options'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/commands/query_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
class Gem::Commands::LockCommand < Gem::Command
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/spec_fetcher'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/gemcutter_utilities'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/format'
require 'rubygems/installer'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/gemcutter_utilities'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/spec_fetcher'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/version_option'
require 'rubygems/doc_manager'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/commands/query_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/server'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
##
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/remote_fetcher'
require 'rubygems/spec_fetcher'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/version_option'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
class Gem::Commands::StaleCommand < Gem::Command
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/version_option'
require 'rubygems/uninstaller'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/installer'
require 'rubygems/version_option'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
require 'rubygems/command_manager'
require 'rubygems/install_update_options'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command'
class Gem::Commands::WhichCommand < Gem::Command
@@ -66,7 +60,7 @@ class Gem::Commands::WhichCommand < Gem::Command
dirs.each do |dir|
Gem.suffixes.each do |ext|
full_path = File.join dir, "#{package_name}#{ext}"
- if File.exist? full_path then
result << full_path
return result unless options[:show_all]
end
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
module Gem
# TODO: move this whole file back into rubygems.rb
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require "rubygems/requirement"
##
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems'
require 'rubygems/dependency_list'
require 'rubygems/installer'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
##
# Provides a single method +deprecate+ to be used to declare when
# something is going away.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
class Gem::ErrorReason; end
# Generated when trying to lookup a gem to indicate that the gem
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
##
# Base exception class for RubyGems. All exception raised by RubyGems are a
# subclass of this one.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require "rubygems"
require "rubygems/deprecate"
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/remote_fetcher'
module Gem::GemcutterUtilities
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems'
require 'rubygems/format'
require 'time'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -439,7 +433,7 @@ class Gem::Installer
end
def check_that_user_bin_dir_is_in_path
- user_bin_dir = File.join gem_home, "bin"
unless ENV['PATH'].split(File::PATH_SEPARATOR).include? user_bin_dir then
unless self.class.path_warning then
alert_warning "You don't have #{user_bin_dir} in your PATH,\n\t gem executables will not run."
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/installer'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'stringio'
require 'rubygems/user_interaction'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- coding: utf-8 -*-
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- coding: utf-8 -*-
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- coding: utf-8 -*-
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- coding: iso-8859-1 -*-
#++
# Copyright (C) 2004 Mauricio Julio Fern�ndez Pradier
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- coding: utf-8 -*-
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- coding: utf-8 -*-
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- coding: utf-8 -*-
#++
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/package'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# -*- coding: utf-8 -*-
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
# Copyright (c) 2003, 2004 Jim Weirich, 2009 Eric Hodel
#
# Permission is hereby granted, free of charge, to any person obtaining
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
##
#
# Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings
@@ -28,6 +22,11 @@ class Gem::PathSupport
# note 'env' vs 'ENV'...
@home = env["GEM_HOME"] || ENV["GEM_HOME"] || Gem.default_dir
self.path = env["GEM_PATH"] || ENV["GEM_PATH"]
end
@@ -68,8 +67,8 @@ class Gem::PathSupport
else
gem_path = Gem.default_path + [@home]
- if defined?(Gem::APPLE_GEM_HOME)
- gem_path << Gem::APPLE_GEM_HOME
end
end
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require "rubygems/deprecate"
##
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems'
require 'rubygems/user_interaction'
require 'uri'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems'
# TODO: remove after 1.9.1 dropped
@@ -1,11 +1,24 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require "rubygems/version"
##
# A Requirement is a set of one or more version restrictions. It supports a
# few (<tt>=, !=, >, <, >=, <=, ~></tt>) different restriction operators.
@@ -116,11 +129,15 @@ class Gem::Requirement
end
def marshal_dump # :nodoc:
[@requirements]
end
def marshal_load array # :nodoc:
@requirements = array[0]
end
def prerelease?
@@ -160,6 +177,17 @@ class Gem::Requirement
def <=> other # :nodoc:
to_s <=> other.to_s
end
end
# :stopdoc:
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'webrick'
require 'zlib'
require 'erb'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -199,8 +193,10 @@ class Gem::SourceIndex
# Add gem specifications to the source index.
def add_specs(*gem_specs)
- gem_specs.each do |spec|
- add_spec spec
end
end
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/remote_fetcher'
require 'rubygems/user_interaction'
require 'rubygems/errors'
@@ -173,7 +167,7 @@ class Gem::SpecFetcher
found.each do |source_uri, specs|
uri_str = source_uri.to_s
- specs_and_sources.push(*specs.map { |spec| [spec, uri_str] })
end
[specs_and_sources, errors]
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
at_exit { $SAFE = 1 }
if defined? Gem::QuickLoader
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'tempfile'
require 'rubygems'
require 'rubygems/remote_fetcher'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems'
##
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -142,8 +136,12 @@ class Gem::StreamUI
end
def tty?
- @usetty && @ins.tty?
- end
##
# Choose from a list of options. +question+ is a prompt displayed above
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
##
# The Version class processes string versions into comparable
# values. A version string should normally be a series of numbers
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
##
# HACK: this drives me BONKERS
@@ -1,6 +0,0 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems'
def install_session
@@ -1,8 +1,2 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
TestGem::TEST_PLUGIN_EXCEPTION = :loaded
raise Exception.new('boom') \ No newline at end of file
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
class TestGem
TEST_PLUGIN_LOAD = :loaded
end
@@ -1,8 +1,2 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
TestGem::TEST_PLUGIN_STANDARDERROR = :loaded
raise StandardError.new('boom') \ No newline at end of file
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
class Gem::Commands::CrashCommand < Gem::Command
raise "crash"
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/command_manager'
##
@@ -1,6 +0,0 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
SIMPLE_GEM = <<-GEMDATA
MD5SUM = "989bf34a1cbecd52e0ea66b662b3a405"
if $0 == __FILE__
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems'
require 'rubygems/gem_openssl'
@@ -718,7 +712,7 @@ class TestGem < Gem::TestCase
def test_self_path_default
util_path
- if defined? APPLE_GEM_HOME
orig_APPLE_GEM_HOME = APPLE_GEM_HOME
Object.send :remove_const, :APPLE_GEM_HOME
end
@@ -727,7 +721,7 @@ class TestGem < Gem::TestCase
assert_equal [Gem.default_path, Gem.dir].flatten.uniq, Gem.path
ensure
- Object.const_set :APPLE_GEM_HOME, orig_APPLE_GEM_HOME
end
unless win_platform?
@@ -736,11 +730,14 @@ class TestGem < Gem::TestCase
Gem.clear_paths
apple_gem_home = File.join @tempdir, 'apple_gem_home'
- Gem.const_set :APPLE_GEM_HOME, apple_gem_home
assert_includes Gem.path, apple_gem_home
ensure
- Gem.send :remove_const, :APPLE_GEM_HOME
end
def test_self_path_APPLE_GEM_HOME_GEM_PATH
@@ -1074,6 +1071,23 @@ class TestGem < Gem::TestCase
assert_equal :loaded, TEST_PLUGIN_EXCEPTION rescue nil
end
def with_plugin(path)
test_plugin_path = File.expand_path("test/rubygems/plugin/#{path}",
@@project_dir)
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/builder'
require 'rubygems/package'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/command_manager'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/build_command'
require 'rubygems/format'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/cert_command'
require 'rubygems/fix_openssl_warnings' if RUBY_VERSION < "1.9"
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/check_command'
@@ -1,14 +1,8 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/cleanup_command'
class TestGemCommandsCleanupCommand < Gem::TestCase
-
def setup
super
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/contents_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/dependency_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/environment_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/package'
require 'rubygems/security'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/indexer'
require 'rubygems/commands/generate_index_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require "rubygems"
require "rubygems/test_case"
require "rubygems/commands/help_command"
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/install_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/list_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/lock_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/outdated_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/owner_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/pristine_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/push_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/query_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/server_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/sources_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/specification_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/stale_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/installer_test_case'
require 'rubygems/commands/uninstall_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/unpack_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/update_command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/commands/which_command'
@@ -28,24 +22,38 @@ class TestGemCommandsWhichCommand < Gem::TestCase
assert_equal '', @ui.error
end
def test_execute_one_missing
# TODO: this test fails in isolation
util_foo_bar
- @cmd.handle_options %w[foo_bar missinglib]
use_ui @ui do
@cmd.execute
end
assert_equal "#{@foo_bar.full_gem_path}/lib/foo_bar.rb\n", @ui.output
- assert_match %r%Can.t find ruby library file or shared library missinglib\n%,
@ui.error
end
def test_execute_missing
- @cmd.handle_options %w[missinglib]
use_ui @ui do
assert_raises Gem::MockGemUi::TermError do
@@ -54,12 +62,12 @@ class TestGemCommandsWhichCommand < Gem::TestCase
end
assert_equal '', @ui.output
- assert_match %r%Can.t find ruby library file or shared library missinglib\n%,
@ui.error
end
def util_foo_bar
- files = %w[lib/foo_bar.rb Rakefile]
@foo_bar = quick_spec 'foo_bar' do |gem|
gem.files = files
end
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/config_file'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/dependency'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/dependency_installer'
require 'rubygems/security'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/dependency_list'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/doc_manager'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/ext'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/ext'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/ext'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/package/tar_test_case'
require 'rubygems/simple_gem'
require 'rubygems/format'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/gem_path_searcher'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/gem_runner'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems'
require 'rubygems/command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/indexer'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/installer_test_case'
require 'rubygems/install_update_options'
require 'rubygems/command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/installer_test_case'
class TestGemInstaller < Gem::InstallerTestCase
@@ -213,6 +207,24 @@ load Gem.bin_path('a', 'executable', version)
assert_match %r|generated by RubyGems|, wrapper
end
def test_generate_bin_script
@installer.wrappers = true
util_make_exec
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/local_remote_options'
require 'rubygems/command'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/package/tar_test_case'
require 'rubygems/package'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/package/tar_test_case'
require 'rubygems/package/tar_input'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/package/tar_test_case'
require 'rubygems/package/tar_output'
require 'rubygems/security'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/package/tar_test_case'
require 'rubygems/package'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/package/tar_test_case'
require 'rubygems/package'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/package/tar_test_case'
require 'rubygems/package/tar_writer'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems'
require 'rubygems/package_task'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems'
require 'fileutils'
@@ -34,6 +28,15 @@ class TestGemPathSupport < Gem::TestCase
assert_equal expected, ps.path
end
def test_initialize_path
ps = Gem::PathSupport.new "GEM_PATH" => %W[#{@tempdir}/foo #{@tempdir}/bar]
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/platform'
require 'rbconfig'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'ostruct'
require 'webrick'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require "rubygems/requirement"
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/security'
require 'rubygems/fix_openssl_warnings' if RUBY_VERSION < "1.9"
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/server'
require 'stringio'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/user_interaction'
require 'timeout'
@@ -55,7 +49,7 @@ class TestGemSilentUI < Gem::TestCase
assert_empty out, 'No output'
assert_empty err, 'No output'
-
out, err = capture_io do
use_ui @sui do
value = @sui.ask_yes_no 'Problem?', true
@@ -66,7 +60,7 @@ class TestGemSilentUI < Gem::TestCase
assert_empty err, 'No output'
assert value, 'Value is true'
-
out, err = capture_io do
use_ui @sui do
value = @sui.ask_yes_no 'Problem?', false
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/source_index'
require 'rubygems/config_file'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/spec_fetcher'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'stringio'
require 'rubygems/specification'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/user_interaction'
require 'timeout'
@@ -41,6 +35,9 @@ class TestGemStreamUI < Gem::TestCase
end
def test_ask
timeout(1) do
expected_answer = "Arthur, King of the Britons"
@in.string = "#{expected_answer}\n"
@@ -50,6 +47,9 @@ class TestGemStreamUI < Gem::TestCase
end
def test_ask_no_tty
@in.tty = false
timeout(0.1) do
@@ -59,6 +59,9 @@ class TestGemStreamUI < Gem::TestCase
end
def test_ask_for_password
timeout(1) do
expected_answer = "Arthur, King of the Britons"
@in.string = "#{expected_answer}\n"
@@ -68,6 +71,9 @@ class TestGemStreamUI < Gem::TestCase
end
def test_ask_for_password_no_tty
@in.tty = false
timeout(0.1) do
@@ -77,6 +83,9 @@ class TestGemStreamUI < Gem::TestCase
end
def test_ask_yes_no_no_tty_with_default
@in.tty = false
timeout(0.1) do
@@ -89,6 +98,9 @@ class TestGemStreamUI < Gem::TestCase
end
def test_ask_yes_no_no_tty_without_default
@in.tty = false
timeout(0.1) do
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require "rubygems/text"
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/installer_test_case'
require 'rubygems/uninstaller'
@@ -216,7 +210,7 @@ class TestGemUninstaller < Gem::InstallerTestCase
def test_uninstall_selection_greater_than_one
util_make_gems
-
list = Gem::Specification.find_all_by_name('a')
uninstaller = Gem::Uninstaller.new('a')
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require "rubygems/simple_gem"
require 'rubygems/validator'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require "rubygems/version"
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
require 'rubygems/command'
require 'rubygems/version_option'
@@ -1,9 +1,3 @@
-######################################################################
-# This file is imported from the rubygems project.
-# DO NOT make modifications in this repo. They _will_ be reverted!
-# File a instead and assign it to Ryan Davis or Eric Hodel.
-######################################################################
-
require 'rubygems/test_case'
class TestKernel < Gem::TestCase