Feature/new config system 2 recursive#1736
Conversation
Role::Config is the configuration part of an object Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Remove everything that has to do with loading config from files or elsewhere. Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Create Dancer2::Core::Role::ConfigReader and Dancer2::ConfigReader::File::Simple. Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Also specify lazy => 1. Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
* Remove previously commented out code * Remove 'use Data::Dumper' Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
| @@ -0,0 +1,220 @@ | |||
| # ABSTRACT: Config reader for files | |||
There was a problem hiding this comment.
Ooops, the rename wasn't caught. This shouldn't be here.
b565f92 to
1cf0d60
Compare
|
\o/ 👍 This is a nice enhancement to the new config changes. |
bigpresh
left a comment
There was a problem hiding this comment.
A few minor tweaks suggested, but none of which feel like full blockers to me.
I do wonder if B<ConfigReader> should be C<ConfigReader> throughout, though - I'd have used the latter personally.
| Outputs a lot of debugging information when generating the configuration of | ||
| the application. |
There was a problem hiding this comment.
Do we mean "generating" here, or "reading"?
| die "additional_config_readers entry can have only one key\n" | ||
| if 1 < keys %$thing; |
There was a problem hiding this comment.
I think it'd be a bit more readable as if keys %$thing != 1, and it would also catch any case where we were passed an empty hashref too.
| die "additional_config_readers entry can have only one key\n" | |
| if 1 < keys %$thing; | |
| die "additional_config_readers entry must have exactly one key\n" | |
| if keys %$thing != 1; |
There was a problem hiding this comment.
I agree. Yanick is AFK for the next few weeks, so I will update and merge today.
| This class provides a C<config> attribute that | ||
| is populated by executing one or more B<ConfigReader> packages. | ||
| The default ConfigReader used by default is C<Dancer2::ConfigReader::Config::Any>. |
There was a problem hiding this comment.
Slightly less tautology:
| This class provides a C<config> attribute that | |
| is populated by executing one or more B<ConfigReader> packages. | |
| The default ConfigReader used by default is C<Dancer2::ConfigReader::Config::Any>. | |
| This class provides a C<config> attribute which is populated by executing | |
| one or more B<ConfigReader> packages. | |
| The default ConfigReader used is L<Dancer2::ConfigReader::Config::Any>. |
There was a problem hiding this comment.
Much better! I will make this change and merge today.
|
Merged, including changes from @bigpresh. Thanks all! |
[ BUG FIXES ]
* GH #1701: Split cookie values on & only (Yanick Champoux)
[ ENHANCEMENTS ]
* GH #530: Make data censoring configurable (Yanick Champoux, David
Precious)
* GH #850: Scaffold tutorial app; allow multiple apps to be scaffolded
in core Dancer2 (Jason A. Crome)
* GH #1512: Log hook entries as they are executed (Yanick Champoux)
* GH #1615: Remove Dancer2::Template::Simple from Dancer2 core (Jason
A. Crome)
* PR #1637: New, extendable configuration system (Mikko Koivunalho)
* GH #1723: Enable use of a different Template Toolkit base class
(Andy Beverley)
* PR #1727: Don't create CPAN package files when generating new apps
(Jason A. Crome)
* PR #1731: Retire Template::Tiny fork, use CPAN's (Jason A. Crome,
Karen Etheridge, Damien Krotkine, Yanick Champoux)
* PR #1736: Allow config system to bootstrap itself (Yanick Champoux)
* GH #1737: Add on_hook_exception for errors during hook processing
(Andy Beverley)
* PR #1739: Add source to on_hook_exception (Andy Beverley)
* PR #1742: Refactor CLI for future expansion (Jason A. Crome)
[ DOCUMENTATION ]
* GH #1342: Document skipping private methods in pod coverage tests
(Jason A. Crome)
* PR #1721: New Dancer2 docs, reorganization of all documentation;
from TPRF grant (Jason A. Crome)
* PR #1741: Cover items missed in earlier documentation branch (Jason
A. Crome)
[ DEPRECATED ]
* None
[ MISC ]
* None
Allow #1637 to bootstrap itself (i.e. have the base File::Simple config reader to instantiate and use subsequent config readers).
Will become undrafted when the parent PR is merged.