bootsnap 1.24.0 → 1.24.1

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: 9680e880d828e4c61704db75e793e97b4bcaa9142e37335b697d28a14c1d7f9c
4
- data.tar.gz: 876136914c8d89c771304fffc2d8587b3b15b0eb6abbf684ad5d4adb39b98550
3
+ metadata.gz: 86fd14b9f3a5920de24b3faf51c01e36ee19b20fc810ee6780c2ba8447871db9
4
+ data.tar.gz: 4df2ffc0617e1957f264e7fb72002cec56ffb8bfe6f84534343c1b852c37e5e4
5
5
  SHA512:
6
- metadata.gz: 84bd60feda93f48dfeb2c8149c72a72a619050eb163decf83bf14d78173a3aa52adff84dc6a22f7821ee7d1c937a0449f96686f6199c77e53ff990f123c30359
7
- data.tar.gz: 41d345dee52323ba80df2c8165bad4a4ea6c04780d8eb7e459a5e766973b797f68267ac63fbad38a3add47e59041aa8d7786ddb43b5ed0cfb7ac98743cd70ca5
6
+ metadata.gz: 32879429b4f7473a5ed1ea6e32799a3d45d2203a46e867282d0e503396b40acce0a69faf2e83895271f80a369247fb4eeeae63b0022c25f805e5ed9fa073a581
7
+ data.tar.gz: f354b078188dfb893c6690a80aa830498bce489e868c132b29317020d73b455528914ce0880f748b8c5f2da2845df61fd2d986b142c58a0d8082b42e62329392
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Unreleased
2
2
 
3
+ # 1.24.1
4
+
5
+ * Fix encoding of Ruby source files loaded when `BOOTSNAP_READONLY` is set.
6
+ Files would incorectly be loaded in `ASCII-8BIT` causing literal strings outside
7
+ the pure ASCII range to have `ASCII-8BIT` encoding instead of `UTF-8`.
8
+ This bug was introduced in `1.24.0`.
9
+
3
10
  # 1.24.0
4
11
 
5
12
  * Added a hook API to customize Ruby compilation.
@@ -66,7 +66,13 @@ module Bootsnap
66
66
  end
67
67
 
68
68
  def input_to_output(source, path, _kwargs)
69
- RubyVM::InstructionSequence.compile(source, path, path, nil, @compile_options)
69
+ RubyVM::InstructionSequence.compile(
70
+ source.force_encoding(Encoding.default_external),
71
+ path,
72
+ path,
73
+ nil,
74
+ @compile_options,
75
+ )
70
76
  end
71
77
  end
72
78
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bootsnap
4
- VERSION = "1.24.0"
4
+ VERSION = "1.24.1"
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.24.0
4
+ version: 1.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burke Libbey