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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40694ca2512ff7861584a4f9cee05e424c3d9319f3b36c7f4f45f9196d2d9f19
4
- data.tar.gz: '087c4f2dafdd51a6a3d0a69d31aadabfe6ef90bf2ab12b861f2a288d7b16c04a'
3
+ metadata.gz: 0ecf22c8b6dc4b98a6f7ac7fe451d3bc7e2d29893c2bc8e9428b0143997e739a
4
+ data.tar.gz: a57576a6e84953b44bf245e4e43e18a8a2a457a18fe5eb3688e066e9fe893c2c
5
5
  SHA512:
6
- metadata.gz: ecbabde06c5f871702a000128e4dbc15d60fe0e16ab7adb4a8bb40b1c3b5b5f54b39c6927dc5aea9e49242d7e7f5deb596c42c44f8c2b8f998f835ec5b058b47
7
- data.tar.gz: d566ffe7c3048f57c3c4fcd925d5e8ff5a722fc2622628e26571361e7a0fbdb5cbe8c724d45f2fc8ba09d0de614c5fad87f1875ecc99a08a34aab3afa7665fe1
6
+ metadata.gz: '005135654997ebaea3f0975bbc7be897b5d40eaaebec11573709ce83574f2131987441f103e795d45d7c83a4517ede8764e0a43c5e00cb53e84c8e498d9475e7'
7
+ data.tar.gz: 85cc529d70ec6318d30f1edba6cbed627276ee3c7fb200096960a3cd08a953ad0f018601bf223d0a5216b981edd07c3fa9b54b3192daa8881e0625c2d4f7fa11
@@ -1,3 +1,7 @@
1
+ # 1.4.1
2
+
3
+ * Don't register change observers to frozen objects.
4
+
1
5
  # 1.4.0
2
6
 
3
7
  * When running in development mode, always fall back to a full path scan on LoadError, making
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, # (Alpha) Set `RubyVM::InstructionSequence.compile_option = { trace_instruction: false }`
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`.
@@ -53,6 +53,7 @@ module Bootsnap
53
53
  end
54
54
 
55
55
  def self.register(observer, arr)
56
+ return if arr.frozen? # can't register observer, but no need to.
56
57
  arr.instance_variable_set(:@lpc_observer, observer)
57
58
  arr.extend(ArrayMixin)
58
59
  end
@@ -1,3 +1,3 @@
1
1
  module Bootsnap
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -1,4 +0,0 @@
1
- dependencies:
2
- bundler:
3
- without:
4
- - development
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.0
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 00:00:00.000000000 Z
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
- rubygems_version: 3.0.2
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