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 update
rubygems.org
)Gemfile.lock
bundle install
Gemfile.lock
, does a bundle update
Gemfile.lock
, then:
Gemfile.lock
bundle exec
bundle exec command
Gemfile.lock
are availablecommand
group :test do
gem "wrong"
end
/