bootsnap 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f7b6b3598fd3e0b22a01b7b047ee9f441e07d88
4
- data.tar.gz: cbdaa36b01542a900a2bd3daa059632d07d24d98
3
+ metadata.gz: a8750fe04b604f43f92808c5a5455dc260a92035
4
+ data.tar.gz: b1a6b68a580b490fde141c836d557ce1c168e3df
5
5
  SHA512:
6
- metadata.gz: e0e134eb61ffb476678c377a014a8f9654bd6d3c46f371a67df154a472c2db1e1a5bf9b5075270021965fedd6b720f4496aee02b90c3e30cf82ef7ac44d3a4cc
7
- data.tar.gz: 5ca1434b6888a5976e565587e59b9c25c58a307a1a6b4c56520787683c271ce5a51b0ea481b4793adea2a08c35b29ac81b25be956a2de99bc3075217a4abebc3
6
+ metadata.gz: 949d1fde8e3784630617d5a274b5e488ae6a80cde814241e10b02bc75a0c39c8887dd794a680716f70d092b56659c1195105dcfa0114cbc7634d31beadb8edf3
7
+ data.tar.gz: 4fe26048471dceafed84a37fd693648ac09d9a485103df7d78cb9ea110e4fa108006ca1e61c551c4a765612534f550e136456adf99fbe0aaf3e28ab7db20f5fc
@@ -20,7 +20,7 @@ module Bootsnap
20
20
  attr_reader :path
21
21
 
22
22
  def initialize(path)
23
- @path = path
23
+ @path = path.to_s
24
24
  end
25
25
 
26
26
  # Return a list of all the requirable files and all of the subdirectories
@@ -82,7 +82,7 @@ module Bootsnap
82
82
 
83
83
  def stability
84
84
  @stability ||= begin
85
- if Gem.path.detect { |p| path.to_s.start_with?(p) }
85
+ if Gem.path.detect { |p| path.start_with?(p.to_s) }
86
86
  STABLE
87
87
  elsif path.start_with?(RUBY_PREFIX) && !path.start_with?(SITE_DIR)
88
88
  STABLE
@@ -12,6 +12,7 @@ module Bootsnap
12
12
  BUNDLE_PATH = (Bundler.bundle_path.cleanpath.to_s << LoadPathCache::SLASH).freeze
13
13
 
14
14
  def self.call(path)
15
+ path = path.to_s
15
16
  raise RelativePathNotSupported unless path.start_with?(SLASH)
16
17
 
17
18
  relative_slice = (path.size + 1)..-1
@@ -1,3 +1,3 @@
1
1
  module Bootsnap
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
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.5
4
+ version: 0.2.6
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-18 00:00:00.000000000 Z
11
+ date: 2017-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler