summaryrefslogtreecommitdiff
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-06 21:19:59 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-06 21:19:59 +0000
commit0e7da28c98711f807b86900f37bd5bed22922dd5 (patch)
tree6b7e6656c3bf6e5a3519c7eb9c1792f5758f205f /lib/rubygems.rb
parentc1d84bfcdb113364f9fcdef94a07961613743ff3 (diff)
* 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
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 0f3a07329e..25d8bc4e01 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -32,8 +32,6 @@ if Gem::GEM_PRELUDE_SUCKAGE and defined?(Gem::QuickLoader) then
end
require 'rubygems/defaults'
-require "rubygems/dependency_list"
-require 'rubygems/path_support'
require 'rbconfig'
require "rubygems/deprecate"
@@ -126,7 +124,7 @@ require "rubygems/deprecate"
# -The RubyGems Team
module Gem
- VERSION = '1.8.5'
+ VERSION = '1.8.5.1'
##
# Raised when RubyGems is unable to load or activate a gem. Contains the
@@ -1142,11 +1140,13 @@ module Gem
autoload :Version, 'rubygems/version'
autoload :Requirement, 'rubygems/requirement'
autoload :Dependency, 'rubygems/dependency'
+ autoload :DependencyList, 'rubygems/dependency_list'
autoload :GemPathSearcher, 'rubygems/gem_path_searcher'
autoload :SpecFetcher, 'rubygems/spec_fetcher'
autoload :Specification, 'rubygems/specification'
autoload :Cache, 'rubygems/source_index'
autoload :SourceIndex, 'rubygems/source_index'
+ autoload :PathSupport, 'rubygems/path_support'
autoload :Platform, 'rubygems/platform'
autoload :Builder, 'rubygems/builder'
autoload :ConfigFile, 'rubygems/config_file'
@@ -1238,8 +1238,6 @@ end
require 'rubygems/custom_require'
-Gem.clear_paths
-
module Gem
class << self
extend Deprecate