bootsnap 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/ext/bootsnap/bootsnap.c +6 -2
- data/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb +3 -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: 7c66adff2d954aee5f0f0b6beae724c2ec1a2abedb6cc6ffd1b3eb84a0481acf
|
4
|
+
data.tar.gz: 91a512ba361da721632679a2942d84128fe301bfc0750b48ec3c98989433072b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74613cfa0f4b1b337cf60c2e60f8f51c8726321953addfc1166708af567bdae486ea38b5ff9f1ad63ec13bee2c7142be0cde9fd9d68bf2eca4c044936b575f17
|
7
|
+
data.tar.gz: 9449f4e75ebe813e5df1fd2c71c1e334853c67feaa0a4e5351a0bcc53d6479993ffc59b37412f81853dce6154e36a165e5e5fb6c311c2ef5cf561afc889a51e2
|
data/CHANGELOG.md
CHANGED
data/ext/bootsnap/bootsnap.c
CHANGED
@@ -790,8 +790,12 @@ bs_fetch(char * path, VALUE path_v, char * cache_path, VALUE handler, VALUE args
|
|
790
790
|
/* If output_data is nil, delete the cache entry and generate the output
|
791
791
|
* using input_to_output */
|
792
792
|
if (unlink(cache_path) < 0) {
|
793
|
-
|
794
|
-
|
793
|
+
/* If the cache was already deleted, it might be that another process did it before us.
|
794
|
+
* No point raising an error */
|
795
|
+
if (errno != ENOENT) {
|
796
|
+
errno_provenance = "bs_fetch:unlink";
|
797
|
+
goto fail_errno;
|
798
|
+
}
|
795
799
|
}
|
796
800
|
bs_input_to_output(handler, args, input_data, &output_data, &exception_tag);
|
797
801
|
if (exception_tag != 0) goto raise;
|
@@ -94,6 +94,8 @@ class Module
|
|
94
94
|
ensure
|
95
95
|
# We raise from `ensure` so that any further exception don't have FallbackScan as a cause
|
96
96
|
# See: https://github.com/Shopify/bootsnap/issues/250
|
97
|
-
|
97
|
+
if fallback
|
98
|
+
autoload_without_bootsnap(const, path)
|
99
|
+
end
|
98
100
|
end
|
99
101
|
end
|
data/lib/bootsnap/version.rb
CHANGED