bootsnap 1.24.5 → 1.24.6

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: 9f514d9a08cf2cbfa470c7d6745fe6388bfb4800a8cf659b9939bc57c93a67e1
4
- data.tar.gz: e623cc84b0ce559e15eeb5ade64617ab6faff50a5004256ecdac5e93267ac5e0
3
+ metadata.gz: c89c653bbd5db473e06179c6606268271c8c540a588cca938662f168d64f2d39
4
+ data.tar.gz: 449c08c79a258dea90e56646c9d62a06e1d696c065ce96c38a7f50ef2fb83f7b
5
5
  SHA512:
6
- metadata.gz: 517950fbb71bbfc7e9ecbc0220849bc4c6fba0f410edb3d08db13d7e1e55f6602cef80c0636ed656cd76eab3c100da317a40d7cf7527dbf97bb4e2b250bc820f
7
- data.tar.gz: 97fdc6fee1ac2945fba9b79ec3e6b8d65f265c5e90fc9da16ced08aff3b09f6f516bcdec46aa703452666dfbfaff3db319b912282f0bb1b5ed3d355d0a24e5a0
6
+ metadata.gz: 2ea80faffec0206b9bb7b3d19c1419b2e7eefc2dc5f4eb03352862b83afa07ed293d0b15f04fc069d89dac1cd4d4636770626e90e6129ffad77f0cfcb8c3f676
7
+ data.tar.gz: 82dcb1a4c934a9de29a8aa935ffe2d1a7c6e23ebf36ea743c3d29a4d9a1d8bd42696cdefd37dacdd21a4102f88f0b605d1cc6faef9c15ccdc6d99eef15f4483e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ # 1.24.6
4
+
5
+ * Fix detection of Ruby bug #22023 on some patch versions of Ruby 3.4, and properly apply the workaround.
6
+
3
7
  # 1.24.5
4
8
 
5
9
  * No longer load the config file by default when setup is done manually. This is so cli applications like homebrew
@@ -403,11 +403,14 @@ bs_cache_path(VALUE cachedir_v, VALUE namespace_v, VALUE path_v, char (* cache_p
403
403
 
404
404
  Check_Type(cachedir_v, T_STRING);
405
405
  Check_Type(path_v, T_STRING);
406
+
407
+ long namespace_len = 0;
406
408
  if (!NIL_P(namespace_v)) {
407
409
  Check_Type(namespace_v, T_STRING);
410
+ namespace_len = RSTRING_LEN(namespace_v);
408
411
  }
409
412
 
410
- if (RSTRING_LEN(cachedir_v) > MAX_CACHEDIR_SIZE) {
413
+ if (RSTRING_LEN(cachedir_v) + namespace_len > MAX_CACHEDIR_SIZE) {
411
414
  rb_raise(rb_eArgError, "cachedir too long");
412
415
  }
413
416
 
@@ -48,13 +48,15 @@ module Bootsnap
48
48
  true
49
49
  end
50
50
 
51
- has_ruby_bug_22023 = if defined?(RubyVM::InstructionSequence) && RubyVM::InstructionSequence.respond_to?(:compile_file_prism)
52
- begin
53
- RubyVM::InstructionSequence.compile_file(File.expand_path("../ruby_bug_22023_canary.rb", __FILE__))
54
- false
55
- rescue SyntaxError
56
- true
57
- end
51
+ has_ruby_bug_22023 = case RUBY_VERSION
52
+ when /^3\.3\./
53
+ true
54
+ when /^3\.4\.(\d+)/
55
+ $1.to_i < 10
56
+ when /^4\.0\.(\d+)/
57
+ $1.to_i < 4
58
+ else
59
+ false
58
60
  end
59
61
 
60
62
  if has_ruby_bug_22023 && RUBY_DESCRIPTION.include?("+PRISM")
@@ -1,7 +1 @@
1
- _f = -> {
2
- case foo
3
- in [one, "a" | "b" => two]
4
- puts "#{one} - #{two}"
5
- end
6
- }
7
1
  _ = "test"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bootsnap
4
- VERSION = "1.24.5"
4
+ VERSION = "1.24.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.5
4
+ version: 1.24.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burke Libbey
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2026-05-22 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: msgpack
@@ -68,7 +67,6 @@ metadata:
68
67
  changelog_uri: https://github.com/rails/bootsnap/blob/main/CHANGELOG.md
69
68
  source_code_uri: https://github.com/rails/bootsnap
70
69
  allowed_push_host: https://rubygems.org
71
- post_install_message:
72
70
  rdoc_options: []
73
71
  require_paths:
74
72
  - lib
@@ -83,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
81
  - !ruby/object:Gem::Version
84
82
  version: '0'
85
83
  requirements: []
86
- rubygems_version: 3.5.22
87
- signing_key:
84
+ rubygems_version: 3.6.9
88
85
  specification_version: 4
89
86
  summary: Boot large ruby/rails apps faster
90
87
  test_files: []