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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/bootsnap/compile_cache/iseq.rb +7 -1
- 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: 86fd14b9f3a5920de24b3faf51c01e36ee19b20fc810ee6780c2ba8447871db9
|
|
4
|
+
data.tar.gz: 4df2ffc0617e1957f264e7fb72002cec56ffb8bfe6f84534343c1b852c37e5e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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(
|
|
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
|
|
data/lib/bootsnap/version.rb
CHANGED