Skip to content

Commit

Permalink
Revert "Deprecate rubygems/fast.rb" - prep for merge with evans branch
Browse files Browse the repository at this point in the history
This reverts commit 93ac03a.
  • Loading branch information
raggi committed Nov 13, 2010
1 parent 6398437 commit 90bc7a3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions lib/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,10 @@ class << self

alias cache source_index # an alias for the old name

# Internal helper to inform us if we were fastloaded, so plugins.rb should
# or should not load plugins.
attr_reader :fast

# :startdoc:

end
Expand Down Expand Up @@ -1164,3 +1168,6 @@ def self.datadir(package_name)
require 'rubygems/custom_require' if gem_disabled or RUBY_VERSION < '1.9'

Gem.clear_paths

require 'rubygems/plugins' unless Gem.fast

2 changes: 0 additions & 2 deletions lib/rubygems/command_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,3 @@ def load_and_instantiate(command_name)

end

# Load rubygems plugins after the command manager is loaded.
require 'rubygems/plugins'
5 changes: 5 additions & 0 deletions lib/rubygems/fast.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Gem
@fast = true
end

require 'rubygems'

0 comments on commit 90bc7a3

Please sign in to comment.