Permalink
Browse files

Added boot/fancy_ext/bootstrap.rb which is needed during bootstrap pr…

…ocess so *stdout* is defined and "rake -v" works.
  • Loading branch information...
bakkdoor committed Sep 26, 2011
1 parent 38ac2ee commit fcf43458591b6c2be96d7353abb9f7ee21f1eb09
Showing with 7 additions and 0 deletions.
  1. +6 −0 boot/fancy_ext/bootstrap.rb
  2. +1 −0 boot/load.rb
@@ -0,0 +1,6 @@
+# needed during bootstrapping
+class Object
+ define_method(":*stdout*") do
+ STDOUT
+ end
+end
View
@@ -65,6 +65,7 @@ def load_compiled_file(file, find_file = nil)
if __FILE__ == $0
require File.expand_path("fancy_ext", File.dirname(__FILE__))
+ require File.expand_path("fancy_ext/bootstrap", File.dirname(__FILE__))
# Load files up to the --
if dash = ARGV.index("--")
load = ARGV.shift(dash + 1)

0 comments on commit fcf4345

Please sign in to comment.