lib/faster_rubygems.rb in faster_rubygems-0.5.1 vs lib/faster_rubygems.rb in faster_rubygems-0.5.3

- old
+ new

@@ -1,8 +1,15 @@ +# :stopdoc: + if RUBY_VERSION < '1.9.0' - raise 'rubygems was already loaded' if defined?(Gem) - module Gem; end # define it so gem_prelude will execute... + raise 'rubygems was already loaded?' if defined?(Gem) && !defined(Gem::FasterRubygems) + + # define it so gem_prelude will execute... + module Gem; + module FasterRubygems; end + end + require File.dirname(__FILE__) + "/my_gem_prelude.rb" end # both 1.8 and 1.9 now want this one though... -require File.dirname(__FILE__) + "/prelude_bin_path" +require File.dirname(__FILE__) + "/prelude_bin_path" \ No newline at end of file