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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f2ae1762883b8143628b1102008f9c54a6fedb9
4
- data.tar.gz: 5b7398ee6e10fabd8a8aa3a2b9cc467875369d84
3
+ metadata.gz: 9f7b6b3598fd3e0b22a01b7b047ee9f441e07d88
4
+ data.tar.gz: cbdaa36b01542a900a2bd3daa059632d07d24d98
5
5
  SHA512:
6
- metadata.gz: 40ad1d0dd3a9b3b5cbd01d909d35463af71778d55b9327915963e1b78988a0a86c9bc0d9886ec09fa6a8a8d143bcbd46dcc76460de281531a6805ec83fabca2b
7
- data.tar.gz: b68ccc4e446299615a7b9096e7781ee02fd4e3d9f79972dc2c1850a5b4b3083f0b7535febcebf32e10ad01a0d9826d625360cad5328f6f9c8b8ffb96052e118a
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
@@ -1,3 +1,3 @@
1
1
  module Bootsnap
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
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.4
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-12 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler