Search code examples
ruby-on-railsbundler

Bundler: What does :require => nil in Gemfile mean?


What does the nil mean in this gemfile entry?

gem "hub", ">= 1.10.2", :require => nil

I found this question and answer for false;

Bundler: What does :require => false in a Gemfile mean?

In this context, does nil behave the same as false?


Solution

  • Yes, nil and false behave the same here: it makes Bundler not require the specified gem.