bootsnap 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -1
- data/lib/bootsnap/load_path_cache/change_observer.rb +1 -0
- data/lib/bootsnap/version.rb +1 -1
- data/shipit.rubygems.yml +0 -4
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ecf22c8b6dc4b98a6f7ac7fe451d3bc7e2d29893c2bc8e9428b0143997e739a
|
4
|
+
data.tar.gz: a57576a6e84953b44bf245e4e43e18a8a2a457a18fe5eb3688e066e9fe893c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '005135654997ebaea3f0975bbc7be897b5d40eaaebec11573709ce83574f2131987441f103e795d45d7c83a4517ede8764e0a43c5e00cb53e84c8e498d9475e7'
|
7
|
+
data.tar.gz: 85cc529d70ec6318d30f1edba6cbed627276ee3c7fb200096960a3cd08a953ad0f018601bf223d0a5216b981edd07c3fa9b54b3192daa8881e0625c2d4f7fa11
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -24,6 +24,10 @@ If you are using Rails, add this to `config/boot.rb` immediately after `require
|
|
24
24
|
require 'bootsnap/setup'
|
25
25
|
```
|
26
26
|
|
27
|
+
Note that bootsnap writes to `tmp/cache`, and that directory *must* be writable. Rails will fail to
|
28
|
+
boot if it is not. If this is unacceptable (e.g. you are running in a read-only container and
|
29
|
+
unwilling to mount in a writable tmpdir), you should remove this line or wrap it in a conditional.
|
30
|
+
|
27
31
|
It's technically possible to simply specify `gem 'bootsnap', require: 'bootsnap/setup'`, but it's
|
28
32
|
important to load Bootsnap as early as possible to get maximum performance improvement.
|
29
33
|
|
@@ -41,12 +45,14 @@ Bootsnap.setup(
|
|
41
45
|
development_mode: env == 'development', # Current working environment, e.g. RACK_ENV, RAILS_ENV, etc
|
42
46
|
load_path_cache: true, # Optimize the LOAD_PATH with a cache
|
43
47
|
autoload_paths_cache: true, # Optimize ActiveSupport autoloads with cache
|
44
|
-
disable_trace: true, #
|
48
|
+
disable_trace: true, # Set `RubyVM::InstructionSequence.compile_option = { trace_instruction: false }`
|
45
49
|
compile_cache_iseq: true, # Compile Ruby code into ISeq cache, breaks coverage reporting.
|
46
50
|
compile_cache_yaml: true # Compile YAML into a cache
|
47
51
|
)
|
48
52
|
```
|
49
53
|
|
54
|
+
**Note that `disable_trace` will break debuggers and tracing.**
|
55
|
+
|
50
56
|
**Protip:** You can replace `require 'bootsnap'` with `BootLib::Require.from_gem('bootsnap',
|
51
57
|
'bootsnap')` using [this trick](https://github.com/Shopify/bootsnap/wiki/Bootlib::Require). This
|
52
58
|
will help optimize boot time further if you have an extremely large `$LOAD_PATH`.
|
data/lib/bootsnap/version.rb
CHANGED
data/shipit.rubygems.yml
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.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burke Libbey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -165,7 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
|
-
|
168
|
+
rubyforge_project:
|
169
|
+
rubygems_version: 2.7.6
|
169
170
|
signing_key:
|
170
171
|
specification_version: 4
|
171
172
|
summary: Boot large ruby/rails apps faster
|