Brian
Brian

Reputation: 7135

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

Upvotes: 5

Views: 1266

Answers (1)

Sairam
Sairam

Reputation: 2898

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

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

Upvotes: 5

Related Questions