Permalink
Browse files

use YAML.dump over {}.to_yaml, thanks @tenderlove

  • Loading branch information...
1 parent 4934ddc commit e8e20ed34583758de907439ec621f8fb1ea402c4 @hone hone committed Mar 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/settings.rb
View
@@ -126,7 +126,7 @@ def set_key(key, value, hash, file)
hash.delete(key) if value.nil?
FileUtils.mkdir_p(file.dirname)
require 'bundler/psyched_yaml'
- File.open(file, "w") { |f| f.puts hash.to_yaml }
+ File.open(file, "w") { |f| f.puts YAML.dump(hash) }
end
value
end

0 comments on commit e8e20ed

Please sign in to comment.