Created
June 15, 2009 18:22
-
-
Save dbussink/130251 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kernel/compiler/compile.rb b/kernel/compiler/compile.rb | |
index 6d07471..0eb5fab 100644 | |
--- a/kernel/compiler/compile.rb | |
+++ b/kernel/compiler/compile.rb | |
@@ -93,7 +93,7 @@ class Compiler | |
# Unqualified | |
else | |
$LOAD_PATH.each do |dir| | |
- if rbc and dir.suffix? '.rba' and File.file? dir and !options[:recompile] | |
+ if rbc and File.file?(dir) and dir.suffix?('.rba') and !options[:recompile] | |
begin | |
_, _, _, _, _, data = Ar.new(dir).extract rbc | |
rescue Ar::Error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment