1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Fix typo "c" -> "user_config" for --extra_runtime_dependencies (#2050)

* Fix typo "c" -> "user_config"

* Changelog entry on #2050
This commit is contained in:
Olle Jonsson 2019-10-25 17:27:47 +02:00 committed by Nate Berkopec
parent cea74d706a
commit 122e08f13e
3 changed files with 10 additions and 1 deletions

View file

@ -9,6 +9,7 @@
* Fix Errno::EINVAL when SSL is enabled and browser rejects cert (#1564)
* Fix pumactl defaulting puma to development if an environment was not specified (#2035)
* Fix closing file stream when reading pid from pidfile (#2048)
* Fix a typo in configuration option `--extra_runtime_dependencies` (#2050)
## 4.2.1 / 2019-10-07

View file

@ -162,7 +162,7 @@ module Puma
end
o.on "--extra-runtime-dependencies GEM1,GEM2", "Defines any extra needed gems when using --prune-bundler" do |arg|
c.extra_runtime_dependencies arg.split(',')
user_config.extra_runtime_dependencies arg.split(',')
end
o.on "-q", "--quiet", "Do not log requests internally (default true)" do

View file

@ -352,6 +352,14 @@ class TestCLI < Minitest::Test
$LOAD_PATH.shift
end
def test_extra_runtime_dependencies
cli = Puma::CLI.new ['--extra-runtime-dependencies', 'a,b']
extra_dependencies = cli.instance_variable_get(:@conf)
.instance_variable_get(:@options)[:extra_runtime_dependencies]
assert_equal %w[a b], extra_dependencies
end
def test_environment
ENV.delete 'RACK_ENV'