bootsnap 1.1.3-java → 1.1.4-java
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/CHANGELOG.md +4 -0
- data/lib/bootsnap/load_path_cache/core_ext/active_support.rb +10 -11
- 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: 11e26b3ba0d58a77f3c0cdef644a1cb909fcee2c
|
4
|
+
data.tar.gz: 72aece9a04a051b94c72fe259bd28e7b1b5890f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70ab2d95fdf8783cee2923bdebc1c1ad50bcced6c7dee3d407c7b8fe7599783abcfc635f1ea3a51b889829c885a70ca7eab0007c2f148d083f03bcb44b1879fd
|
7
|
+
data.tar.gz: b3db3cfefb5de516143892bf2293c0d27ff9f7815fe559b88860eb8c12ce5c784684c8f15dcdbb0fdb70beb0352353aa96c68a7a8317e0e12c34a1ab2ebfb8ee
|
data/CHANGELOG.md
CHANGED
@@ -2,15 +2,6 @@ module Bootsnap
|
|
2
2
|
module LoadPathCache
|
3
3
|
module CoreExt
|
4
4
|
module ActiveSupport
|
5
|
-
def self.with_bootsnap_fallback(error)
|
6
|
-
yield
|
7
|
-
rescue error => e
|
8
|
-
# NoMethodError is a NameError, but we only want to handle actual
|
9
|
-
# NameError instances.
|
10
|
-
raise unless e.class == error
|
11
|
-
without_bootsnap_cache { yield }
|
12
|
-
end
|
13
|
-
|
14
5
|
def self.without_bootsnap_cache
|
15
6
|
prev = Thread.current[:without_bootsnap_cache] || false
|
16
7
|
Thread.current[:without_bootsnap_cache] = true
|
@@ -50,13 +41,21 @@ module Bootsnap
|
|
50
41
|
# behaviour. The gymnastics here are a bit awkward, but it prevents
|
51
42
|
# 200+ lines of monkeypatches.
|
52
43
|
def load_missing_constant(from_mod, const_name)
|
53
|
-
|
44
|
+
super
|
45
|
+
rescue NameError => e
|
46
|
+
# NoMethodError is a NameError, but we only want to handle actual
|
47
|
+
# NameError instances.
|
48
|
+
raise unless e.class == NameError
|
49
|
+
raise if from_mod.const_defined?(const_name)
|
50
|
+
without_bootsnap_cache { super }
|
54
51
|
end
|
55
52
|
|
56
53
|
# Signature has changed a few times over the years; easiest to not
|
57
54
|
# reiterate it with version polymorphism here...
|
58
55
|
def depend_on(*)
|
59
|
-
|
56
|
+
super
|
57
|
+
rescue LoadError
|
58
|
+
without_bootsnap_cache { super }
|
60
59
|
end
|
61
60
|
end
|
62
61
|
end
|
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: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Burke Libbey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|