mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
6502c5ba01
* Update extra_runtime_dependencies test to test master proccess's gems The `extra_runtime_dependencies` option allows one to activate gems in the puma master process after "pruning" the master process with `prune_bundler`. This is useful for activating gems that need to be loaded in the master process, such as `puma_worker_killer`. The integration test for `extra_runtime_dependencies` tested the `$LOAD_PATH` of the worker process instead. Since workers are forked from the master, it's normally fine to do this, but we might as well test the master process's `$LOAD_PATH` directly if we can. * Add test to refute that nio4r is loaded into puma master process * Remove nio4r from puma master $LOAD_PATH * Remove list of gems to activate from puma-wild * Update History.md Co-authored-by: Nate Berkopec <nate.berkopec@gmail.com>
7 lines
138 B
Ruby
7 lines
138 B
Ruby
prune_bundler true
|
|
extra_runtime_dependencies ["rdoc"]
|
|
before_fork do
|
|
$LOAD_PATH.each do |path|
|
|
puts "LOAD_PATH: #{path}"
|
|
end
|
|
end
|