Permalink
Browse files

load c-readline by default and use rb-readline if not found

  • Loading branch information...
1 parent 703ed6f commit b32758d6c88b42e6bb59add2fb0f8bf64f894a1e @bakkdoor committed Nov 14, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/ifancy
View
@@ -13,7 +13,12 @@ class Fancy Interactive {
}
}
-require("rb-readline/readline")
+try {
+ require("readline")
+} catch LoadError {
+ require("rb-readline/readline")
+}
+
try {
require("rubygems")
require("coderay")

0 comments on commit b32758d

Please sign in to comment.