There's an issue with line 32, it will raise an exception due to required_file being an undefined local variable or method. I ran into this with the rubyzip gem, not sure why. I simply commented the line and had it print a few things - $1 was "rubyzip" and the message was "cannot load such file -- rubyzip". My test was on ruby 1.9.3-p194.

I've added an eager autoloading line. This should reduce the burden on gems that are required first and autoload Rails frameworks. You can comment out the line if you prefer to let the gems incur the benchmarking cost.