adamsanderson / open_gem

Gem Command to easily open a ruby gem with the editor of your choice. (For a more flexible solution, see Qwandry)
http://endofline.wordpress.com
173 stars 23 forks source link

Require common_options directly #14

Closed indirect closed 9 years ago

indirect commented 13 years ago

Unfortunately, it turns out that rubygems is (on my machine, at least) willing to add rake and several other gems to the LOAD_PATH while searching for open_gem/common_options.

As a result, simply having open_gem installed on my system at all produced load errors when I tried to require rake 0.9, since rake 0.8 had already been activated by Rubygems as a result of this require line.

If you require the file directly using the full path, as in this patch, Rubygems doesn't add anything to the LOAD_PATH, and the activation error doesn't occur.

bleything commented 13 years ago

Any chance we could get this merged? It's killing me.