diff options
88 files changed, 79 insertions, 549 deletions
@@ -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. |