Sha256: 0a57c5d062502532e5d41bd3ab855bd80cb5b01ba5ec55fc79cb78b79d0329b9
Contents?: true
Size: 684 Bytes
Versions: 8
Compression:
Stored size: 684 Bytes
Contents
module Bait module SimpleCovSupport def coverage_dir File.join(clone_path, 'coverage') end def simplecov_html_path File.join(coverage_dir, "index.html") end def check_for_simplecov if File.exists? simplecov_html_path self.simplecov = true convert_paths self.broadcast :simplecov, 'supported' self.save end end def convert_paths buffer = "" File.open(simplecov_html_path, "r") do |file| buffer = file.read.gsub("./assets", "/build/#{self.id}/coverage/assets") end File.open(simplecov_html_path, "w") do |file| file.write buffer end end end end
Version data entries
8 entries across 8 versions & 1 rubygems