* lib/rubygems.rb: Reduce requires to improve `make benchmark`.

[#4962]
	* lib/rubygems/specification.rb:  Delay initialization of rubygems
	  until require is called.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-07-06 21:19:59 +00:00
Родитель c1d84bfcdb
Коммит 0e7da28c98
3 изменённых файлов: 13 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Thu Jul 7 06:19:38 2011 Eric Hodel <drbrain@segment7.net>
* lib/rubygems.rb: Reduce requires to improve `make benchmark`.
[#4962]
* lib/rubygems/specification.rb: Delay initialization of rubygems
until require is called.
Thu Jul 7 04:31:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Jul 7 04:31:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (arg): rescue_mod is in inverse order from other * parse.y (arg): rescue_mod is in inverse order from other

Просмотреть файл

@ -32,8 +32,6 @@ if Gem::GEM_PRELUDE_SUCKAGE and defined?(Gem::QuickLoader) then
end end
require 'rubygems/defaults' require 'rubygems/defaults'
require "rubygems/dependency_list"
require 'rubygems/path_support'
require 'rbconfig' require 'rbconfig'
require "rubygems/deprecate" require "rubygems/deprecate"
@ -126,7 +124,7 @@ require "rubygems/deprecate"
# -The RubyGems Team # -The RubyGems Team
module Gem module Gem
VERSION = '1.8.5' VERSION = '1.8.5.1'
## ##
# Raised when RubyGems is unable to load or activate a gem. Contains the # Raised when RubyGems is unable to load or activate a gem. Contains the
@ -1142,11 +1140,13 @@ module Gem
autoload :Version, 'rubygems/version' autoload :Version, 'rubygems/version'
autoload :Requirement, 'rubygems/requirement' autoload :Requirement, 'rubygems/requirement'
autoload :Dependency, 'rubygems/dependency' autoload :Dependency, 'rubygems/dependency'
autoload :DependencyList, 'rubygems/dependency_list'
autoload :GemPathSearcher, 'rubygems/gem_path_searcher' autoload :GemPathSearcher, 'rubygems/gem_path_searcher'
autoload :SpecFetcher, 'rubygems/spec_fetcher' autoload :SpecFetcher, 'rubygems/spec_fetcher'
autoload :Specification, 'rubygems/specification' autoload :Specification, 'rubygems/specification'
autoload :Cache, 'rubygems/source_index' autoload :Cache, 'rubygems/source_index'
autoload :SourceIndex, 'rubygems/source_index' autoload :SourceIndex, 'rubygems/source_index'
autoload :PathSupport, 'rubygems/path_support'
autoload :Platform, 'rubygems/platform' autoload :Platform, 'rubygems/platform'
autoload :Builder, 'rubygems/builder' autoload :Builder, 'rubygems/builder'
autoload :ConfigFile, 'rubygems/config_file' autoload :ConfigFile, 'rubygems/config_file'
@ -1238,8 +1238,6 @@ end
require 'rubygems/custom_require' require 'rubygems/custom_require'
Gem.clear_paths
module Gem module Gem
class << self class << self
extend Deprecate extend Deprecate

Просмотреть файл

@ -2126,3 +2126,6 @@ class Gem::Specification
# deprecate :file_name, :cache_file, 2011, 10 # deprecate :file_name, :cache_file, 2011, 10
# deprecate :full_gem_path, :cache_file, 2011, 10 # deprecate :full_gem_path, :cache_file, 2011, 10
end end
Gem.clear_paths