simplecov-html 0.13.1 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a569e518b4658566f6c74bde026cf0b489b16ff7b9f541fbeae4bf44754fa6d7
4
- data.tar.gz: a67d0c6e72883aaed402a3d5a6e315b1536a7d4f6ceb968ef8d8d2378701299a
3
+ metadata.gz: ad238948a5b036d69b09b10f3e1738bcdccfb714ae4416080ac67f2977727e3c
4
+ data.tar.gz: df6f5d277fdfbc15cfca11f8d38597b8d0d0779b7ce91118de700d537542755c
5
5
  SHA512:
6
- metadata.gz: 00ffcd1b0f918e85bf88073dfe4df938e972575c8efec45195b376349b24775cad6ee0b7310fae8af910a8c9e45f9e2c55e554dbc2ff8458f6da6674f2d98637
7
- data.tar.gz: bf5324db14d60e9f9a6c53569a5cd0effd8814b8e7d5ac5160416b12e1bcf05e2c839b5c51742a1c614f1370c353d7161f8ad9f286afa8028d2585302ab03981
6
+ metadata.gz: c614b1955ed30748c919d5053b8a0db0ed21c5bf61465dd3a6b881b2b6e5676445a01a8928e3d1af9ac6721f851896a0826b250c274495f2addcd4f6b4990ad6
7
+ data.tar.gz: e9b4bf13db9062642ab822132affeb5642ae8c1f197e5d5b71968f1c3cc73aeb37ffd3ad838164278cb60ce211a2b338441e4ebdcbc9c3318dfedec8a34ba48b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 0.13.2 (2025-07-16)
2
+ ==================
3
+
4
+ ## Misc
5
+ * Stop requiring cgi for Ruby 3.5 compatibility. See [#149](https://github.com/simplecov-ruby/simplecov-html/pull/149) (thanks [@Earlopain](https://github.com/Earlopain)).
6
+
1
7
  0.13.1 (2024-09-09)
2
8
  ==================
3
9
 
@@ -3,7 +3,7 @@
3
3
  module SimpleCov
4
4
  module Formatter
5
5
  class HTMLFormatter
6
- VERSION = "0.13.1"
6
+ VERSION = "0.13.2"
7
7
  end
8
8
  end
9
9
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "erb"
4
- require "cgi"
5
4
  require "fileutils"
6
5
  require "digest/sha1"
7
6
  require "time"
@@ -16,6 +15,14 @@ end
16
15
  module SimpleCov
17
16
  module Formatter
18
17
  class HTMLFormatter
18
+ # Only have a few content types, just hardcode them
19
+ CONTENT_TYPES = {
20
+ ".js" => "text/javascript",
21
+ ".png" => "image/png",
22
+ ".gif" => "image/gif",
23
+ ".css" => "text/css",
24
+ }.freeze
25
+
19
26
  def initialize
20
27
  @branchable_result = SimpleCov.branch_coverage?
21
28
  @templates = {}
@@ -83,14 +90,6 @@ module SimpleCov
83
90
  File.join("./assets", SimpleCov::Formatter::HTMLFormatter::VERSION, name)
84
91
  end
85
92
 
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
-
94
93
  def asset_inline(name)
95
94
  path = File.join(@public_assets_dir, name)
96
95
  # Equivalent to `Base64.strict_encode64(File.read(path))` but without depending on Base64
@@ -48,7 +48,7 @@
48
48
  <% end %>
49
49
  <% end %>
50
50
 
51
- <code class="ruby"><%= CGI.escapeHTML(line.src.chomp) %></code>
51
+ <code class="ruby"><%= ERB::Util.html_escape(line.src.chomp) %></code>
52
52
  </li>
53
53
  </div>
54
54
  <% end %>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov-html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2024-09-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Default HTML formatter for SimpleCov code coverage tool for ruby 2.4+
13
13
  email:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.6.0.dev
78
+ rubygems_version: 3.7.0.dev
79
79
  specification_version: 4
80
80
  summary: Default HTML formatter for SimpleCov code coverage tool for ruby 2.4+
81
81
  test_files: []