bootsnap 0.2.7 → 0.2.8
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/lib/bootsnap/load_path_cache/cache.rb +7 -1
- data/lib/bootsnap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3801c5caf4a185998f04ceac9c61e41eb6463cd8
|
4
|
+
data.tar.gz: 7293e21f6fa2c55cdd9721c4eab87b33965f6761
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2018de1df7035ec7986678485e5cb6b474b4b25d0cf6964ac8bd08e22751a9086d3cbca175641270cada4e4907e1289b2a557c3da715c2b2f9dcbafdaf39536
|
7
|
+
data.tar.gz: ad01618411085a30b4920f0ed3241c1888e3182ed74e84feaf891a9824b93112355c49e4d9adea85b94a7b769d84a63417e48c649fedeeafb5742127748f6faf
|
@@ -22,6 +22,12 @@ module Bootsnap
|
|
22
22
|
@mutex.synchronize { @dirs[dir] }
|
23
23
|
end
|
24
24
|
|
25
|
+
BUILTIN_FEATURES = {
|
26
|
+
'enumerator' => nil,
|
27
|
+
'thread' => nil,
|
28
|
+
'thread.rb' => nil
|
29
|
+
}.freeze
|
30
|
+
|
25
31
|
# Try to resolve this feature to an absolute path without traversing the
|
26
32
|
# loadpath.
|
27
33
|
def find(feature)
|
@@ -48,7 +54,7 @@ module Bootsnap
|
|
48
54
|
# doesn't correspond to any entry on the filesystem. Ruby lies. So we
|
49
55
|
# lie too, forcing our monkeypatch to return false like ruby would.
|
50
56
|
when ""
|
51
|
-
raise LoadPathCache::ReturnFalse if feature
|
57
|
+
raise LoadPathCache::ReturnFalse if BUILTIN_FEATURES.key?(feature)
|
52
58
|
nil
|
53
59
|
# Ruby allows specifying native extensions as '.so' even when DLEXT
|
54
60
|
# is '.bundle'. This is where we handle that case.
|
data/lib/bootsnap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootsnap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burke Libbey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|