perl-catalyst/catalyst-runtime — pull request #36 by laufeyjarson (2014-06-26 03:28:59+00:00)
Title: Fix indeterminate behavior of script command line switches

As I discussed on the mailing list just under a month ago, here is a change to correct indeterminate behavior of the command line switches in the Server script.

Add 'lazy' to two parameters to make sure the constructor has run and set

the application name properly before they are used. Without this, the
command line options are sometimes ignored.

One test had to change, as it assumed the port number would have been set,
when the method was never called. Calling the method to get the port number
fixes this, by allowing the lazy method to actually be run before the value
is used.