bootsnap 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/CHANGELOG.md +4 -0
- data/README.md +4 -1
- data/lib/bootsnap/load_path_cache/core_ext/active_support.rb +7 -2
- data/lib/bootsnap/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0de1ff4a8bdd4478f422a07fba3981778828604
|
4
|
+
data.tar.gz: d9b7d5cc09e58be7bc31382be47d72870c60bf7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f153d3e9591eb2fb8d2efecb958cbe21f61d93040f891ef63809285418cf76b3883d5490b3aa60d656bd066f96d7489317b13833bdf465058f7a339547177f6c
|
7
|
+
data.tar.gz: be2f217b2481c5d3eb44226d9861d2890dc7901143ab056e0d1f2fbd5e4f152ef497fb1cd67481ae44c4723dc5b0c93a6f6f6faebd705f4ce321aa0e5949bd2f
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
# Bootsnap
|
1
|
+
# Bootsnap ![CI status](https://travis-ci.org/Shopify/bootsnap.svg?branch=master)
|
2
2
|
|
3
3
|
**Beta-quality. See [the last section of this README](#trustworthiness).**
|
4
4
|
|
5
|
+
**`compile_cache_*` features are only supported on MacOS (extremely likely to error on Linux;
|
6
|
+
won't even compile on other platforms).**
|
7
|
+
|
5
8
|
Bootsnap is a library that plugs into a number of Ruby and (optionally) `ActiveSupport` and `YAML`
|
6
9
|
methods to optimize and cache expensive computations. See [the How Does This Work section](#how-does-this-work) for more information.
|
7
10
|
|
@@ -4,7 +4,10 @@ module Bootsnap
|
|
4
4
|
module ActiveSupport
|
5
5
|
def self.with_bootsnap_fallback(error)
|
6
6
|
yield
|
7
|
-
rescue error
|
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
|
8
11
|
without_bootsnap_cache { yield }
|
9
12
|
end
|
10
13
|
|
@@ -50,7 +53,9 @@ module Bootsnap
|
|
50
53
|
CoreExt::ActiveSupport.with_bootsnap_fallback(NameError) { super }
|
51
54
|
end
|
52
55
|
|
53
|
-
|
56
|
+
# Signature has changed a few times over the years; easiest to not
|
57
|
+
# reiterate it with version polymorphism here...
|
58
|
+
def depend_on(*)
|
54
59
|
CoreExt::ActiveSupport.with_bootsnap_fallback(LoadError) { super }
|
55
60
|
end
|
56
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: 0.2.
|
4
|
+
version: 0.2.15
|
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-05-
|
11
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,6 +118,8 @@ extra_rdoc_files: []
|
|
118
118
|
files:
|
119
119
|
- ".gitignore"
|
120
120
|
- ".rubocop.yml"
|
121
|
+
- ".travis.yml"
|
122
|
+
- CHANGELOG.md
|
121
123
|
- CONTRIBUTING.md
|
122
124
|
- Gemfile
|
123
125
|
- LICENSE
|