Skip to content

Commit

Permalink
Deprecate rubygems/fast.rb
Browse files Browse the repository at this point in the history
rubygems.rb no longer loads plugins immediately.
Gem::CommandManager loads plugins.
  • Loading branch information
raggi committed Jul 6, 2010
1 parent fc48657 commit 93ac03a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
7 changes: 0 additions & 7 deletions lib/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1015,10 +1015,6 @@ 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 @@ -1129,6 +1125,3 @@ 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: 2 additions & 0 deletions lib/rubygems/command_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,5 @@ def load_and_instantiate(command_name)

end

# Load rubygems plugins after the command manager is loaded.
require 'rubygems/plugins'
5 changes: 0 additions & 5 deletions lib/rubygems/fast.rb

This file was deleted.

0 comments on commit 93ac03a

Please sign in to comment.