carlhuda/bundler — Issue #1566: No way to set a false boolean value with bundle config
Author: patshaughnessy
Created: 2011-11-30 22:09:13+00:00
State: open

For example, to enable deployment mode you can use:

bundle config frozen 1

... to enable the "frozen" boolean setting in the .bundle/config file.

However, there's no way to clear this setting without deleting/editing the config file manually, since

bundle config frozen false

and: bundle config frozen 0

both continue to leave the boolean value as "true" because of the logic on line 11 of settings.rb:

def [](key)
key = key_for(key)
@local_config[key] || ENV[key] || @global_config[key]
end

"0" and "false" both evaluate to boolean true.