Hi, a few people running are complaining about this, see here: pry/pry#280
possible fix to issue #6
It seems Rails is preventing autoload by removing the gem's load path from $:. I see two available options:
I don't want to go 1. because autloading saves memory and time, especially when running CodeRay from the command line.
A version of 2. is in the above commit, in the autoload-fix branch. It fixes the pry issue on my system, but it's defining a Module#coderay_autoload method to do this. Any ideas how to avoid this?
Perhaps we can use autoloading just for the executable version; it seems it's not a good idea to use autoload in libraries.
add test for #6 (pry autoload issue)
Bug #6: merge ConradIrwin's approach with korny's