Brian Landau
2008-Jun-17 22:09 UTC
Rake tasks and generators from vendorized gems (aka gem-plugins)
When moving plugins over to gem-plugins or when creating new gem- plugins a difficulty I found in embracing this new approach was not being able to easily add generators and rake tasks that can be available in a project''s scope. So I''ve proposed a patch on Lighthouse to handle this: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/441 Generators are searched for in the gems "rails/generators" directory. Rake tasks are searched for in the gems "rails/tasks" directory. I also have this as a branch on github: http://github.com/brianjlandau/rails/commits/add_more_vendor_gem_support I''m seeking feedback: comments, +1''s, discussion, whatever. Thanks, Brian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Jacek Becela
2008-Jul-01 06:27 UTC
Re: Rake tasks and generators from vendorized gems (aka gem-plugins)
Count me in. Recently I submitted two patches in the same area: http://rails.lighthouseapp.com/projects/8994/tickets/515-make-plugin-generator-create-rails-init-rb#ticket-515-1 http://rails.lighthouseapp.com/projects/8994/tickets/272-make-plugins-also-initialize-form-rails-init-rb#ticket-272-1 Also looking for discussion and plus-ones. Cheers, Jacek On Jun 18, 12:09 am, Brian Landau <brianjlan...@gmail.com> wrote:> When movingpluginsover togem-pluginsor when creating newgem-pluginsa difficulty I found in embracing this new approach was not > being able to easily addgeneratorsand raketasksthat can be > available in a project''s scope. > So I''ve proposed a patch on Lighthouse to handle this:http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/441 > > Generatorsare searched for in the gems "rails/generators" directory. > Raketasksare searched for in the gems "rails/tasks" directory. > > I also have this as a branch on github:http://github.com/brianjlandau/rails/commits/add_more_vendor_gem_support > > I''m seeking feedback: comments, +1''s, discussion, whatever. > > Thanks, > Brian--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Ryan Bates
2008-Jul-01 18:36 UTC
Re: Rake tasks and generators from vendorized gems (aka gem-plugins)
Also see this related ticket on loading rake tasks for gems: http://rails.lighthouseapp.com/projects/8994/tickets/59 As I posted there, I would like to see gems behave the same way whether they are frozen into the vendor directory or not. Having specific rails/tasks and rails/generators directories which only get loaded for vendored gems would require me to freeze a gem in order to get the functionality. I would prefer the gem does not require this. For generators, gems already have the rails_generators directory they can use. For rake tasks, I would recommend the user adds a ''require'' statement to their Rakefile to include them. Currently, I don''t think the rails_generators directory is searched for frozen gems, so that part of the patch I like. Regards, Ryan On Jun 30, 11:27 pm, Jacek Becela <jacek.bec...@gmail.com> wrote:> Count me in. Recently I submitted two patches in the same area: > > http://rails.lighthouseapp.com/projects/8994/tickets/515-make-plugin-...http://rails.lighthouseapp.com/projects/8994/tickets/272-make-plugins... > > Also looking for discussion and plus-ones. > > Cheers, > > Jacek > > On Jun 18, 12:09 am, Brian Landau <brianjlan...@gmail.com> wrote: > > > When movingpluginsover togem-pluginsor when creating newgem-pluginsa difficulty I found in embracing this new approach was not > > being able to easily addgeneratorsand raketasksthat can be > > available in a project''s scope. > > So I''ve proposed a patch on Lighthouse to handle this:http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/441 > > > Generatorsare searched for in the gems "rails/generators" directory. > > Raketasksare searched for in the gems "rails/tasks" directory. > > > I also have this as a branch on github:http://github.com/brianjlandau/rails/commits/add_more_vendor_gem_support > > > I''m seeking feedback: comments, +1''s, discussion, whatever. > > > Thanks, > > Brian--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---