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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96a4b41c02dc01b416bd262f43812b9541479330e4b073d428a6f0186fe07f9a
4
- data.tar.gz: b221e0b0ce1da0552a7c08e1dd1ce84daab07129b834fd2bdec82f01a8645c50
3
+ metadata.gz: 7c66adff2d954aee5f0f0b6beae724c2ec1a2abedb6cc6ffd1b3eb84a0481acf
4
+ data.tar.gz: 91a512ba361da721632679a2942d84128fe301bfc0750b48ec3c98989433072b
5
5
  SHA512:
6
- metadata.gz: 27c071b0a4efceb864931a673f7889fc95110f1ed8de4b50c17c99ecd4d62230321d14a23f346129f1f2198dc6a3222370e5bf8f105f52299799ba78aa361741
7
- data.tar.gz: d5546dd05eaf860178526dc3bdcd33546f80cdcc5ebdb748ebf0b1fe8b813efed15387ea5835f4ab846775261d6df05e4d15df28ff81abb04ab795232435a194
6
+ metadata.gz: 74613cfa0f4b1b337cf60c2e60f8f51c8726321953addfc1166708af567bdae486ea38b5ff9f1ad63ec13bee2c7142be0cde9fd9d68bf2eca4c044936b575f17
7
+ data.tar.gz: 9449f4e75ebe813e5df1fd2c71c1e334853c67feaa0a4e5351a0bcc53d6479993ffc59b37412f81853dce6154e36a165e5e5fb6c311c2ef5cf561afc889a51e2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Unreleased
2
2
 
3
+ # 1.10.1
4
+
5
+ * Fix `Kernel#autoload`'s fallback path always bing executed.
6
+ * Consider `unlink` failing with `ENOENT` as a success.
7
+
3
8
  # 1.10.0
4
9
 
5
10
  * Delay requiring `FileUtils`. (#285)
@@ -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
- errno_provenance = "bs_fetch:unlink";
794
- goto fail_errno;
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
- autoload_without_bootsnap(const, path)
97
+ if fallback
98
+ autoload_without_bootsnap(const, path)
99
+ end
98
100
  end
99
101
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bootsnap
4
- VERSION = "1.10.0"
4
+ VERSION = "1.10.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.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burke Libbey