File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1616module SimpleCov
1717 module Formatter
1818 class HTMLFormatter
19+ # Only have a few content types, just hardcode them
20+ CONTENT_TYPES = {
21+ ".js" => "text/javascript" ,
22+ ".png" => "image/png" ,
23+ ".gif" => "image/gif" ,
24+ ".css" => "text/css" ,
25+ } . freeze
26+
1927 def initialize
2028 @branchable_result = SimpleCov . branch_coverage?
2129 @templates = { }
@@ -83,14 +91,6 @@ def assets_path(name)
8391 File . join ( "./assets" , SimpleCov ::Formatter ::HTMLFormatter ::VERSION , name )
8492 end
8593
86- # Only have a few content types, just hardcode them
87- CONTENT_TYPES = {
88- ".js" => "text/javascript" ,
89- ".png" => "image/png" ,
90- ".gif" => "image/gif" ,
91- ".css" => "text/css" ,
92- } . freeze
93-
9494 def asset_inline ( name )
9595 path = File . join ( @public_assets_dir , name )
9696 # Equivalent to `Base64.strict_encode64(File.read(path))` but without depending on Base64
You can’t perform that action at this time.
0 commit comments