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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60ae2eb0837949aa24f9b7a0f26091e3dbfc0254824da896199c376cf5040701
4
- data.tar.gz: e443d064c6dcfbf2dd9265b54fbf65972154f5104c8f675f1595baa04eb78aae
3
+ metadata.gz: b69323030b00b9977e9d011532404060248ea6d309ce75177ce67bb82cd1ded4
4
+ data.tar.gz: 84efc3fe7ce8032b09574c3c0672459320bc8b90df6f22685924b1ec56c135ca
5
5
  SHA512:
6
- metadata.gz: d216ef8ec68ba89acdff4fb8c40288feb4f1363705d39b10c25172e0d426cf53609404c73d761ada31f7c1ad880da6bc247d637bb6cb2e4393699de287c88c62
7
- data.tar.gz: 5dffa5c439dfbb15e020f2704f2400b44f8c0dfe5c14afbae18d68f7f1cc33f06cb6fce6ccb315ffd32b309b460e955e247af399d4ba2712fd48dd5e40ab1add
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 COVERAGE_SUPPORTED
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bootsnap
4
- VERSION = "1.26.1"
4
+ VERSION = "1.26.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.1
4
+ version: 1.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burke Libbey