lib/brakeman/report/ignore/config.rb in brakeman-min-3.1.5 vs lib/brakeman/report/ignore/config.rb in brakeman-min-3.2.0.pre1

- old
+ new

@@ -1,7 +1,7 @@ require 'set' -require 'multi_json' +require 'json' module Brakeman class IgnoreConfig attr_reader :shown_warnings, :ignored_warnings attr_accessor :file @@ -73,11 +73,11 @@ end # Read configuration to file def read_from_file file = @file if File.exist? file - @already_ignored = MultiJson.load(File.read(file), :symbolize_keys => true)[:ignored_warnings] + @already_ignored = JSON.parse(File.read(file), :symbolize_names => true)[:ignored_warnings] else Brakeman.notify "[Notice] Could not find ignore configuration in #{file}" @already_ignored = [] end @@ -105,10 +105,10 @@ :updated => Time.now.to_s, :brakeman_version => Brakeman::Version } File.open file, "w" do |f| - f.puts MultiJson.dump(output, :pretty => true) + f.puts JSON.pretty_generate(output) end end # Save old ignored warnings and newly ignored ones def save_with_old