Gemfile is abstract
Gemfile.lock is specific
gem 'foo'
gem 'bar', '>= 1.2.3'
gem 'baz', '~> 4.5.6'
>= means "greater or equal"~> means "approximately"
"~> 1.2.3" matches 1.2.4 but not 1.3.0Gemfile and Gemfile.lock
bundle install vs. bundle update
bundle install
bundle update
bundle updaterubygems.org)Gemfile.lock
bundle installGemfile.lock, does a bundle update
Gemfile.lock, then:
Gemfile.lock
bundle execbundle exec command
Gemfile.lock are availablecommand
group :test do
gem "wrong"
end
/