lib/nv/config.rb in nv-1.2.1 vs lib/nv/config.rb in nv-1.2.2

- old
+ new

@@ -16,10 +16,10 @@ config_dir = File.dirname(@config_path) Dir.mkdir(config_dir) unless Dir.exist?(config_dir) FileUtils.touch(@config_path) unless File.exist?(@config_path) - @config = YAML.load_file(@config_path) || {} + @config = YAML.load(open(@config_path).read) || {} super(@config) end def save File.open(@config_path, 'w') do |f|