bootsnap 1.4.0-java → 1.4.1-java

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: b52dcf497cc21a7ce9e7a90d1ce3356c90bfecb2dca0075e9ed18ccd5bd85f46
4
- data.tar.gz: 848f3b1c68bc8aff09e7f33990d2d25d64fd0e4349ce5ba5ad99696b06eb69bd
3
+ metadata.gz: bbe2d60be7b9970d1b993f144e28071bf85ebb528f24df8afbc00e5f4a1df6da
4
+ data.tar.gz: 2cda0fdec14bcedf1c6e232e75380ee7cabbdec2953428912563a83c39bb9472
5
5
  SHA512:
6
- metadata.gz: 68f89030acc8fca5f2abaf210ed33cb3cb6f02bf587197f87db2869421496dfc504e0ed1ab04dfc44b3ce1d6d0a5f60fbc4a4520082b833c3cc3d12dcc4751b3
7
- data.tar.gz: e4fbeab4eae5e93bbde91b95274cb54521733a06780e1f6d677eb212124ae248370f29e941ed89bcb72cb4ffaa88e4c71a73572f6371376102bd97df89751a9c
6
+ metadata.gz: 1b8b3cb9986921f82c8c3489c37e33a576587d93ef09fc94b5c7e16e6682d86c54283b34bc659b2a5f1bb60f14d2c1ae272ef2e4a3089d623a36e6e4529c5629
7
+ data.tar.gz: 85efef308c58141634984fbda14d393f7555333456c57b99e10ae7f8ddc592c3623cbefd0ffc34c2217092407014667dad3744b4b86d367a0f91a82df3f9853c
@@ -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: java
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
  requirement: !ruby/object:Gem::Requirement