bootsnap 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootsnap/load_path_cache/path.rb +5 -2
- 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: 9f7b6b3598fd3e0b22a01b7b047ee9f441e07d88
|
4
|
+
data.tar.gz: cbdaa36b01542a900a2bd3daa059632d07d24d98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e134eb61ffb476678c377a014a8f9654bd6d3c46f371a67df154a472c2db1e1a5bf9b5075270021965fedd6b720f4496aee02b90c3e30cf82ef7ac44d3a4cc
|
7
|
+
data.tar.gz: 5ca1434b6888a5976e565587e59b9c25c58a307a1a6b4c56520787683c271ce5a51b0ea481b4793adea2a08c35b29ac81b25be956a2de99bc3075217a4abebc3
|
@@ -75,13 +75,16 @@ module Bootsnap
|
|
75
75
|
STABLE = :stable
|
76
76
|
VOLATILE = :volatile
|
77
77
|
|
78
|
+
# Built-in ruby lib stuff doesn't change, but things can occasionally be
|
79
|
+
# installed into sitedir, which often lives under prefix.
|
78
80
|
RUBY_PREFIX = RbConfig::CONFIG['prefix']
|
81
|
+
SITE_DIR = RbConfig::CONFIG['sitedir']
|
79
82
|
|
80
83
|
def stability
|
81
84
|
@stability ||= begin
|
82
|
-
if Gem.path.detect { |p| path.start_with?(p) }
|
85
|
+
if Gem.path.detect { |p| path.to_s.start_with?(p) }
|
83
86
|
STABLE
|
84
|
-
elsif path.start_with?(RUBY_PREFIX)
|
87
|
+
elsif path.start_with?(RUBY_PREFIX) && !path.start_with?(SITE_DIR)
|
85
88
|
STABLE
|
86
89
|
else
|
87
90
|
VOLATILE
|
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.5
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|