Permalink
Browse files

Temporary fix to get our LoadError monkey-patch working with newer JR…

…uby. We should probably remove MissingSourceFile and just monkey-patch LoadError instead of overriding LoadError.new.
  • Loading branch information...
1 parent e58b276 commit b05c95190737eb39047a756e37d811b340a47ba2 @wycats wycats committed Aug 9, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/lib/active_support/core_ext/load_error.rb
@@ -20,7 +20,8 @@ def self.from_message(message)
REGEXPS = [
[/^no such file to load -- (.+)$/i, 1],
[/^Missing \w+ (file\s*)?([^\s]+.rb)$/i, 2],
- [/^Missing API definition file in (.+)$/i, 1]
+ [/^Missing API definition file in (.+)$/i, 1],
+ [/win32/, 0]
] unless defined?(REGEXPS)
end

0 comments on commit b05c951

Please sign in to comment.