lib/rshade/formatter/trace/html.rb in rshade-0.2.0 vs lib/rshade/formatter/trace/html.rb in rshade-0.2.1

- old
+ new

@@ -22,12 +22,10 @@ content = erb_template.result_with_hash({ json: data.to_json }) write_to_file(content) end def write_to_file(data) - ::File.open(::File.join(RShade::Config.store_dir, FILE_NAME), 'w+') do |f| - f.write data - end + ::File.write(::File.join(RShade::Config.store_dir, FILE_NAME), data) end def template @template ||= ::File.read(::File.join(::RShade::Config.root_dir, TEMPLATE)) end