Permalink
Browse files

Fixed RubyInline compatibility

  • Loading branch information...
1 parent 25ceab5 commit 454872636d56922329408c322a7de09a36282551 @fabien committed Oct 13, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/minigems.rb
View
@@ -58,7 +58,8 @@ def require(path) # :nodoc:
gem_original_require path
rescue LoadError => load_error
if File.basename(path).match(Gem::MiniGems::INLINE_REGEXP)
- return true # RubyInline dynamicly created .so/.bundle
+ # RubyInline dynamically created .so/.bundle
+ return gem_original_require(File.join(Inline.directory, path))
elsif path == 'Win32API' && !Gem.win_platform?
raise load_error
elsif load_error.message =~ /#{Regexp.escape path}\z/

0 comments on commit 4548726

Please sign in to comment.