Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Bundler utilize Gemfile.lock to load gems?

I'm a bit confused at the moment as to how bundler handles the files Gemfile and Gemfile.lock.

Inside my Gemfile, I have the following

group :development do
  gem 'ruby-debug19', :require => 'ruby-debug'
end

And on production, I run bundle install --without development. However, in Gemfile.lock, 'ruby-debug19' is still listed under DEPENDENCIES at the bottom of the file, and the gem and what it needs are listed in the main listings above.

What is the --without option really doing then? I don't have the necessary gems for ruby-debug19 installed on production, because well, it's production.

I'm fairly new to Rails, and I'm working with v3.2

like image 549
Brian Avatar asked Apr 01 '12 20:04

Brian


1 Answers

Checkout the Bundler FAQ . Your question seems to be answered in the FAQs

FAQ: Why Is Bundler Downloading Gems From --without Groups?

like image 94
Sairam Avatar answered Sep 22 '22 17:09

Sairam