makandra is responsible for maintaining about 75 Ruby projects. These projects use a large number of different versions for Ruby, Rails and many gems. To be able to switch between projects easily, we must control every dependency our applications has.
bundle install
and bundle update
?bundle exec
do, why is it necessary?Gemfile.lock
do?.ruby-version
file.ruby -v
)cd
into the directory for the address book app. Observe how rbenv
has automatically switched to the Ruby version from your .ruby-version
.Tip
RubyMine seems to only parse the
.ruby-version
file when you're opening a project for the first time. When you're changing the.ruby-version
of an existing project, RubyMine may not automatically detect that you want to use another version.If this is the case, go to File / Settings / Languages & Frameworks / Ruby SDK & Gems and select the new Ruby version.
Gemfile
to that repository and let bundler create a Gemfile.lock
. It won't have any dependencies at first.Gemfile
and Gemfile.lock
.2.10.0
.Gemfile.lock
. Compare these changes to
faker's dependencies on rubygems.org
Show archive.org snapshot
.Gemfile.lock
during the upgrade..gemspec
file in the project's root directory. Understand what it says and how it feeds the
faker page on rubygems.org
Show archive.org snapshot
.