lib/rubygems/commands/inabox_command.rb in geminabox-0.13.0 vs lib/rubygems/commands/inabox_command.rb in geminabox-0.13.1

- old
+ new

@@ -83,10 +83,10 @@ def geminabox_host=(host) config = Gem.configuration.load_file(config_path).merge(:host => host) dirname = File.dirname(config_path) - Dir.mkdir(dirname) unless File.exists?(dirname) + Dir.mkdir(dirname) unless File.exist?(dirname) File.open(config_path, 'w') do |f| f.write config.to_yaml end end