summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gemfile_tools.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gemfile_tools.rb b/lib/gemfile_tools.rb
index 2cdc42e..50798cb 100644
--- a/lib/gemfile_tools.rb
+++ b/lib/gemfile_tools.rb
@@ -57,7 +57,9 @@ def local_config
new_config = YAML.load_file(filepath)
['development', 'test','production'].each do |env|
config[env] ||= empty_hash.dup
- config[env].merge!(new_config[env])
+ if new_config[env]
+ config[env].merge!(new_config[env])
+ end
end
end
config