On Wednesday, December 2, 2015 at 10:00:48 PM UTC, Colin Law wrote:
>
> On 2 December 2015 at 21:46, Frederick Cheung 
> <[email protected]> wrote: 
> > On Wednesday, December 2, 2015 at 5:46:49 PM UTC, Jason Hsu, Ruby on 
> High Speed Rails wrote: 
> >> 
> > 
> >> 
> >> That said, I'd like to hear from those of you who are still part of the 
> vast majority who use Ruby on Rails directly on the host OS.  How do you 
> deal with the issues that prompted me to use VirtualBox/Vagrant?  (I think 
> that gemsets are a popular solution.  Is this correct?) 
> > 
> > 
> > I don't use gemsets - when using a bundler enabled project it won't let 
> you load a gem that's not in the Gemfile. 
>
> Can you explain what you mean by that in more detail please, I don't 
> understand what you are saying. 
>
>
If you are using bundler, you can only load gems in the Gemfile or 
Gemfile.lock

You can see this easily enough with a dummy project: create a folder with 
an empty Gemfile, and put this in test.rb

require 'bundler/setup'

require 'uuid' # replace with the name of some gem that is installed on 
your machine.

Running test.rb will fail with a LoadError. Add the gem to the Gemfile (no 
need to run bundle) and test.rb will run successfully.

Fred

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/28ef19b0-78c3-400f-9ba0-376e1ac94623%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to