Rails 2.3.5 b0rks our Rake tasks running on edge Hobo
Reported by Matt Jones | December 7th, 2009 @ 05:42 PM | in Hobo 1.0 - Final
There was a change to rails/tasks.rb in 2.3.5 that doesn't find Rake tasks in nested subdirectories under vendor/plugins. This makes edge Hobo rake tasks fail to load.
Fix is to put:
load File.join(RAILS_ROOT,'vendor/plugins/hobo/hobo/tasks/hobo_tasks.rake')
at the end of your Rakefile.
Rails commit that broke it is http://github.com/rails/rails/commit/0f14d7b6d37940a93c12c373e6e92e...
Comments and changes to this ticket
-
Bryan Larsen December 7th, 2009 @ 08:53 PM
It seems to work for me if I add require 'hobo/tasks/rails' to the bottom. The advantage of this is that this is automatically added by the 'hobo' generator and used to have to be removed when you switched from gem to plugin....
-
Matt Jones December 7th, 2009 @ 08:59 PM
Adding the "require 'hobo/tasks/rails'" line works if you've got the gem installed; if you don't, it will blow up messily as the relevant location isn't on the default load path.
It also triggers the gem autoloading stuff, so you end up with the newest installed gem activated, which has the potential to cause all sorts of obscure stuff when some files load from the plugin and others from the gem...
-
Bryan Larsen December 10th, 2009 @ 07:48 AM
(from [ea99f10b43cb6c0845a31526cd528b0c19e5c822]) [#574] Add notice to CHANGES.txt about the Rails 2.3.5 and hobo as a plugin Rakefile problem
http://github.com/tablatom/hobo/commit/ea99f10b43cb6c0845a31526cd52... -
Bryan Larsen December 29th, 2009 @ 11:07 PM
- State changed from new to resolved
(from [8525248e3b4a5b8085bc9055c9e17026a7b7c89a]) [#574 state:resolved] put rakefiles in a place that Rails 2.3.5 can find them http://github.com/tablatom/hobo/commit/8525248e3b4a5b8085bc9055c9e1...
-
Bryan Larsen December 29th, 2009 @ 11:14 PM
Can somebody with a Windows installation check this out? The fix adds a symbolic link. This link is not needed for anything except gem building so I don't really care what Windows does with it, but it'd be nice to be sure we're still OK.
Windows people will probably have to remove the
load File.join(RAILS_ROOT,'vendor/plugins/hobo/hobo/tasks/hobo_tasks.rake')
line from their Rakefile if they added it following Matt's instructions above.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
- 574 Rails 2.3.5 b0rks our Rake tasks running on edge Hobo (from [ea99f10b43cb6c0845a31526cd528b0c19e5c822]) [#574] ...
- 574 Rails 2.3.5 b0rks our Rake tasks running on edge Hobo (from [8525248e3b4a5b8085bc9055c9e17026a7b7c89a]) [#574 s...