Skip to content

Commit

Permalink
does not preload rubygems
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrous26 authored and Watson1978 committed Feb 9, 2012
1 parent 13574be commit e8cc284
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/rubygems.rb
Expand Up @@ -6,8 +6,11 @@
#++

module Gem
QUICKLOADER_SUCKAGE = RUBY_VERSION =~ /^1\.9\.1/
GEM_PRELUDE_SUCKAGE = RUBY_VERSION =~ /^1\.9\.2/
# XXX MACRUBY does not preload rubygems
#QUICKLOADER_SUCKAGE = RUBY_VERSION =~ /^1\.9\.1/
#GEM_PRELUDE_SUCKAGE = RUBY_VERSION =~ /^1\.9\.2/
QUICKLOADER_SUCKAGE = false
GEM_PRELUDE_SUCKAGE = false
end

if Gem::GEM_PRELUDE_SUCKAGE and defined?(Gem::QuickLoader) then
Expand Down Expand Up @@ -1232,7 +1235,9 @@ def RbConfig.datadir(package_name) # :nodoc:

require 'rubygems/exceptions'

gem_preluded = Gem::GEM_PRELUDE_SUCKAGE and defined? Gem
# XXX MACRUBY does not preload rubygems
#gem_preluded = Gem::GEM_PRELUDE_SUCKAGE and defined? Gem
gem_preluded = false
unless gem_preluded then # TODO: remove guard after 1.9.2 dropped
begin
##
Expand Down

0 comments on commit e8cc284

Please sign in to comment.