bootsnap 1.26.1 → 1.26.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bootsnap/compile_cache/iseq.rb +5 -2
- data/lib/bootsnap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b69323030b00b9977e9d011532404060248ea6d309ce75177ce67bb82cd1ded4
|
|
4
|
+
data.tar.gz: 84efc3fe7ce8032b09574c3c0672459320bc8b90df6f22685924b1ec56c135ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c6e0641ded9b3d1a3d21f5280e3e466045f33766868d33f41e146d89b6f181639287ee478eea8be0cc6c5d22370fa58a39c09c4625bff767260ef5f5b801c4c
|
|
7
|
+
data.tar.gz: b44a4c299bbe0741080ecc1f076f0522cdd200bc89cc7edab1a019a3a49e9f71ab7674e1e20fc3e4bd7859f1a9390e3cb09215f7a896ae5634a807643af6ff85
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Unreleased
|
|
2
2
|
|
|
3
|
+
# 1.26.2
|
|
4
|
+
|
|
5
|
+
* Fix the `Bootsnap.enable_frozen_string_literal` with coverage warning being wrongly emitted on Ruby `4.0.10+`.
|
|
6
|
+
|
|
3
7
|
# 1.26.1
|
|
4
8
|
|
|
5
9
|
* Fix `Bootsnap.enable_frozen_string_literal(app_only: true)` raising `NameError` when the compile cache is disabled.
|
|
@@ -17,6 +17,10 @@ module Bootsnap
|
|
|
17
17
|
def supported?
|
|
18
18
|
CompileCache.supported? && defined?(RubyVM)
|
|
19
19
|
end
|
|
20
|
+
|
|
21
|
+
def coverage_supported?(ruby_version = RUBY_VERSION)
|
|
22
|
+
Gem::Version.new(ruby_version) >= Gem::Version.new("4.0.4")
|
|
23
|
+
end
|
|
20
24
|
end
|
|
21
25
|
|
|
22
26
|
if supported?
|
|
@@ -127,7 +131,6 @@ module Bootsnap
|
|
|
127
131
|
|
|
128
132
|
DEFAULT = Compiler.new
|
|
129
133
|
FROZEN_STRING_LITERAL = Compiler.new("-fstr", {frozen_string_literal: true}.freeze)
|
|
130
|
-
COVERAGE_SUPPORTED = RUBY_VERSION >= "4.0.4"
|
|
131
134
|
|
|
132
135
|
@default_compiler = DEFAULT
|
|
133
136
|
@coverage_support_warning_emitted = false
|
|
@@ -139,7 +142,7 @@ module Bootsnap
|
|
|
139
142
|
if coverage_on?
|
|
140
143
|
return nil if compiler.equal?(DEFAULT)
|
|
141
144
|
|
|
142
|
-
if
|
|
145
|
+
if coverage_supported?
|
|
143
146
|
return compiler.input_to_output(nil, path.to_s, nil)
|
|
144
147
|
elsif !@coverage_support_warning_emitted
|
|
145
148
|
@coverage_support_warning_emitted = true
|
data/lib/bootsnap/version.rb
CHANGED