John Merlino
2013-Apr-23 21:52 UTC
running bundle sometimes installs other gems than ones specified in Gemfile
Quick question. Often I add a gem to my Gemfile and then run bundle install and I notice that it installs a bunch of other stuff (in addition to what I wanted): Installing warden (1.2.1) Installing devise (2.2.3) Installing fastercsv (1.5.5) Installing formtastic (2.2.1) Installing has_scope (0.5.1) Installing responders (0.9.3) Installing inherited_resources (1.4.0) Does this mean that the gem I want to install is dependent on the aforementioned gems? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Scott Ribe
2013-Apr-23 22:17 UTC
Re: running bundle sometimes installs other gems than ones specified in Gemfile
On Apr 23, 2013, at 3:52 PM, John Merlino wrote:> Does this mean that the gem I want to install is dependent on the > aforementioned gems?Yes, one of the features is that it finds and installs dependencies for you, so you only have to list what you know that you''re using directly, and not worry about all the requirements to get to where you can use them. -- Scott Ribe scott_ribe-ZCQMRMivIIdUL8GK/JU1Wg@public.gmane.org http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
John Merlino
2013-Apr-23 22:23 UTC
Re: running bundle sometimes installs other gems than ones specified in Gemfile
So this means I don''t need to add devise to my Gemfile now and run a bundle because devise is already isntalled and fully functioning in my app? On Apr 23, 6:17 pm, Scott Ribe <scott_r...-ZCQMRMivIIdUL8GK/JU1Wg@public.gmane.org> wrote:> On Apr 23, 2013, at 3:52 PM, John Merlino wrote: > > > Does this mean that the gem I want to install is dependent on the > > aforementioned gems? > > Yes, one of the features is that it finds and installs dependencies for you, so you only have to list what you know that you''re using directly, and not worry about all the requirements to get to where you can use them. > > -- > Scott Ribe > scott_r...-ZCQMRMivIIdUL8GK/JU1WhHnuRYL88vP@public.gmane.org://www.elevated-dev.com/ > (303) 722-0567 voice-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Robert Walker
2013-Apr-23 23:39 UTC
Re: running bundle sometimes installs other gems than ones specified in Gemfile
John Merlino wrote in post #1106692:> So this means I don''t need to add devise to my Gemfile now and run a > bundle because devise is already isntalled and fully functioning in my > app?No. This means that if you have devise in your gem file, and run bundle, all gems that devise depends on will also be installed whether they are specifically listed in the gem file or not. For example, devise depends on warden. So if you install devise, either manually using the "gem install" command, or indirectly by including devise in your gem file and running "bundle [install]" then warden (along with devises'' other dependencies) will be installed. However, if you were to include warden in your gem file, and NOT devise, then only warden would be installed (along with all of warden''s dependencies) and devise would NOT. Warden does not depend on devise. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.