1) Is there a \'best\' place for rake tasks inside of gems? I\'ve seen them in /tasks, /lib/tasks, and I\'ve seen them written as *.rb
for Rails 3 support, the top line of your lib/.rb file can be:
Dir["tasks/**/*.rake"].each { |ext| load ext } if defined?(Rake)
for Rails 2 support, the gem installer will have to edit their Rakefile and add:
Dir["#{Gem.searcher.find('').full_gem_path}/lib/tasks/**/*.rake"].each { |ext| load ext }
after the require statements.
NOTES:
I haven't found anything easier yet. Comments?