1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/rubygems: use require_relative.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-10-03 15:59:29 +00:00
parent 78eaef0f8e
commit 19bad26c5a
67 changed files with 70 additions and 80 deletions

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/installer'
class Gem::Installer

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/package'
class TarTestCase < RubyGemTestCase

View file

@ -34,7 +34,7 @@ end
require 'rdoc/rdoc'
require File.join(File.expand_path(File.dirname(__FILE__)), 'mockgemui')
require_relative 'mockgemui'
module Gem
def self.searcher=(searcher)

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rbconfig'
require 'rubygems'

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems'
require 'rubygems/gem_openssl'
require 'rubygems/installer'

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/builder'
class TestGemBuilder < RubyGemTestCase

View file

@ -5,7 +5,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/command'
class Gem::Command

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/command_manager'
class TestGemCommandManager < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/build_command'
require 'rubygems/format'

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/cert_command'

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/check_command'
class TestGemCommandsCheckCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/contents_command'
class TestGemCommandsContentsCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/dependency_command'
class TestGemCommandsDependencyCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/environment_command'
class TestGemCommandsEnvironmentCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/package'
require 'rubygems/security'
require 'rubygems/commands/fetch_command'

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/indexer'
require 'rubygems/commands/generate_index_command'

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/install_command'
class TestGemCommandsInstallCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/list_command'
class TestGemCommandsListCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/lock_command'
class TestGemCommandsLockCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/indexer'
require 'rubygems/commands/mirror_command'

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/outdated_command'
class TestGemCommandsOutdatedCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/pristine_command'
class TestGemCommandsPristineCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/query_command'
class TestGemCommandsQueryCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/server_command'
class TestGemCommandsServerCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/sources_command'
class TestGemCommandsSourcesCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/specification_command'
class TestGemCommandsSpecificationCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/stale_command'
class TestGemCommandsStaleCommand < RubyGemTestCase

View file

@ -1,6 +1,5 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_installer_test_case')
require_relative 'gemutilities'
require_relative 'gem_installer_test_case'
require 'rubygems/commands/uninstall_command'
class TestGemCommandsUninstallCommand < GemInstallerTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/unpack_command'
class TestGemCommandsUnpackCommand < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/commands/update_command'
class TestGemCommandsUpdateCommand < RubyGemTestCase

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/config_file'
class TestGemConfigFile < RubyGemTestCase

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/version'
class TestGemDependency < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/dependency_installer'
class TestGemDependencyInstaller < RubyGemTestCase

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/dependency_list'
class TestGemDependencyList < RubyGemTestCase

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require "rubygems/digest/md5"
require "rubygems/digest/sha1"
require "rubygems/digest/sha2"

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/doc_manager'
class TestGemDocManager < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/ext'
class TestGemExtConfigureBuilder < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/ext'
class TestGemExtExtConfBuilder < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/ext'
class TestGemExtRakeBuilder < RubyGemTestCase

View file

@ -4,8 +4,8 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require File.join(File.expand_path(File.dirname(__FILE__)), 'simple_gem')
require_relative 'gemutilities'
require_relative 'simple_gem'
require 'rubygems/format'
class TestGemFormat < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/gem_path_searcher'
class Gem::GemPathSearcher

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/gem_runner'
class TestGemGemRunner < RubyGemTestCase

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/indexer'

View file

@ -1,5 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_installer_test_case')
require_relative 'gem_installer_test_case'
require 'rubygems/install_update_options'
require 'rubygems/command'

View file

@ -4,8 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_installer_test_case')
require_relative 'gem_installer_test_case'
class TestGemInstaller < GemInstallerTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/local_remote_options'
require 'rubygems/command'

View file

@ -4,8 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_package_tar_test_case')
require_relative 'gem_package_tar_test_case'
require 'rubygems/package'
class TestGemPackageTarHeader < TarTestCase

View file

@ -4,8 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_package_tar_test_case')
require_relative 'gem_package_tar_test_case'
require 'rubygems/package/tar_input'
class TestGemPackageTarInput < TarTestCase

View file

@ -4,8 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_package_tar_test_case')
require_relative 'gem_package_tar_test_case'
require 'rubygems/package/tar_output'
class TestGemPackageTarOutput < TarTestCase

View file

@ -4,8 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_package_tar_test_case')
require_relative 'gem_package_tar_test_case'
require 'rubygems/package'
class TestGemPackageTarReader < TarTestCase

View file

@ -4,8 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_package_tar_test_case')
require_relative 'gem_package_tar_test_case'
require 'rubygems/package'
class TestGemPackageTarReaderEntry < TarTestCase

View file

@ -4,8 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_package_tar_test_case')
require_relative 'gem_package_tar_test_case'
require 'rubygems/package/tar_writer'
class TestTarWriter < TarTestCase

View file

@ -19,7 +19,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems'
require 'rubygems/package_task'

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/platform'
require 'rbconfig'

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'webrick'
require 'zlib'
require 'rubygems/remote_fetcher'

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/version'
class TestGemRequirement < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/server'
require 'stringio'

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/source_index'
require 'rubygems/config_file'

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/source_info_cache'
class Gem::SourceIndex

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/source_info_cache_entry'
class TestGemSourceInfoCacheEntry < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/spec_fetcher'
class TestGemSpecFetcher < RubyGemTestCase

View file

@ -5,7 +5,7 @@
#++
require 'stringio'
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/specification'
class TestGemSpecification < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/user_interaction'
class TestGemStreamUI < RubyGemTestCase

View file

@ -1,5 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)),
'gem_installer_test_case')
require_relative 'gem_installer_test_case'
require 'rubygems/uninstaller'
class TestGemUninstaller < GemInstallerTestCase

View file

@ -4,8 +4,8 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require File.join(File.expand_path(File.dirname(__FILE__)), 'simple_gem')
require_relative 'gemutilities'
require_relative 'simple_gem'
require 'rubygems/validator'
class TestGemValidator < RubyGemTestCase

View file

@ -4,7 +4,7 @@
# See LICENSE.txt for permissions.
#++
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/version'
class TestGemVersion < RubyGemTestCase

View file

@ -1,4 +1,4 @@
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require_relative 'gemutilities'
require 'rubygems/command'
require 'rubygems/version_option'