simplecov-html 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39f6a1e464a4a4dc7f8909490225ad044486055ae1cefe8978738c95651c9ad8
4
- data.tar.gz: b406a23cdb0e57671df0e919073aabb7147b0166521c630ac39ab3c0bf659af4
3
+ metadata.gz: a569e518b4658566f6c74bde026cf0b489b16ff7b9f541fbeae4bf44754fa6d7
4
+ data.tar.gz: a67d0c6e72883aaed402a3d5a6e315b1536a7d4f6ceb968ef8d8d2378701299a
5
5
  SHA512:
6
- metadata.gz: 9cecd560f071e8b9f37b7fa70354c49748704f69d318a35e844cfe03848fba01b01bdb4d4e973c5219d0aeda318e5f4abc143e78d4beaeca13b27e1ae94594b5
7
- data.tar.gz: 51b3f7d1541d4a9bddb1e05a20a0c03dc6cde3885c366b914dfd4bdb4dbdea2283a26bfd648b631e1deda38acd4cd6d91d131c3271b6fafe95e4d82272328d6f
6
+ metadata.gz: 00ffcd1b0f918e85bf88073dfe4df938e972575c8efec45195b376349b24775cad6ee0b7310fae8af910a8c9e45f9e2c55e554dbc2ff8458f6da6674f2d98637
7
+ data.tar.gz: bf5324db14d60e9f9a6c53569a5cd0effd8814b8e7d5ac5160416b12e1bcf05e2c839b5c51742a1c614f1370c353d7161f8ad9f286afa8028d2585302ab03981
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 0.13.1 (2024-09-09)
2
+ ==================
3
+
4
+ ## Misc
5
+ * Drop base64 dependency. See [#144](https://github.com/simplecov-ruby/simplecov-html/pull/144) (thanks [@Earlopain](https://github.com/Earlopain)).
6
+
1
7
  0.13.0 (2024-09-08)
2
8
  ==================
3
9
 
@@ -3,7 +3,7 @@
3
3
  module SimpleCov
4
4
  module Formatter
5
5
  class HTMLFormatter
6
- VERSION = "0.13.0"
6
+ VERSION = "0.13.1"
7
7
  end
8
8
  end
9
9
  end
@@ -5,7 +5,6 @@ require "cgi"
5
5
  require "fileutils"
6
6
  require "digest/sha1"
7
7
  require "time"
8
- require "base64"
9
8
 
10
9
  # Ensure we are using a compatible version of SimpleCov
11
10
  major, minor, patch = SimpleCov::VERSION.scan(/\d+/).first(3).map(&:to_i)
@@ -94,7 +93,8 @@ module SimpleCov
94
93
 
95
94
  def asset_inline(name)
96
95
  path = File.join(@public_assets_dir, name)
97
- base64_content = Base64.strict_encode64 File.read(path)
96
+ # Equivalent to `Base64.strict_encode64(File.read(path))` but without depending on Base64
97
+ base64_content = [File.read(path)].pack("m0")
98
98
 
99
99
  content_type = CONTENT_TYPES[File.extname(name)]
100
100
 
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.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2024-09-08 00:00:00.000000000 Z
10
+ date: 2024-09-09 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:
@@ -17,7 +17,6 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - ".document"
20
- - ".tool-versions"
21
20
  - CHANGELOG.md
22
21
  - LICENSE
23
22
  - README.md
data/.tool-versions DELETED
@@ -1 +0,0 @@
1
- ruby 2.7.1