diff options
Diffstat (limited to 'lib/mongrel')
-rw-r--r-- | lib/mongrel/command.rb | 7 | ||||
-rw-r--r-- | lib/mongrel/init.rb | 10 |
2 files changed, 4 insertions, 13 deletions
diff --git a/lib/mongrel/command.rb b/lib/mongrel/command.rb index 64d2509..a3ee57d 100644 --- a/lib/mongrel/command.rb +++ b/lib/mongrel/command.rb @@ -7,11 +7,8 @@ require 'singleton' require 'optparse' -begin - require 'gem_plugin' -rescue LoadError - require 'rubygems' and retry -end +require 'mongrel/gems' +Mongrel::Gems.require 'gem_plugin' module Mongrel diff --git a/lib/mongrel/init.rb b/lib/mongrel/init.rb index 968f2cd..00911f4 100644 --- a/lib/mongrel/init.rb +++ b/lib/mongrel/init.rb @@ -4,13 +4,7 @@ # Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html # for more information. -begin - require 'gem_plugin' -rescue LoadError - require 'rubygems' and retry -end +require 'mongrel/gems' +Mongrel::Gems.require 'gem_plugin' # File is just a stub that makes sure the mongrel_plugins gem is loaded and ready - - - |