I’m following this Rails tutorial section and this RVM doc page . My installation is all brand new (RVM 1.17.3), so, if I understand the tutorial and the RVM docs correctly:
-
RVM and Bundler should be integrated by default and I don’t have to configure anything. (No need to run
bundle --bunstubs?) -
I don’t need to type “bundle exec”
Did I read that right?
I don’t see a bundler_stubs/ or bin/ directory in my application.
Is there a way for me to check that it’s set up properly so I can be sure that bundle exec is not necessary?
edit:
Running which yields the following:
$ bundle show rspec
$ /home/{username}/.rvm/gems/ruby-1.9.3-p327@tutorial/gems/rspec-2.11.0
$ which rspec
$ /home/{username}/.rvm/gems/ruby-1.9.3-p327@tutorial/bin/rspec
Which seems to imply that I should keep using bundle exec because they are not the same?
RVM by default installs gem https://github.com/mpapis/rubygems-bundler which detects if you are in context of
Gemfileand automatically loads bundler if required, it is equivalent to manually typingbundle exec.