Permalink
Browse files

Circumvent 3rd party code that tries to load/rescue require 'Win32API…

…' - causing full rubygems to be loaded
  • Loading branch information...
1 parent 48fc098 commit 74c305f5ab9a49e5fe210f07efb23b3a9f911e2d @fabien committed Oct 1, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/minigems.rb
View
@@ -264,6 +264,7 @@ def self.find_in_source_path(path)
# Find a file in the Gem source index - loads up the full rubygems!
def self.find_in_source_index(path)
+ return nil if path == 'Win32API' && !Gem.win_platform?
puts "Switching from minigems to full rubygems..." if $MINIGEMS_DEBUG
Gem.searcher.find(path)
end

0 comments on commit 74c305f

Please sign in to comment.