Hello All, My google-fu did not find this answer : How do I configure a Rails-3 Engine so that the engine''s Gemfile is integrated with the parent-Rails-app''s bundle? Thanks Peter Fitzgibbons (847) 859-9550 Email: peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org IM GTalk: peter.fitzgibbons IM AOL: peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thu, May 6, 2010 at 8:29 AM, Peter Fitzgibbons <peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello All, > My google-fu did not find this answer : > How do I configure a Rails-3 Engine so that the engine''s Gemfile is > integrated with the parent-Rails-app''s bundle?You package your plugin as a gem, then add it as a dependency to your Rails app. Write up a yourplugin.gemspec and put gem ''yourplugin'', :path => ''/to/your/plugin'' in your app try. jeremy -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > How do I configure a Rails-3 Engine so that the engine''s Gemfile is > > integrated with the parent-Rails-app''s bundle? > > You package your plugin as a gem, then add it as a dependency to your Rails app. > > Write up a yourplugin.gemspec and put gem ''yourplugin'', :path => > ''/to/your/plugin'' in your app try.Hi Jeremy, I''m not sure you answered the OP''s question (as I''m looking for the same answer). He wants to know, if he has a Gemfile within his gem/ engine how can he get the Rails app/Bundler to automatically load it''s dependencies along with the Rails app''s hardcoded dependencies. For example, if you create your own Rails 3 Engine gem called MyShop and MyShop has a dependency on ActiveMerchant, he wants to put that dependency in a Gemfile within MyShop and not within the Rails app itself. I agree with this (your Rails app shouldn''t need to know what the dependencies are for the dependencies you have, Bundler should just take care of them) and I''m trying to do the same thing. Cheers, Andy -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Me too. Anyone figured it out yet? On May 11, 1:57 pm, andyjeffries <andyjeffr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > How do I configure a Rails-3 Engine so that the engine''s Gemfile is > > > integrated with the parent-Rails-app''s bundle? > > > You package your plugin as a gem, then add it as a dependency to your Rails app. > > > Write up a yourplugin.gemspec and put gem ''yourplugin'', :path => > > ''/to/your/plugin'' in your app try. > > Hi Jeremy, > > I''m not sure you answered the OP''s question (as I''m looking for the > same answer). He wants to know, if he has a Gemfile within his gem/ > engine how can he get the Rails app/Bundler to automatically load it''s > dependencies along with the Rails app''s hardcoded dependencies. > > For example, if you create your own Rails 3 Engine gem called MyShop > and MyShop has a dependency on ActiveMerchant, he wants to put that > dependency in a Gemfile within MyShop and not within the Rails app > itself. > > I agree with this (your Rails app shouldn''t need to know what the > dependencies are for the dependencies you have, Bundler should just > take care of them) and I''m trying to do the same thing. > > Cheers, > > Andy > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I''m looking for the same! Is it possible? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Tuesday 11 May 2010, andyjeffries wrote:> > > How do I configure a Rails-3 Engine so that the engine''s Gemfile > > > is integrated with the parent-Rails-app''s bundle? > > > > You package your plugin as a gem, then add it as a dependency to > > your Rails app. > > > > Write up a yourplugin.gemspec and put gem ''yourplugin'', :path => > > ''/to/your/plugin'' in your app try. > > Hi Jeremy, > > I''m not sure you answered the OP''s question (as I''m looking for the > same answer). He wants to know, if he has a Gemfile within his gem/ > engine how can he get the Rails app/Bundler to automatically load > it''s dependencies along with the Rails app''s hardcoded dependencies.Jeremy answered the question. Really. Gemfiles are for apps, not for gems. You specify a gem''s dependencies through its gemspec. Have a look at all the gems on github or try $ gem specification activemerchant --ruby to get an idea.> I agree with this (your Rails app shouldn''t need to know what the > dependencies are for the dependencies you have, Bundler should just > take care of them) and I''m trying to do the same thing.That''s what bundler does. It''s up to you to declare the dependencies in the appropriate way. For gems that means in a gemspec. Michael -- Michael Schuerig mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.