lib/yard/cli/yri.rb in yard-0.5.1p1 vs lib/yard/cli/yri.rb in yard-0.5.1
- old
+ new
@@ -40,10 +40,10 @@
def cache_object(name, path)
return if path == Registry.yardoc_file
@cache[name] = path
- File.open!(CACHE_FILE, 'w') do |file|
+ File.open(CACHE_FILE, 'w') do |file|
@cache.each do |key, value|
file.puts("#{key} #{value}")
end
end
end
\ No newline at end of file