From 00dc68a5a4eca4b27bb9456f0b7019bcb7551007 Mon Sep 17 00:00:00 2001 From: evanweaver Date: Sat, 27 Oct 2007 17:38:13 +0000 Subject: use rubygems a little less aggressively git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@808 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel/command.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/mongrel/command.rb') diff --git a/lib/mongrel/command.rb b/lib/mongrel/command.rb index 3a67d56..64d2509 100644 --- a/lib/mongrel/command.rb +++ b/lib/mongrel/command.rb @@ -4,10 +4,14 @@ # Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html # for more information. -require 'rubygems' require 'singleton' require 'optparse' -require 'gem_plugin' + +begin + require 'gem_plugin' +rescue LoadError + require 'rubygems' and retry +end module Mongrel -- cgit v1.2.3-24-ge0c7