Sha256: 04173716f247d55e87e5f127ae192ef046f31b52c1fe9a279be4844af9129391
Contents?: true
Size: 440 Bytes
Versions: 38
Compression:
Stored size: 440 Bytes
Contents
require "json" module SimpleCov module LastRun class << self def last_run_path File.join(SimpleCov.coverage_path, ".last_run.json") end def read return nil unless File.exist?(last_run_path) JSON.parse(File.read(last_run_path)) end def write(json) File.open(last_run_path, "w+") do |f| f.puts JSON.pretty_generate(json) end end end end end
Version data entries
38 entries across 38 versions & 10 rubygems