Skip to content
This repository
Browse code

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...
commit b05c95190737eb39047a756e37d811b340a47ba2 1 parent e58b276
Yehuda Katz wycats authored
3  activesupport/lib/active_support/core_ext/load_error.rb
@@ -20,7 +20,8 @@ def self.from_message(message)
20 20 REGEXPS = [
21 21 [/^no such file to load -- (.+)$/i, 1],
22 22 [/^Missing \w+ (file\s*)?([^\s]+.rb)$/i, 2],
23   - [/^Missing API definition file in (.+)$/i, 1]
  23 + [/^Missing API definition file in (.+)$/i, 1],
  24 + [/win32/, 0]
24 25 ] unless defined?(REGEXPS)
25 26 end
26 27

0 comments on commit b05c951

Please sign in to comment.
Something went wrong with that request. Please try again.