bootsnap 0.2.7 → 0.2.8

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
  SHA1:
3
- metadata.gz: 816a76974f21ba229b9c9bfb7f784583c84890d4
4
- data.tar.gz: c3115729f0861706fda13f9f42c252f7e2794f64
3
+ metadata.gz: 3801c5caf4a185998f04ceac9c61e41eb6463cd8
4
+ data.tar.gz: 7293e21f6fa2c55cdd9721c4eab87b33965f6761
5
5
  SHA512:
6
- metadata.gz: e7b56c49843105f262738a7c70ea84c8d46b5a1712ceb0b72a1fcd448157468ed1a35e5a07d57b92c31553a145c8f2af9ed55cc612e564b3e65e2f1eb246bea2
7
- data.tar.gz: d736eb107a78293c6a465491f4df74a8cfe7475c4ab56fc8efba7369fd9622fd00f864caf311ef7b5a625694bef196f60887e4631c18ef2200b3ae6937432ddd
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 == 'enumerator' || feature == 'thread'
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.
@@ -1,3 +1,3 @@
1
1
  module Bootsnap
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
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.7
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-21 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler