-
-
Notifications
You must be signed in to change notification settings - Fork 2k
require gem_tasks results in uninitialized constant error #3492
Comments
It seems adding a |
See rubygems/bundler#3492 for more info.
That's definitely a bug, as we try to be as backwards compatible as possible. Is there any documentation that mentions that you only need |
@andremedeiros Not that I know of, I've been doing it for so long I forgot where I initially found it. Having said that, the require is present here, but it fails before reaching this line: https://github.com/bundler/bundler/blob/master/lib/bundler/gem_helper.rb#L2 |
@yorickpeterse That's all I needed to know, thank you! I'll look into it. |
I've got a fix ready @andremedeiros |
Properly fixes us uses of autoload in thor Closes #3492
The fix for this shipped in 1.9.1. |
Thanks! 😄 |
Properly fixes us uses of autoload in thor Closes rubygems#3492
Prior to 1.9 one could add a
require 'bundler/gem_tasks'
to their Rakefile to load a set of bundler related Rake tasks. Starting with 1.9.0 this results in the following error:To reproduce, create a directory and add the following files to it:
This should give the following structure:
Running
rake -T
will now produce the above error.The text was updated successfully, but these errors were encountered: