MooseX-Has-Sugar-1.000004/0000755000175000017500000000000012373520301013420 5ustar kentkentMooseX-Has-Sugar-1.000004/LICENSE0000644000175000017500000004365512373520301014442 0ustar kentkentThis software is copyright (c) 2014 by Kent Fredric. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2014 by Kent Fredric. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2014 by Kent Fredric. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End MooseX-Has-Sugar-1.000004/Changes0000644000175000017500000002172012373520301014715 0ustar kentkentRevision history for MooseX-Has-Sugar 1.000004 2014-08-15T22:10:31Z [00 Trivial] - CPANDAY! - no code changes. - metadata updates. - whitespace adjustment [Dependencies::Stats] - Dependencies changed since 1.000003, see misc/*.deps* for details - develop: +1 (suggests: ↑1) [Metadata] - Add 1x contributor to x_contributors. [Misc] - Source POD moved down to produce less whitespace at the top of generated source. 1.000003 2014-08-07T11:02:32Z [00 Trivial] - Test::ReportPrereqs updated to be less fragile. [Dependencies::Stats] - Dependencies changed since 1.000002, see misc/*.deps* for details - configure: ↓1 - develop: (suggests: ↑1) - test: -4 (recommends: ↑1 -2) 1.000002 2014-07-18T23:34:10Z [00 Minor] - Misc packaging cleanups - Test coverage improved. [Dependencies::Stats] - Dependencies changed since 1.000001, see misc/*.deps* for details - develop: (suggests: ↑2) - test: +2 ↑1 (recommends: +1) 1.000001 2014-06-10T05:18:46Z [00 Trivial] - Packaging changes - dist.ini cannonicalisation. - perlcritic.rc normalisation. [Dependencies::Stats] - Dependencies changed since 1.000000, see misc/*.deps* for details - configure: (recommends: ↑1) - develop: +3 -3 (suggests: +2 -1) - test: (recommends: ↑2) 1.000000 2014-01-30T19:43:03Z [00 Major Release] - Many far reaching changes in packaging. - Very little visible user interface change. - Very serious dependency side changes to reduce aggregate dependency weight ( and install time ). - 40 aggregate deps on 5.8 vs the previous releases 65. - 7 aggregate deps on 5.19 vs the previous releases 38. [01 Depecated stuff is deprecated] - 5 Years really aught to be enough for people to notice a deprecation notice. - so things I marked as deprecated before Dec 4 2009, are now gone. [02 Exporter Switched to Sub::Exporter::Progressive] - This is only possible due to nuking the deprecated behavior. - This overall will reduce dependency weight for fresh installs using MXHS - If you need advanced behaviour, please install Sub::Exporter yourself, and Sub::Exporter::Progressive will be happy with proxying. [03 Toolkit switched to EUMM] - Toolkit was moved to EUMM. - Toolkit related dependency ramping has been eliminated in favour of ramping recommendatons instead. - This should substantially reduce dependency weight on fresh perls. [04 namespace::clean is in use instead of namespace::autoclean] - Mostly, because the latter hard depends on Moose. [05 Moosy inference removed from hard dependency path] - Moose is no longer a "hard" testing dependency. - MooseX::Types::Moose is no longer a hard testing dependency. - Both dependencies exist for integration tests for Moose. - which are probably irrelevant to you if you're not using Moose. - but MooseX::Has::Sugar is really just a fancy package of constants, which can work on either Moose or Moo - so depending on Moose to support a Moo project is bad. - so thats fixed now. ☺ [06 More recommendations] - As referenced in above sections, more heavy focus is moving towards "recommended" deps. Recommended deps are very useful, and they may give you better test coverage, or better features, or better bug resilience, but they're not really things you want to force people who use your code to install. - So `recommended` deps are declared to help you get the best bang for your buck - While giving people who only want "acceptable standards, but now" a faster installpath. - use cpanm --with-recommended or something. [07 Versioning Scheme] - x.\d{8} was getting really boring and hard to read. - so x.\d{6} is now the standard. - this sort of regressive mantissa length change is only acceptable in conjunction with the major increment, because 1.x is unambiguously larger than 0.x in every western number system I've ever seen, with the exception of Date Formats, which nobody at all agrees upon anyway. [Dependencies::Stats] - Dependencies changed since 0.05070422, see misc/*.deps* for details - build: -1 - configure: +1 -1 (recommends: +1) - develop: +9 ↑1 -9 - runtime: +1 -1 - test: +5 ↓1 -3 (recommends: +6) 0.05070422 2013-11-20T08:32:12Z [00 Maint release] [Dependencies::Noteworthy] - Upgrade Module::Build to 0.4202 - Upgrade Test::More 0.98 to 1.001002 - drop File::Find - drop File::Temp [Dependencies::Stats] - Dependencies changed since 0.05070421, see misc/*.deps* for details - build: ↑1 - configure: ↑1 - develop: +50 -1 (recommends: -1, suggests: +1 -1) - test: +1 ↑1 -2 [Documentation] - Update © Year - Specify doc encoding. [Meta] - Bug tracker to github issues [Packaging] - Use test_requires with new MB [Tests] - Switch to Test::Compile::PerFile - Update ReportVersions::Tiny test - Update CPAN::Changes test - Update Kwalitee test 0.05070421 2012-08-03T10:25:23Z [Bugs] - Fixed use of a Test::Builder method that is going away. Thanks to Schwern for reporting and providing the patch. [Dependencies::Noteworthy] - Upgrade Module::Build to 0.4002 - Upgrade Test::More to 0.98 [Dependencies::Stats] - Dependencies changed since 0.05070420, see misc/*.deps* for details - build: ↑1 - configure: ↑1 - develop: (recommends: ↑1, suggests: ↑1) - test: ↑1 [TODO] - Thinking of adding Moo support of some kind, but Moo is notedly different. Esp: lazy/lazy_build. - I considered making a Moo-style-for-Moose version, but then considered that implementing 'lazy' would have to know what the attribute was called to set the respective Moose builder value, so that is Too Hard. - Please, if you're reading this and have suggestions/feedback, feel free to hit me up on IRC =). 0.05070420 2012-02-03T03:33:11Z - Maintenance/Packaging release. [Dependencies::Stats] - Dependencies changed since 0.05070419, see misc/*.deps* for details - develop: (suggests: ↑1) - runtime: +3 - test: -1 [Internals] - All namespaces provide $AUTHORITY - $VERSION moved to outside of BEGIN [Packaging] - Update LICENSE ( Year, Address, Indentation ) - Extra Tests moved to xt/ - Git URI's moved to https:// - Export x_authority - Git based versions instead of auto incrementing relative versions. 0.05070419 2011-04-07T02:03:19Z - Maintainence only release. No external changes. [Dependencies::Stats] - Dependencies changed since 0.05055616, see misc/*.deps* for details - develop: +1 -1 (recommends: +1 -1, suggests: +1 -1) [Packaging] - Moved to @Author::KENTNL - update gitignore and perlcritic rules. - ship perltidyrc - Normalize Changes. [Tests] - Add CPAN::Changes test - Remove portability test 0.05055616 2010-11-13T23:43:43Z - Replaced Test::Exceptions with Test::Fatal - Removed FindBin in tests. - Core Tests now 5% faster!. [Dependencies::Noteworthy] - use Test::Fatal instead of Test::Exception - drop use of FindBin [Dependencies::Stats] - Dependencies changed since 0.05046611, see misc/*.deps* for details - develop: +1 (recommends: +1, suggests: +1) - test: +1 -2 0.05046611 2010-08-16T18:30:39Z - Improved docs and tests for Saccharin. ( Alexandr Ciornii / chorny ) - Eradicated excess in xt/. [Dependencies::Noteworthy] - tests require MooseX::Types::Moose [Dependencies::Stats] - Dependencies changed since 0.05044303, see misc/*.deps* for details - test: +2 0.05044303 2010-07-24T10:03:50Z - Migrate to @KENTNL Dzil. - Rework t/ dirs. - Drop depend on MX::Types in tests. - Drop accidental dep on Test::Kwalitee [Dependencies::Stats] - Dependencies changed since 0.0405, see misc/*.deps* for details - build: ↑1 - configure: ↑1 - runtime: -6 - test: +7 0.0405 2009-12-04T09:20:43Z - Toolkit upgrade & rebuild. - Testsuite cleanup. - Documentation overhaul with ::Weaver - Dropped :allattrs from MXHS as its identical to :default - Tests drop Find::Lib; [Dependencies::Stats] - Dependencies changed since 0.0404, see misc/*.deps* for details - build: +1 - configure: +1 - runtime: +1 -2 0.0404 2009-07-06T03:34:10Z - Added Saccharin, experimental sugars. [Dependencies::Stats] - Dependencies changed since 0.0403, see misc/*.deps* for details - runtime: +9 0.0403 2009-06-30T13:56:07Z - Using Dist::Zilla's handy author-tests feature - Revised Docmentation a little to be more correct 0.0402 2009-06-29T19:43:05Z - Fixed missing META.yml in Dzil build 0.0401 2009-06-29T18:16:51Z - Fixed Dep on Moose Test. - Moved to Dist::Zilla. - Loads of edits for change 0.0400 2009-06-28T00:53:52Z - Improved Test cases - Improved meta dependency advertising - added 'bare' keyword. 0.0300 2009-05-29T16:22:57Z - export group :is/-is moved to ::Minimal. - MX::H::S::Minimal exports by default - MX::H::Sugar exports all list-flavours by default. - MX::H::Sugar croaks if group :is is requested. - Test/Documentation updated. 0.0200 2009-05-16T21:38:31Z - Fixed META.yml - Added weak_ref, coerce and auto_deref to -attrs - Added collision detection to complain if you use it wrong. - Removed Constant Folding based subs, too pesky at present. - Added A bunch of tests. 0.0100 2009-05-15T09:18:30Z - First version. MooseX-Has-Sugar-1.000004/lib/0000755000175000017500000000000012373520301014166 5ustar kentkentMooseX-Has-Sugar-1.000004/lib/MooseX/0000755000175000017500000000000012373520301015400 5ustar kentkentMooseX-Has-Sugar-1.000004/lib/MooseX/Has/0000755000175000017500000000000012373520301016113 5ustar kentkentMooseX-Has-Sugar-1.000004/lib/MooseX/Has/Sugar/0000755000175000017500000000000012373520301017174 5ustar kentkentMooseX-Has-Sugar-1.000004/lib/MooseX/Has/Sugar/Saccharin.pm0000644000175000017500000001231212373520301021424 0ustar kentkentuse 5.006; # pragmas use warnings; use strict; package MooseX::Has::Sugar::Saccharin; our $VERSION = '1.000004'; # ABSTRACT: Experimental sweetness our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY use Carp (); use Sub::Exporter::Progressive ( -setup => { exports => [ 'ro', 'rw', 'required', 'lazy', 'lazy_build', 'coerce', 'weak_ref', 'auto_deref', 'bare', 'default', 'init_arg', 'predicate', 'clearer', 'builder', 'trigger', ], groups => { default => ['-all'], }, }, ); sub bare($) { return ( 'is', 'bare', 'isa', shift, ); } sub ro($) { return ( 'is', 'ro', 'isa', shift, ); } sub rw($) { return ( 'is', 'rw', 'isa', shift, ); } sub required(@) { return ( 'required', 1, @_ ); } sub lazy(@) { return ( 'lazy', 1, @_ ); } sub lazy_build(@) { return ( 'lazy_build', 1, @_ ); } sub weak_ref(@) { return ( 'weak_ref', 1, @_ ); } sub coerce(@) { return ( 'coerce', 1, @_ ); } sub auto_deref(@) { return ( 'auto_deref', 1, @_ ); } sub builder($) { return ( 'builder', shift ); } sub predicate($) { return ( 'predicate', shift ); } sub clearer($) { return ( 'clearer', shift ); } sub init_arg($) { return ( 'init_arg', shift ); } ## no critic (ProhibitBuiltinHomonyms) sub default(&) { my $code = shift; return ( 'default', sub { my $self = $_[0]; local $_ = $self; return $code->(); }, ); } sub trigger(&) { my $code = shift; return ( 'trigger', sub { my $self = $_[0]; local $_ = $self; return $code->(); }, ); } 1; __END__ =pod =encoding UTF-8 =head1 NAME MooseX::Has::Sugar::Saccharin - Experimental sweetness =head1 VERSION version 1.000004 =head1 SYNOPSIS This is a highly experimental sugaring module. No Guarantees of stability. use MooseX::Types::Moose qw( :all ); has name => rw Str, default { 1 }; has suffix => required rw Str; has 'suffix', required rw Str; Your choice. =head1 EXPORT GROUPS =head2 C<:default> exports: =over 4 L, L, L, L, L, L, L, L, L, L, L, L, L, L, L =back =head1 EXPORTED FUNCTIONS =head2 C =head2 C C<$Type> bare Str equivalent to this is => 'bare', isa => Str =head2 C =head2 C C<$Type> ro Str equivalent to this is => 'ro', isa => Str, =head2 C =head2 C C<$Type> rw Str equivalent to this is => 'rw', isa => Str =head2 C =head2 C this required rw Str is equivalent to this required => 1, is => 'rw', isa => Str, this rw Str, required is equivalent to this is => 'rw', isa => Str , required => 1 =head2 C =head2 C like C<< ( lazy => 1 , @rest ) >> =head2 C =head2 C like C<< ( lazy_build => 1, @rest ) >> =head2 C =head2 C like C<< ( weak_ref => 1, @rest ) >> =head2 C =head2 C like C<< ( coerce => 1, @rest ) >> =head3 WARNING: Conflicts with L<< C C method|MooseX::Types/coerce >> =head2 C =head2 C like C<< ( auto_deref => 1, @rest ) >> =head2 C =head2 C required rw Str, builder '_build_foo' is like builder => '_build_foo' =head2 C =head2 C see L =head2 C =head2 C see L =head2 C =head2 C see L =head2 C =head2 C Examples: default { 1 } default { { } } default { [ ] } default { $_->otherfield } $_ is localized as the same value as $_[0] for convenience ( usually $self ) =head2 C =head2 C Works exactly like default. =head1 CONFLICTS =head2 MooseX::Has::Sugar =head2 MooseX::Has::Sugar::Minimal This module is not intended to be used in conjunction with L<::Sugar|MooseX::Has::Sugar> or L<::Sugar::Minimal|MooseX::Has::Sugar::Minimal> We export many of the same symbols and its just not very sensible. =head2 MooseX::Types =head2 Moose::Util::TypeConstraints due to exporting the L symbol, using us in the same scope as a call to use MooseX::Types .... or use Moose::Util::TypeConstraints will result in a symbol collision. We recommend using and creating proper type libraries instead, ( which will absolve you entirely of the need to use MooseX::Types and MooseX::Has::Sugar(::*)? in the same scope ) =head2 Perl 5.010 feature 'switch' the keyword 'default' becomes part of Perl in both these cases: use 5.010; use feature qw( :switch ); As such, we can't have that keyword in that scenario. =head1 AUTHOR Kent Fredric =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2014 by Kent Fredric. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut MooseX-Has-Sugar-1.000004/lib/MooseX/Has/Sugar/Minimal.pm0000644000175000017500000000463212373520301021125 0ustar kentkentuse 5.006; # pragmas use warnings; use strict; package MooseX::Has::Sugar::Minimal; our $VERSION = '1.000004'; # ABSTRACT: Less Sugary Syntax for moose 'has' fields our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY use Sub::Exporter::Progressive -setup => { exports => [ 'ro', 'rw', 'bare', ], groups => { is => [ 'ro', 'rw', 'bare', ], default => [ '-all', ], }, }; sub bare() { return ('bare'); } sub ro() { return ('ro'); } sub rw() { return ('rw'); } 1; __END__ =pod =encoding UTF-8 =head1 NAME MooseX::Has::Sugar::Minimal - Less Sugary Syntax for moose 'has' fields =head1 VERSION version 1.000004 =head1 SYNOPSIS This is a legacy variant of L which only exports C and C functions, the way L used to with C<:is>; use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar::Minimal; has foo => ( isa => Str, is => ro, required => 1, ); has bar => ( isa => Str, is => rw, lazy_build => 1, ); All functions are exported by L. =head1 EXPORT GROUPS =head2 C<:default> Exports L =head2 C<:is> Exports L, L, L =head1 EXPORTED FUNCTIONS =head2 C returns C<('bare')> =head2 C returns C<('ro')> =head2 C returns C<('rw')> =head1 CONFLICTS =head2 MooseX::Has::Sugar =head2 MooseX::Has::Sugar::Saccharin This module is not intended to be used in conjunction with L<::Sugar|MooseX::Has::Sugar> or L<::Sugar::Saccharin|MooseX::Has::Sugar::Saccharin>. We all export L and L in different ways. If you do however want to use them in conjunction, specific imports must be done on L side to stop it exporting different ro/rw. Any of the below should be fine. use MooseX::Has::Sugar::Minimal; use MooseX::Has::Sugar qw( :attrs ); has foo =>( is => rw , lazy_build ); use MooseX::Has::Sugar::Minimal; use MooseX::Has::Sugar qw( lazy_build ); has foo =>( is => rw , lazy_build ); =head1 AUTHOR Kent Fredric =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2014 by Kent Fredric. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut MooseX-Has-Sugar-1.000004/lib/MooseX/Has/Sugar.pm0000644000175000017500000001501412373520301017533 0ustar kentkentuse 5.006; # pragmas, qr use warnings; use strict; package MooseX::Has::Sugar; our $VERSION = '1.000004'; # ABSTRACT: Sugar Syntax for moose 'has' fields our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY use Carp (); use Sub::Exporter::Progressive ( -setup => { exports => [ 'ro', 'rw', 'required', 'lazy', 'lazy_build', 'coerce', 'weak_ref', 'auto_deref', 'bare', ], groups => { isattrs => [ 'ro', 'rw', 'bare', ], attrs => [ 'required', 'lazy', 'lazy_build', 'coerce', 'weak_ref', 'auto_deref', ], default => [ 'ro', 'rw', 'bare', 'required', 'lazy', 'lazy_build', 'coerce', 'weak_ref', 'auto_deref', ], }, }, ); sub bare() { return ( 'is', 'bare' ); } sub ro() { return ( 'is', 'ro' ); } sub rw() { return ( 'is', 'rw' ); } sub required() { return ( 'required', 1 ); } sub lazy() { return ( 'lazy', 1 ); } sub lazy_build() { return ( 'lazy_build', 1 ); } sub weak_ref() { return ( 'weak_ref', 1 ); } sub coerce() { return ( 'coerce', 1 ); } sub auto_deref() { return ( 'auto_deref', 1 ); } 1; __END__ =pod =encoding UTF-8 =head1 NAME MooseX::Has::Sugar - Sugar Syntax for moose 'has' fields =head1 VERSION version 1.000004 =head1 SYNOPSIS L C syntax is generally fine, but sometimes one gets bothered with the constant typing of string quotes for things. L exists and in many ways reduces the need for constant string creation. =head2 Primary Benefits at a Glance =head3 Reduced Typing in C declarations. The constant need to type C<=E> and C<''> is fine for one-off cases, but the instant you have more than about 4 attributes it starts to get annoying. =head3 More compact declarations. Reduces much of the redundant typing in most cases, which makes your life easier, and makes it take up less visual space, which makes it faster to read. =head3 No String Worries Strings are often problematic, due to white-space etc. Noted that if you do happen to mess them up, Moose should at I warn you that you've done something daft. Using this alleviates that worry. =head2 Before this Module. =head3 Classical Moose has foo => ( isa => 'Str', is => 'ro', required => 1, ); has bar => ( isa => 'Str', is => 'rw' lazy_build => 1, ); =head3 Lazy Evil way to do it: B has qw( foo isa Str is ro required 1 ); has qw( bar isa Str is rw lazy_build 1 ); =head2 With this module ( and with MooseX::Types ) use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar; has foo => ( isa => Str, ro, required, ); has bar => ( isa => Str, rw, lazy_build, ); Or even use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar; has foo => ( isa => Str, ro, required, ); has bar => ( isa => Str, rw, lazy_build, ); =head2 Alternative Forms =head3 Basic C Expansion Only ( using L<::Sugar::Minimal|MooseX::Has::Sugar::Minimal> instead ) use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar::Minimal; has foo => ( isa => Str, is => ro, required => 1, ); has bar => ( isa => Str, is => rw, lazy_build => 1, ); =head3 Attribute Expansions with Basic Expansions ( Combining parts of this and L<::Sugar::Minimal|MooseX::Has::Sugar::Minimal> ) use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar::Minimal; use MooseX::Has::Sugar qw( :attrs ); has foo => ( isa => Str, is => ro, required, ); has bar => ( isa => Str, is => rw, lazy_build, ); =head1 EXPORT GROUPS =head2 C<:default> Since 0.0300, this exports all our syntax, the same as C<:attrs> C<:isattrs>. Primarily because I found you generally want all the sugar, not just part of it. This also gets rid of that nasty exclusion logic. =head2 C<:isattrs> This exports C, C and C as lists, so they behave as stand-alone attributes like L does. has foo => ( required, isa => 'Str', ro, ); B> : L =head2 C<:attrs> This exports L , L and L, L, L and L as subs that assume positive. has foo => ( required, isa => 'Str', ); B and L> : L =head2 C<:is> B. See L<::Sugar::Minimal|MooseX::Has::Sugar::Minimal> for the same functionality =head2 C<:allattrs> B, just use L or do use MooseX::Has::Sugar; =head1 EXPORTED FUNCTIONS =head2 C returns C<('is','bare')> =head2 C returns C<('is','ro')> =head2 C returns C<('is','rw')> =head2 C returns C<('required',1)> =head2 C returns C<('lazy',1)> =head2 C returns C<('lazy_build',1)> =head2 C returns C<('weak_ref',1)> =head2 C returns C<('coerce',1)> B Conflict with L and L, see L. =head2 C returns C<('auto_deref',1)> =head1 CONFLICTS =head2 MooseX::Has::Sugar::Minimal =head2 MooseX::Has::Sugar::Saccharin This module is not intended to be used in conjunction with L<::Sugar::Minimal|MooseX::Has::Sugar::Minimal> or L<::Sugar::Saccharin|MooseX::Has::Sugar::Saccharin> We export many of the same symbols and its just not very sensible. =head2 MooseX::Types =head2 Moose::Util::TypeConstraints due to exporting the L symbol, using us in the same scope as a call to use MooseX::Types .... or use Moose::Util::TypeConstraints will result in a symbol collision. We recommend using and creating proper type libraries instead, ( which will absolve you entirely of the need to use MooseX::Types and MooseX::Has::Sugar(::*)? in the same scope ) =head1 AUTHOR Kent Fredric =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2014 by Kent Fredric. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut MooseX-Has-Sugar-1.000004/Makefile.PL0000644000175000017500000000265112373520301015376 0ustar kentkent # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.020. use strict; use warnings; use 5.006; use ExtUtils::MakeMaker ; my %WriteMakefileArgs = ( "ABSTRACT" => "Sugar Syntax for moose 'has' fields", "AUTHOR" => "Kent Fredric ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "MooseX-Has-Sugar", "EXE_FILES" => [], "LICENSE" => "perl", "NAME" => "MooseX::Has::Sugar", "PREREQ_PM" => { "Carp" => 0, "Sub::Exporter::Progressive" => 0, "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, "Test::Fatal" => 0, "Test::More" => "0.89", "lib" => 0, "namespace::clean" => 0 }, "VERSION" => "1.000004", "test" => { "TESTS" => "t/*.t t/00-compile/*.t" } ); my %FallbackPrereqs = ( "Carp" => 0, "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, "Sub::Exporter::Progressive" => 0, "Test::Fatal" => 0, "Test::More" => "0.89", "lib" => 0, "namespace::clean" => 0, "strict" => 0, "warnings" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); MooseX-Has-Sugar-1.000004/xt/0000755000175000017500000000000012373520301014053 5ustar kentkentMooseX-Has-Sugar-1.000004/xt/release/0000755000175000017500000000000012373520301015473 5ustar kentkentMooseX-Has-Sugar-1.000004/xt/release/pod-coverage.t0000644000175000017500000000033412373520301020233 0ustar kentkent#!perl # This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. use Test::Pod::Coverage 1.08; use Pod::Coverage::TrustPod; all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); MooseX-Has-Sugar-1.000004/xt/release/cpan-changes.t0000644000175000017500000000026312373520301020210 0ustar kentkent#!perl use strict; use warnings; use Test::More 0.96 tests => 2; use_ok('Test::CPAN::Changes'); subtest 'changes_ok' => sub { changes_file_ok('Changes'); }; done_testing(); MooseX-Has-Sugar-1.000004/xt/release/pod-syntax.t0000644000175000017500000000022012373520301017760 0ustar kentkent#!perl # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use Test::More; use Test::Pod 1.41; all_pod_files_ok(); MooseX-Has-Sugar-1.000004/xt/release/distmeta.t0000644000175000017500000000017212373520301017472 0ustar kentkent#!perl # This file was automatically generated by Dist::Zilla::Plugin::MetaTests. use Test::CPAN::Meta; meta_yaml_ok(); MooseX-Has-Sugar-1.000004/xt/release/minimum-version.t0000644000175000017500000000027012373520301021015 0ustar kentkent#!perl use Test::More; eval "use Test::MinimumVersion"; plan skip_all => "Test::MinimumVersion required for testing minimum versions" if $@; all_minimum_version_from_metayml_ok(); MooseX-Has-Sugar-1.000004/xt/release/kwalitee.t0000644000175000017500000000016612373520301017470 0ustar kentkent# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.07 use strict; use warnings; use Test::Kwalitee; MooseX-Has-Sugar-1.000004/xt/release/eol.t0000644000175000017500000000024012373520301016433 0ustar kentkentuse strict; use warnings; use Test::More; eval 'use Test::EOL'; plan skip_all => 'Test::EOL required' if $@; all_perl_files_ok({ trailing_whitespace => 1 }); MooseX-Has-Sugar-1.000004/xt/author/0000755000175000017500000000000012373520301015355 5ustar kentkentMooseX-Has-Sugar-1.000004/xt/author/critic.t0000644000175000017500000000043512373520301017021 0ustar kentkent#!perl use strict; use warnings; use Test::More; use English qw(-no_match_vars); eval "use Test::Perl::Critic"; plan skip_all => 'Test::Perl::Critic required to criticise code' if $@; Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc"; all_critic_ok(); MooseX-Has-Sugar-1.000004/dist.ini.meta0000644000175000017500000000135712373520301016017 0ustar kentkentname = MooseX-Has-Sugar author = Kent Fredric license = Perl_5 copyright_holder = Kent Fredric [@Author::KENTNL] :version = 2.016 git_versions = 1 normal_form = numify mantissa = 6 twitter_hash_tags = #perl #cpan auto_prereqs_skip = MooseX::Types::Moose auto_prereqs_skip = Moose toolkit = eumm toolkit_hardness = soft bumpversions = 1 copyfiles = LICENSE srcreadme = mkdn ;version_major = 0 ;version_minor = 5 ;version_rel_year = 2009 ;version_rel_month = 5 ;version_rel_day = 15 ;version_rel_hour = 19 ;version_rel_time_zone = Pacific/Auckland [Prereqs / TestRecommends] MooseX::Types::Moose = 0 Moose = 0 [Prereqs / DevelopRequires] MooseX::Types::Moose = 0 Moose = 0 [Prereqs] MooseX-Has-Sugar-1.000004/t/0000755000175000017500000000000012373520301013663 5ustar kentkentMooseX-Has-Sugar-1.000004/t/00-report-prereqs.dd0000644000175000017500000001405612373520301017411 0ustar kentkentdo { my $x = { 'configure' => { 'recommends' => { 'ExtUtils::MakeMaker' => '6.98' }, 'requires' => { 'ExtUtils::MakeMaker' => '0' } }, 'develop' => { 'requires' => { 'Dist::Zilla::Plugin::Authority' => '1.006', 'Dist::Zilla::Plugin::AutoPrereqs' => '0', 'Dist::Zilla::Plugin::BumpVersionAfterRelease' => '0', 'Dist::Zilla::Plugin::ConfirmRelease' => '0', 'Dist::Zilla::Plugin::CopyFilesFromBuild' => '0', 'Dist::Zilla::Plugin::EOLTests' => '0', 'Dist::Zilla::Plugin::Git::Check' => '0', 'Dist::Zilla::Plugin::Git::Commit' => '0', 'Dist::Zilla::Plugin::Git::CommitBuild' => '0', 'Dist::Zilla::Plugin::Git::Contributors' => '0.006', 'Dist::Zilla::Plugin::Git::GatherDir' => '0', 'Dist::Zilla::Plugin::Git::NextRelease' => '0', 'Dist::Zilla::Plugin::Git::Tag' => '0', 'Dist::Zilla::Plugin::GithubMeta' => '0', 'Dist::Zilla::Plugin::License' => '0', 'Dist::Zilla::Plugin::MakeMaker' => '0', 'Dist::Zilla::Plugin::Manifest' => '0', 'Dist::Zilla::Plugin::ManifestSkip' => '0', 'Dist::Zilla::Plugin::MetaConfig' => '0', 'Dist::Zilla::Plugin::MetaData::BuiltWith' => '0', 'Dist::Zilla::Plugin::MetaJSON' => '0', 'Dist::Zilla::Plugin::MetaProvides::Package' => '1.14000001', 'Dist::Zilla::Plugin::MetaTests' => '0', 'Dist::Zilla::Plugin::MetaYAML' => '0', 'Dist::Zilla::Plugin::MinimumPerl' => '0', 'Dist::Zilla::Plugin::PodCoverageTests' => '0', 'Dist::Zilla::Plugin::PodSyntaxTests' => '0', 'Dist::Zilla::Plugin::PodWeaver' => '0', 'Dist::Zilla::Plugin::Prereqs' => '0', 'Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled' => '0', 'Dist::Zilla::Plugin::ReadmeAnyFromPod' => '0', 'Dist::Zilla::Plugin::ReadmeFromPod' => '0', 'Dist::Zilla::Plugin::RewriteVersion::Sanitized' => '0', 'Dist::Zilla::Plugin::RunExtraTests' => '0', 'Dist::Zilla::Plugin::Test::CPAN::Changes' => '0', 'Dist::Zilla::Plugin::Test::Compile::PerFile' => '0', 'Dist::Zilla::Plugin::Test::Kwalitee' => '0', 'Dist::Zilla::Plugin::Test::MinimumVersion' => '0', 'Dist::Zilla::Plugin::Test::Perl::Critic' => '0', 'Dist::Zilla::Plugin::Test::ReportPrereqs' => '0', 'Dist::Zilla::Plugin::TestRelease' => '0', 'Dist::Zilla::Plugin::Twitter' => '0', 'Dist::Zilla::Plugin::UploadToCPAN' => '0', 'Moose' => '0', 'MooseX::Types::Moose' => '0', 'Pod::Coverage::TrustPod' => '0', 'Test::CPAN::Changes' => '0.19', 'Test::CPAN::Meta' => '0', 'Test::Kwalitee' => '1.12', 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.08' }, 'suggests' => { 'Dist::Zilla::App::Command::bakeini' => '0.001001', 'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.017002' } }, 'runtime' => { 'requires' => { 'Carp' => '0', 'Sub::Exporter::Progressive' => '0', 'perl' => '5.006', 'strict' => '0', 'warnings' => '0' } }, 'test' => { 'recommends' => { 'CPAN::Meta' => '2.120900', 'ExtUtils::MakeMaker' => '6.98', 'Moose' => '0', 'MooseX::Types::Moose' => '0', 'Test::More' => '1.001003' }, 'requires' => { 'ExtUtils::MakeMaker' => '0', 'File::Spec' => '0', 'Test::Fatal' => '0', 'Test::More' => '0.89', 'lib' => '0', 'namespace::clean' => '0' } } }; $x; }MooseX-Has-Sugar-1.000004/t/09_saccharin.t0000644000175000017500000000071412373520301016315 0ustar kentkentuse strict; use warnings; use Test::More; use lib "t/lib"; use T9Saccharin::TestPackage; is_deeply( T9Saccharin::TestPackage->Alpha->{orig}, T9Saccharin::TestPackage->Alpha->{mx}, 'Basic Use Case', ); is_deeply( T9Saccharin::TestPackage->Beta->{orig}, T9Saccharin::TestPackage->Beta->{mx}, 'Order Invert', ); is_deeply( T9Saccharin::TestPackage->Gamma->{orig}->{default}->(), T9Saccharin::TestPackage->Gamma->{mx}->{default}->(), 'Subs', ); done_testing; MooseX-Has-Sugar-1.000004/t/05_is.t0000644000175000017500000000202012373520301014761 0ustar kentkent use strict; use warnings; use Test::More; BEGIN { my $mod = 'Moose'; local $@; eval qq[require $mod; 1]; if ( my $e = $@ ) { my $msg = "$e"; if ( $e =~ /^Can't locate/ ) { $msg = "Test requires module '$mod' but it's not found"; } if ( $ENV{RELEASE_TESTING} ) { BAIL_OUT($msg); } else { plan skip_all => $msg; } } } use Test::Fatal; use lib "t/lib"; use T5Is::TestPackage; sub cr { return T5Is::TestPackage->new(@_); } pass("Syntax Compiles"); for ( {}, { roattr => "v" }, { rwattr => "v" }, { bareattr => 'v' }, ) { isnt( exception { cr( %{$_} ) }, undef, 'Constraints on requirements still work' ); } is( exception { cr( rwattr => 'v', roattr => 'v', bareattr => 'v', ) }, undef, 'Construction still works' ); my $i = cr( rwattr => 'v', roattr => 'v', bareattr => 'v', ); isnt( exception { $i->roattr('x') }, undef, "RO works still" ); is( exception { $i->rwattr('x') }, undef, 'RW works still' ); is( $i->rwattr(), 'x', "RW Works as expected" ); done_testing(); MooseX-Has-Sugar-1.000004/t/lib/0000755000175000017500000000000012373520301014431 5ustar kentkentMooseX-Has-Sugar-1.000004/t/lib/T9Saccharin/0000755000175000017500000000000012373520301016541 5ustar kentkentMooseX-Has-Sugar-1.000004/t/lib/T9Saccharin/TestPackage.pm0000644000175000017500000000111112373520301021264 0ustar kentkentpackage T9Saccharin::TestPackage; # $Id:$ use strict; use warnings; use MooseX::Has::Sugar::Saccharin; use namespace::clean; sub Alpha { return { orig => { 'isa' => 'Str', 'required' => 1, 'is' => 'rw' }, mx => { required rw 'Str' }, }; } sub Beta { return { orig => { 'isa' => 'Str', 'required' => 1, 'is' => 'rw' }, mx => { rw 'Str', required }, }; } sub Gamma { return { orig => { 'isa' => 'Str', 'is' => 'rw', default => sub { return 1; } }, mx => { rw 'Str', default { 1 } }, }; } 1; MooseX-Has-Sugar-1.000004/t/lib/T7AttrLazyBuild/0000755000175000017500000000000012373520301017376 5ustar kentkentMooseX-Has-Sugar-1.000004/t/lib/T7AttrLazyBuild/TestPackage.pm0000644000175000017500000000057312373520301022134 0ustar kentkentpackage T7AttrLazyBuild::TestPackage; # $Id:$ use strict; use warnings; use Moose; use MooseX::Has::Sugar; use namespace::clean -except => 'meta'; has roattr => ( isa => 'Str', is => 'ro', lazy_build, ); has rwattr => ( isa => 'Str', is => 'rw', lazy_build, ); sub _build_rwattr { return 'y'; } sub _build_roattr { return 'y'; } __PACKAGE__->meta->make_immutable; 1; MooseX-Has-Sugar-1.000004/t/lib/T8Saccharin/0000755000175000017500000000000012373520301016540 5ustar kentkentMooseX-Has-Sugar-1.000004/t/lib/T8Saccharin/TestPackage.pm0000644000175000017500000000052612373520301021274 0ustar kentkentpackage T8Saccharin::TestPackage; # $Id:$ use strict; use warnings; use Moose; use MooseX::Has::Sugar::Saccharin; use namespace::clean -except => 'meta'; has roattr => lazy_build ro 'Str'; has rwattr => lazy_build rw 'Str'; sub _build_rwattr { return 'y'; } sub _build_roattr { return 'y'; } __PACKAGE__->meta->make_immutable; 1; MooseX-Has-Sugar-1.000004/t/lib/T6AttrRequired/0000755000175000017500000000000012373520301017256 5ustar kentkentMooseX-Has-Sugar-1.000004/t/lib/T6AttrRequired/TestPackage.pm0000644000175000017500000000055112373520301022010 0ustar kentkentpackage T6AttrRequired::TestPackage; # $Id:$ use strict; use warnings; use Moose; use MooseX::Has::Sugar; use namespace::clean -except => 'meta'; has roattr => ( isa => 'Str', is => 'ro', required, ); has rwattr => ( isa => 'Str', is => 'rw', required, ); has bareattr => ( isa => 'Str', is => 'bare', required, ); __PACKAGE__->meta->make_immutable; 1; MooseX-Has-Sugar-1.000004/t/lib/T10Saccharin/0000755000175000017500000000000012373520301016611 5ustar kentkentMooseX-Has-Sugar-1.000004/t/lib/T10Saccharin/TestPackage.pm0000644000175000017500000000062312373520301021343 0ustar kentkentpackage T10Saccharin::TestPackage; # $Id:$ use strict; use warnings; use Moose; use MooseX::Has::Sugar::Saccharin; use MooseX::Types::Moose qw( :all ); use namespace::clean -except => 'meta'; has roattr => required ro Str; has rwattr => required rw Str, init_arg "MONSTER"; has bareattr => required bare Str; has lazyroattr => lazy ro Str, default { 1 } ,; __PACKAGE__->meta->make_immutable; 1; MooseX-Has-Sugar-1.000004/t/lib/T5Is/0000755000175000017500000000000012373520301015215 5ustar kentkentMooseX-Has-Sugar-1.000004/t/lib/T5Is/TestPackage.pm0000644000175000017500000000056012373520301017747 0ustar kentkentpackage T5Is::TestPackage; # $Id:$ use strict; use warnings; use Moose; use MooseX::Has::Sugar::Minimal; use namespace::clean -except => 'meta'; has roattr => ( isa => 'Str', is => ro, required => 1, ); has rwattr => ( isa => 'Str', is => rw, required => 1, ); has bareattr => ( isa => 'Str', is => bare, required => 1, ); __PACKAGE__->meta->make_immutable; 1; MooseX-Has-Sugar-1.000004/t/lib/T4Values/0000755000175000017500000000000012373520301016100 5ustar kentkentMooseX-Has-Sugar-1.000004/t/lib/T4Values/TestCant.pm0000644000175000017500000000203412373520301020162 0ustar kentkentpackage T4Values::TestCant; # $Id:$ use strict; use warnings; use Test::More (); use Sub::Exporter::Progressive ( -setup => { exports => ['can_unok'], groups => { default => ['can_unok'] }, } ); use namespace::clean -except => 'import'; # Sniped from Test::More; sub can_unok($@) { my ( $proto, @methods ) = @_; my $class = ref $proto || $proto; my $tb = Test::More->builder; unless ($class) { my $ok = $tb->ok( 0, "! ->can(...)" ); $tb->diag(' can_unok() called with empty class or reference'); return $ok; } unless (@methods) { my $ok = $tb->ok( 0, "$class->can(...)" ); $tb->diag(' can_unok() called with no methods'); return $ok; } my @nok = (); foreach my $method (@methods) { local ( $!, $@ ); eval { !$proto->can($method) } or push @nok, $method; } my $name = ( @methods == 1 ) ? "!$class->can('$methods[0]')" : "!$class->can(...)"; my $ok = $tb->ok( !@nok, $name ); $tb->diag( map " !$class->can('$_') failed\n", @nok ); return $ok; } 1; MooseX-Has-Sugar-1.000004/t/lib/T4Values/CDeclareRo.pm0000644000175000017500000000033612373520301020403 0ustar kentkentpackage T4Values::CDeclareRo; # $Id:$ use strict; use warnings; use MooseX::Has::Sugar; use namespace::clean -except => 'meta'; sub generated { { isa => 'Str', ro, } } sub manual { { isa => 'Str', is => 'ro', } } 1; MooseX-Has-Sugar-1.000004/t/lib/T4Values/EMixed.pm0000644000175000017500000000076312373520301017617 0ustar kentkentpackage T4Values::EMixed; # $Id:$ use strict; use warnings; use MooseX::Has::Sugar::Minimal; use MooseX::Has::Sugar qw( :attrs ); use namespace::clean -except => 'meta'; sub generated { { isa => 'Str', is => ro, required, lazy, lazy_build, coerce, weak_ref, auto_deref }; } sub manual { { isa => 'Str', is => 'ro', required => 1, lazy => 1, lazy_build => 1, coerce => 1, weak_ref => 1, auto_deref => 1, }; } 1; MooseX-Has-Sugar-1.000004/t/lib/T4Values/AMinimal.pm0000644000175000017500000000070012373520301020122 0ustar kentkentpackage T4Values::AMinimal; # $Id:$ use strict; use warnings; use MooseX::Has::Sugar::Minimal; use namespace::clean -except => 'meta'; sub ro_generated { { isa => 'Str', is => ro, } } sub ro_manual { { isa => 'Str', is => 'ro', } } sub rw_generated { { isa => 'Str', is => rw, } } sub rw_manual { { isa => 'Str', is => 'rw', } } sub bare_generated { { isa => 'Str', is => bare, } } sub bare_manual { { isa => 'Str', is => 'bare', } } 1; MooseX-Has-Sugar-1.000004/t/lib/T4Values/DEverything.pm0000644000175000017500000000210112373520301020660 0ustar kentkentpackage T4Values::DEverything; # $Id:$ use strict; use warnings; use MooseX::Has::Sugar; use namespace::clean -except => 'meta'; sub generated { { isa => 'Str', ro, required, lazy, lazy_build, coerce, weak_ref, auto_deref }; } sub generated_bare { { isa => 'Str', bare, required, lazy, lazy_build, coerce, weak_ref, auto_deref }; } sub generated_rw { { isa => 'Str', rw, required, lazy, lazy_build, coerce, weak_ref, auto_deref }; } sub manual { { isa => 'Str', is => 'ro', required => 1, lazy => 1, lazy_build => 1, coerce => 1, weak_ref => 1, auto_deref => 1, }; } sub manual_rw { { isa => 'Str', is => 'rw', required => 1, lazy => 1, lazy_build => 1, coerce => 1, weak_ref => 1, auto_deref => 1, }; } sub manual_bare { { isa => 'Str', is => 'bare', required => 1, lazy => 1, lazy_build => 1, coerce => 1, weak_ref => 1, auto_deref => 1, }; } 1; MooseX-Has-Sugar-1.000004/t/lib/T4Values/BDeclare.pm0000644000175000017500000000057312373520301020104 0ustar kentkentpackage T4Values::BDeclare; # $Id:$ use strict; use warnings; use MooseX::Has::Sugar; use namespace::clean -except => 'meta'; sub generated { { isa => 'Str', is => 'ro', required, lazy, lazy_build, coerce, weak_ref, auto_deref }; } sub manual { { isa => 'Str', is => 'ro', required => 1, lazy => 1, lazy_build => 1, coerce => 1, weak_ref => 1, auto_deref => 1, }; } 1; MooseX-Has-Sugar-1.000004/t/04_values.t0000644000175000017500000000320712373520301015654 0ustar kentkentuse strict; use warnings; use Test::More; use lib "t/lib"; use T4Values::TestCant; use T4Values::AMinimal; is_deeply( T4Values::AMinimal->ro_generated, T4Values::AMinimal->ro_manual, 'Simple Expansion ro' ); is_deeply( T4Values::AMinimal->rw_generated, T4Values::AMinimal->rw_manual, 'Simple Expansion rw' ); is_deeply( T4Values::AMinimal->bare_generated, T4Values::AMinimal->bare_manual, 'Simple Expansion bare' ); can_unok( 'T4Values::AMinimal', qw( ro rw required lazy lazy_build coerce weak_ref auto_deref ) ); use T4Values::BDeclare; is_deeply( T4Values::BDeclare->generated, T4Values::BDeclare->manual, 'Attr Expansion' ); can_unok( 'T4Values::BDeclare', qw( ro rw required lazy lazy_build coerce weak_ref auto_deref ) ); use T4Values::CDeclareRo; is_deeply( T4Values::CDeclareRo->generated, T4Values::CDeclareRo->manual, 'is Attr Expansion' ); can_unok( 'T4Values::CDeclareRo', qw( ro rw required lazy lazy_build coerce weak_ref auto_deref ) ); use T4Values::DEverything; is_deeply( T4Values::DEverything->generated, T4Values::DEverything->manual, 'All Attr Expansion' ); is_deeply( T4Values::DEverything->generated_bare, T4Values::DEverything->manual_bare, 'All Attr Expansion: bare' ); is_deeply( T4Values::DEverything->generated_rw, T4Values::DEverything->manual_rw, 'All Attr Expansion: rw' ); can_unok( 'T4Values::DEverything', qw( ro rw required lazy lazy_build coerce weak_ref auto_deref ) ); use T4Values::EMixed; is_deeply( T4Values::EMixed->generated, T4Values::EMixed->manual, 'Mixed Attr Expansion' ); can_unok( 'T4Values::EMixed', qw( ro rw required lazy lazy_build coerce weak_ref auto_deref ) ); done_testing; MooseX-Has-Sugar-1.000004/t/00-compile/0000755000175000017500000000000012373520301015530 5ustar kentkentMooseX-Has-Sugar-1.000004/t/00-compile/lib_MooseX_Has_Sugar_Saccharin_pm.t0000644000175000017500000000050312373520301024356 0ustar kentkentuse strict; use warnings; # This test was generated for # using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.002001 # with template 01-basic.t.tpl use Test::More 0.89 tests => 1; require_ok("lib/MooseX/Has/Sugar/Saccharin.pm"); MooseX-Has-Sugar-1.000004/t/00-compile/lib_MooseX_Has_Sugar_pm.t0000644000175000017500000000045712373520301022413 0ustar kentkentuse strict; use warnings; # This test was generated for # using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.002001 # with template 01-basic.t.tpl use Test::More 0.89 tests => 1; require_ok("lib/MooseX/Has/Sugar.pm"); MooseX-Has-Sugar-1.000004/t/00-compile/lib_MooseX_Has_Sugar_Minimal_pm.t0000644000175000017500000000047712373520301024063 0ustar kentkentuse strict; use warnings; # This test was generated for # using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.002001 # with template 01-basic.t.tpl use Test::More 0.89 tests => 1; require_ok("lib/MooseX/Has/Sugar/Minimal.pm"); MooseX-Has-Sugar-1.000004/t/00-report-prereqs.t0000644000175000017500000001231412373520301017260 0ustar kentkent#!perl use strict; use warnings; # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.019 use Test::More tests => 1; use ExtUtils::MakeMaker; use File::Spec; # from $version::LAX my $lax_version_re = qr/(?: undef | (?: (?:[0-9]+) (?: \. | (?:\.[0-9]+) (?:_[0-9]+)? )? | (?:\.[0-9]+) (?:_[0-9]+)? ) | (?: v (?:[0-9]+) (?: (?:\.[0-9]+)+ (?:_[0-9]+)? )? | (?:[0-9]+)? (?:\.[0-9]+){2,} (?:_[0-9]+)? ) )/x; # hide optional CPAN::Meta modules from prereq scanner # and check if they are available my $cpan_meta = "CPAN::Meta"; my $cpan_meta_pre = "CPAN::Meta::Prereqs"; my $HAS_CPAN_META = eval "require $cpan_meta; $cpan_meta->VERSION('2.120900')" && eval "require $cpan_meta_pre"; ## no critic # Verify requirements? my $DO_VERIFY_PREREQS = 1; sub _max { my $max = shift; $max = ( $_ > $max ) ? $_ : $max for @_; return $max; } sub _merge_prereqs { my ($collector, $prereqs) = @_; # CPAN::Meta::Prereqs object if (ref $collector eq $cpan_meta_pre) { return $collector->with_merged_prereqs( CPAN::Meta::Prereqs->new( $prereqs ) ); } # Raw hashrefs for my $phase ( keys %$prereqs ) { for my $type ( keys %{ $prereqs->{$phase} } ) { for my $module ( keys %{ $prereqs->{$phase}{$type} } ) { $collector->{$phase}{$type}{$module} = $prereqs->{$phase}{$type}{$module}; } } } return $collector; } my @include = qw( ); my @exclude = qw( ); # Add static prereqs to the included modules list my $static_prereqs = do 't/00-report-prereqs.dd'; # Merge all prereqs (either with ::Prereqs or a hashref) my $full_prereqs = _merge_prereqs( ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ), $static_prereqs ); # Add dynamic prereqs to the included modules list (if we can) my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; if ( $source && $HAS_CPAN_META ) { if ( my $meta = eval { CPAN::Meta->load_file($source) } ) { $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } } else { $source = 'static metadata'; } my @full_reports; my @dep_errors; my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; # Add static includes into a fake section for my $mod (@include) { $req_hash->{other}{modules}{$mod} = 0; } for my $phase ( qw(configure build test runtime develop other) ) { next unless $req_hash->{$phase}; next if ($phase eq 'develop' and not $ENV{AUTHOR_TESTING}); for my $type ( qw(requires recommends suggests conflicts modules) ) { next unless $req_hash->{$phase}{$type}; my $title = ucfirst($phase).' '.ucfirst($type); my @reports = [qw/Module Want Have/]; for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { next if $mod eq 'perl'; next if grep { $_ eq $mod } @exclude; my $file = $mod; $file =~ s{::}{/}g; $file .= ".pm"; my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; $want = "any" if !$want && $want == 0; my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; if ($prefix) { my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; push @reports, [$mod, $want, $have]; if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META && $type eq 'requires' ) { if ( $have !~ /\A$lax_version_re\z/ ) { push @dep_errors, "$mod version '$have' cannot be parsed ($req_string)"; } elsif ( ! $full_prereqs->requirements_for( $phase, $type )->accepts_module( $mod => $have ) ) { push @dep_errors, "$mod version '$have' is not in required range '$want'"; } } } else { push @reports, [$mod, $want, "missing"]; if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) { push @dep_errors, "$mod is not installed ($req_string)"; } } } if ( @reports ) { push @full_reports, "=== $title ===\n\n"; my $ml = _max( map { length $_->[0] } @reports ); my $wl = _max( map { length $_->[1] } @reports ); my $hl = _max( map { length $_->[2] } @reports ); splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports; push @full_reports, "\n"; } } } if ( @full_reports ) { diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; } if ( @dep_errors ) { diag join("\n", "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n", "The following REQUIRED prerequisites were not satisfied:\n", @dep_errors, "\n" ); } pass; # vim: ts=4 sts=4 sw=4 et: MooseX-Has-Sugar-1.000004/t/10_saccharin.t0000644000175000017500000000210712373520301016303 0ustar kentkent use strict; use warnings; use Test::More; BEGIN { for my $mod (qw( Moose MooseX::Types::Moose )) { local $@; eval qq[require $mod; 1]; if ( my $e = $@ ) { my $msg = "$e"; if ( $e =~ /^Can't locate/ ) { $msg = "Test requires module '$mod' but it's not found"; } if ( $ENV{RELEASE_TESTING} ) { BAIL_OUT($msg); } else { plan skip_all => $msg; } } } } use Test::Fatal; use lib "t/lib"; use T10Saccharin::TestPackage; sub cr { return T10Saccharin::TestPackage->new( roattr => 'y', MONSTER => 'y', bareattr => 'z' ); } pass("Syntax Compiles"); is( exception { cr() }, undef, 'Construction still works' ); my $i = cr(); is( $i->roattr, 'y', 'Correctly initialized' ); isnt( exception { $i->roattr('x') }, undef, "RO works still" ); is( exception { $i->rwattr('x') }, undef, 'RW works still' ); is( $i->rwattr(), 'x', "RW Works as expected" ); isnt( exception { $i->bareattr() }, undef, "Bare has no accessors still" ); is( $i->lazyroattr(), '1', "lazy ro default works as expected" ); done_testing; MooseX-Has-Sugar-1.000004/t/07_attr_lazy_build.t0000644000175000017500000000160712373520301017552 0ustar kentkent use strict; use warnings; use Test::More; BEGIN { my $mod = 'Moose'; local $@; eval qq[require $mod; 1]; if ( my $e = $@ ) { my $msg = "$e"; if ( $e =~ /^Can't locate/ ) { $msg = "Test requires module '$mod' but it's not found"; } if ( $ENV{RELEASE_TESTING} ) { BAIL_OUT($msg); } else { plan skip_all => $msg; } } } use Test::Fatal; use lib "t/lib"; use T7AttrLazyBuild::TestPackage; sub cr { return T7AttrLazyBuild::TestPackage->new(); } pass("Syntax Compiles"); is( exception { cr() }, undef, 'Construction still works' ); my $i = cr(); is( $i->roattr, 'y', 'Builders Still Trigger 1' ); is( $i->rwattr, 'y', 'Builders Still Trigger 2' ); isnt( exception { $i->roattr('x') }, undef, "RO works still" ); is( exception { $i->rwattr('x') }, undef, 'RW works still' ); is( $i->rwattr(), 'x', "RW Works as expected" ); done_testing; MooseX-Has-Sugar-1.000004/t/06_attr_required.t0000644000175000017500000000203512373520301017227 0ustar kentkent use strict; use warnings; use Test::More; BEGIN { my $mod = 'Moose'; local $@; eval qq[require $mod; 1]; if ( my $e = $@ ) { my $msg = "$e"; if ( $e =~ /^Can't locate/ ) { $msg = "Test requires module '$mod' but it's not found"; } if ( $ENV{RELEASE_TESTING} ) { BAIL_OUT($msg); } else { plan skip_all => $msg; } } } use Test::Fatal; use lib "t/lib"; use T6AttrRequired::TestPackage; pass("Syntax Compiles"); sub cr { return T6AttrRequired::TestPackage->new(@_) } for ( {}, { roattr => "v" }, { rwattr => "v" }, { bareattr => 'v' } ) { isnt( exception { cr( %{$_} ) }, undef, 'Constraints on requirements still work' ); } is( exception { cr( rwattr => 'v', roattr => 'v', bareattr => 'v', ) }, undef, 'Construction still works' ); my $i = cr( rwattr => 'v', roattr => 'v', bareattr => 'v', ); isnt( exception { $i->roattr('x') }, undef, "RO works still" ); is( exception { $i->rwattr('x') }, undef, 'RW works still' ); is( $i->rwattr(), 'x', "RW Works as expected" ); done_testing; MooseX-Has-Sugar-1.000004/t/08_saccharin.t0000644000175000017500000000157612373520301016323 0ustar kentkent use strict; use warnings; use Test::More; BEGIN { my $mod = 'Moose'; local $@; eval qq[require $mod; 1]; if ( my $e = $@ ) { my $msg = "$e"; if ( $e =~ /^Can't locate/ ) { $msg = "Test requires module '$mod' but it's not found"; } if ( $ENV{RELEASE_TESTING} ) { BAIL_OUT($msg); } else { plan skip_all => $msg; } } } use Test::Fatal; use lib "t/lib"; use T8Saccharin::TestPackage; sub cr { return T8Saccharin::TestPackage->new(); } pass("Syntax Compiles"); is( exception { cr() }, undef, 'Construction still works' ); my $i = cr(); is( $i->roattr, 'y', 'Builders Still Trigger 1' ); is( $i->rwattr, 'y', 'Builders Still Trigger 2' ); isnt( exception { $i->roattr('x') }, undef, "RO works still" ); is( exception { $i->rwattr('x') }, undef, 'RW works still' ); is( $i->rwattr(), 'x', "RW Works as expected" ); done_testing; MooseX-Has-Sugar-1.000004/maint/0000755000175000017500000000000012373520301014530 5ustar kentkentMooseX-Has-Sugar-1.000004/maint/perlcritic.rc.gen.pl0000644000175000017500000000334312373520301020403 0ustar kentkent#!/usr/bin/env perl ## no critic (Modules::RequireVersionVar) # ABSTRACT: Write an INI file from a bundle use 5.008; # utf8 use strict; use warnings; use utf8; our $VERSION = 0.001; use Carp qw( croak carp ); use Perl::Critic::ProfileCompiler::Util qw( create_bundle ); use Path::Tiny qw(path); ## no critic (ErrorHandling::RequireUseOfExceptions) my $bundle = create_bundle('Example::Author::KENTNL'); $bundle->configure; my @stopwords = ( qw( ) ); for my $wordlist (@stopwords) { $bundle->add_or_append_policy_field( 'Documentation::PodSpelling' => ( 'stop_words' => $wordlist ) ); } $bundle->remove_policy('Subroutines::RequireArgUnpacking'); $bundle->remove_policy('Subroutines::ProhibitSubroutinePrototypes'); #$bundle->add_or_append_policy_field( # 'Subroutines::ProhibitCallsToUndeclaredSubs' => ( 'exempt_subs' => 'String::Formatter::str_rf' ), ); $bundle->remove_policy('ErrorHandling::RequireUseOfExceptions'); $bundle->remove_policy('CodeLayout::RequireUseUTF8'); #$bundle->remove_policy('ErrorHandling::RequireCarping'); $bundle->remove_policy('NamingConventions::Capitalization'); my $inf = $bundle->actionlist->get_inflated; my $config = $inf->apply_config; { my $rcfile = path('./perlcritic.rc')->openw_utf8; $rcfile->print( $config->as_ini, "\n" ); close $rcfile or croak 'Something fubared closing perlcritic.rc'; } my $deps = $inf->own_deps; { my $target = path('./misc'); $target->mkpath if not $target->is_dir; my $depsfile = $target->child('perlcritic.deps')->openw_utf8; for my $key ( sort keys %{$deps} ) { $depsfile->printf( "%s~%s\n", $key, $deps->{$key} ); *STDERR->printf( "%s => %s\n", $key, $deps->{$key} ); } close $depsfile or carp 'Something fubared closing perlcritic.deps'; } MooseX-Has-Sugar-1.000004/misc/0000755000175000017500000000000012373520301014353 5ustar kentkentMooseX-Has-Sugar-1.000004/misc/Changes.deps.all0000644000175000017500000002077712373520301017364 0ustar kentkentThis file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop) 1.000004 [Added / develop requires] - Dist::Zilla::Plugin::Git::Contributors 0.006 [Changed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL 2.016007 → 2.017002 1.000003 2014-08-07T11:02:32Z [Changed / configure requires] - ExtUtils::MakeMaker 6.30 → 0 [Changed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL 2.016004 → 2.016007 [Changed / test recommends] - CPAN::Meta 0 → 2.120900 [Removed / test recommends] - CPAN::Meta::Prereqs - CPAN::Meta::Requirements 2.120900 [Removed / test requires] - File::Spec::Functions - List::Util - Scalar::Util - version 0.77 1.000002 2014-07-18T23:34:10Z [Added / test recommends] - CPAN::Meta::Prereqs [Added / test requires] - File::Spec - Scalar::Util [Changed / develop suggests] - Dist::Zilla::App::Command::bakeini 0.001000 → 0.001001 - Dist::Zilla::PluginBundle::Author::KENTNL 2.016000 → 2.016004 [Changed / test requires] - version 0 → 0.77 1.000001 2014-06-10T05:18:46Z [Added / develop requires] - Dist::Zilla::Plugin::BumpVersionAfterRelease - Dist::Zilla::Plugin::CopyFilesFromBuild - Dist::Zilla::Plugin::RewriteVersion::Sanitized [Added / develop suggests] - Dist::Zilla::App::Command::bakeini 0.001000 - Dist::Zilla::PluginBundle::Author::KENTNL 2.016000 [Changed / configure recommends] - ExtUtils::MakeMaker 6.86 → 6.98 [Changed / test recommends] - ExtUtils::MakeMaker 6.86 → 6.98 - Test::More 1.001002 → 1.001003 [Removed / develop requires] - Dist::Zilla::Plugin::Git::NextVersion::Sanitized - Dist::Zilla::Plugin::PkgVersion - Dist::Zilla::PluginBundle::Author::KENTNL 2.012000 [Removed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 1.000000 2014-01-30T19:43:03Z [Added / configure recommends] - ExtUtils::MakeMaker 6.86 [Added / configure requires] - ExtUtils::MakeMaker 6.30 [Added / develop requires] - Dist::Zilla::Plugin::Git::NextRelease - Dist::Zilla::Plugin::Git::NextVersion::Sanitized - Dist::Zilla::Plugin::MakeMaker - Dist::Zilla::Plugin::MinimumPerl - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled - Dist::Zilla::Plugin::RunExtraTests - Dist::Zilla::Plugin::Test::ReportPrereqs - Moose - MooseX::Types::Moose [Added / runtime requires] - Sub::Exporter::Progressive [Added / test recommends] - CPAN::Meta - CPAN::Meta::Requirements 2.120900 - ExtUtils::MakeMaker 6.86 - Moose - MooseX::Types::Moose - Test::More 1.001002 [Added / test requires] - ExtUtils::MakeMaker - File::Spec::Functions - List::Util - namespace::clean - version [Changed / develop requires] - Dist::Zilla::PluginBundle::Author::KENTNL 2.002001 → 2.012000 [Changed / test requires] - Test::More 1.001002 → 0.89 [Removed / build requires] - Module::Build 0.4202 [Removed / configure requires] - Module::Build 0.4202 [Removed / develop requires] - Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl - Dist::Zilla::Plugin::CheckExtraTests - Dist::Zilla::Plugin::Git::NextVersion - Dist::Zilla::Plugin::ModuleBuild - Dist::Zilla::Plugin::NextRelease - Dist::Zilla::Plugin::Prereqs::MatchInstalled - Dist::Zilla::Plugin::PruneCruft - Dist::Zilla::Plugin::ReportVersions::Tiny - version 0.9901 [Removed / runtime requires] - Sub::Exporter [Removed / test requires] - Moose - MooseX::Types::Moose - namespace::autoclean 0.05070422 2013-11-20T08:32:12Z [Added / develop requires] - Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl - Dist::Zilla::Plugin::Authority 1.006 - Dist::Zilla::Plugin::AutoPrereqs - Dist::Zilla::Plugin::CheckExtraTests - Dist::Zilla::Plugin::ConfirmRelease - Dist::Zilla::Plugin::EOLTests - Dist::Zilla::Plugin::Git::Check - Dist::Zilla::Plugin::Git::Commit - Dist::Zilla::Plugin::Git::CommitBuild - Dist::Zilla::Plugin::Git::GatherDir - Dist::Zilla::Plugin::Git::NextVersion - Dist::Zilla::Plugin::Git::Tag - Dist::Zilla::Plugin::GithubMeta - Dist::Zilla::Plugin::License - Dist::Zilla::Plugin::Manifest - Dist::Zilla::Plugin::ManifestSkip - Dist::Zilla::Plugin::MetaConfig - Dist::Zilla::Plugin::MetaData::BuiltWith - Dist::Zilla::Plugin::MetaJSON - Dist::Zilla::Plugin::MetaProvides::Package 1.14000001 - Dist::Zilla::Plugin::MetaTests - Dist::Zilla::Plugin::MetaYAML - Dist::Zilla::Plugin::ModuleBuild - Dist::Zilla::Plugin::NextRelease - Dist::Zilla::Plugin::PkgVersion - Dist::Zilla::Plugin::PodCoverageTests - Dist::Zilla::Plugin::PodSyntaxTests - Dist::Zilla::Plugin::PodWeaver - Dist::Zilla::Plugin::Prereqs - Dist::Zilla::Plugin::Prereqs::MatchInstalled - Dist::Zilla::Plugin::PruneCruft - Dist::Zilla::Plugin::ReadmeAnyFromPod - Dist::Zilla::Plugin::ReadmeFromPod - Dist::Zilla::Plugin::ReportVersions::Tiny - Dist::Zilla::Plugin::Test::CPAN::Changes - Dist::Zilla::Plugin::Test::Compile::PerFile - Dist::Zilla::Plugin::Test::Kwalitee - Dist::Zilla::Plugin::Test::MinimumVersion - Dist::Zilla::Plugin::Test::Perl::Critic - Dist::Zilla::Plugin::TestRelease - Dist::Zilla::Plugin::Twitter - Dist::Zilla::Plugin::UploadToCPAN - Dist::Zilla::PluginBundle::Author::KENTNL 2.002001 - Pod::Coverage::TrustPod - Test::CPAN::Changes 0.19 - Test::CPAN::Meta - Test::Kwalitee 1.12 - Test::Pod 1.41 - Test::Pod::Coverage 1.08 - version 0.9901 [Added / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 [Added / test requires] - lib [Changed / build requires] - Module::Build 0.4002 → 0.4202 [Changed / configure requires] - Module::Build 0.4002 → 0.4202 [Changed / test requires] - Test::More 0.98 → 1.001002 [Removed / develop recommends] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 [Removed / develop requires] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite [Removed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL v1.4.3 [Removed / test requires] - File::Find - File::Temp 0.05070421 2012-08-03T10:25:23Z [Changed / build requires] - Module::Build 0.3601 → 0.4002 [Changed / configure requires] - Module::Build 0.3601 → 0.4002 [Changed / develop recommends] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite 0.01009803 → v1.3.0 [Changed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL v1.2.0 → v1.4.3 [Changed / test requires] - Test::More 0.88 → 0.98 0.05070420 2012-02-03T03:33:11Z [Added / runtime requires] - perl 5.006 - strict - warnings [Changed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 → v1.2.0 [Removed / test requires] - English 0.05070419 2011-04-07T02:03:19Z [Added / develop recommends] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite 0.01009803 [Added / develop requires] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite [Added / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 [Removed / develop recommends] - Dist::Zilla::PluginBundle::KENTNL::Lite 0.01009803 [Removed / develop requires] - Dist::Zilla::PluginBundle::KENTNL::Lite [Removed / develop suggests] - Dist::Zilla::PluginBundle::KENTNL 0.01017119 0.05055616 2010-11-13T23:43:43Z [Added / develop recommends] - Dist::Zilla::PluginBundle::KENTNL::Lite 0.01009803 [Added / develop requires] - Dist::Zilla::PluginBundle::KENTNL::Lite [Added / develop suggests] - Dist::Zilla::PluginBundle::KENTNL 0.01017119 [Added / test requires] - Test::Fatal [Removed / test requires] - FindBin - Test::Exception 0.05046611 2010-08-16T18:30:39Z [Added / test requires] - English - MooseX::Types::Moose 0.05044303 2010-07-24T10:03:50Z [Added / test requires] - File::Find - File::Temp - FindBin - Moose - Test::Exception - Test::More 0.88 - namespace::autoclean [Changed / build requires] - Module::Build 0.35 → 0.3601 [Changed / configure requires] - Module::Build 0.35 → 0.3601 [Removed / runtime requires] - Moose 0.84 - MooseX::Types 0.10 - MooseX::Types::Moose - Test::Exception - Test::More - namespace::autoclean 0.0405 2009-12-04T09:20:43Z [Added / build requires] - Module::Build 0.35 [Added / configure requires] - Module::Build 0.35 [Added / runtime requires] - MooseX::Types 0.10 [Removed / runtime requires] - Find::Lib - Test::use::ok 0.0404 2009-07-06T03:34:10Z [Added / runtime requires] - Carp - Find::Lib - Moose 0.84 - MooseX::Types::Moose - Sub::Exporter - Test::Exception - Test::More - Test::use::ok - namespace::autoclean 0.0403 2009-06-30T13:56:07Z 0.0402 2009-06-29T19:43:05Z 0.0401 2009-06-29T18:16:51Z MooseX-Has-Sugar-1.000004/misc/Changes.deps0000644000175000017500000000564412373520301016611 0ustar kentkentThis file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test) 1.000004 1.000003 2014-08-07T11:02:32Z [Changed / configure requires] - ExtUtils::MakeMaker 6.30 → 0 [Removed / test requires] - File::Spec::Functions - List::Util - Scalar::Util - version 0.77 1.000002 2014-07-18T23:34:10Z [Added / test requires] - File::Spec - Scalar::Util [Changed / test requires] - version 0 → 0.77 1.000001 2014-06-10T05:18:46Z 1.000000 2014-01-30T19:43:03Z [Added / configure requires] - ExtUtils::MakeMaker 6.30 [Added / runtime requires] - Sub::Exporter::Progressive [Added / test requires] - ExtUtils::MakeMaker - File::Spec::Functions - List::Util - namespace::clean - version [Changed / test requires] - Test::More 1.001002 → 0.89 [Removed / build requires] - Module::Build 0.4202 [Removed / configure requires] - Module::Build 0.4202 [Removed / runtime requires] - Sub::Exporter [Removed / test requires] - Moose - MooseX::Types::Moose - namespace::autoclean 0.05070422 2013-11-20T08:32:12Z [Added / test requires] - lib [Changed / build requires] - Module::Build 0.4002 → 0.4202 [Changed / configure requires] - Module::Build 0.4002 → 0.4202 [Changed / test requires] - Test::More 0.98 → 1.001002 [Removed / test requires] - File::Find - File::Temp 0.05070421 2012-08-03T10:25:23Z [Changed / build requires] - Module::Build 0.3601 → 0.4002 [Changed / configure requires] - Module::Build 0.3601 → 0.4002 [Changed / test requires] - Test::More 0.88 → 0.98 0.05070420 2012-02-03T03:33:11Z [Added / runtime requires] - perl 5.006 - strict - warnings [Removed / test requires] - English 0.05070419 2011-04-07T02:03:19Z 0.05055616 2010-11-13T23:43:43Z [Added / test requires] - Test::Fatal [Removed / test requires] - FindBin - Test::Exception 0.05046611 2010-08-16T18:30:39Z [Added / test requires] - English - MooseX::Types::Moose 0.05044303 2010-07-24T10:03:50Z [Added / test requires] - File::Find - File::Temp - FindBin - Moose - Test::Exception - Test::More 0.88 - namespace::autoclean [Changed / build requires] - Module::Build 0.35 → 0.3601 [Changed / configure requires] - Module::Build 0.35 → 0.3601 [Removed / runtime requires] - Moose 0.84 - MooseX::Types 0.10 - MooseX::Types::Moose - Test::Exception - Test::More - namespace::autoclean 0.0405 2009-12-04T09:20:43Z [Added / build requires] - Module::Build 0.35 [Added / configure requires] - Module::Build 0.35 [Added / runtime requires] - MooseX::Types 0.10 [Removed / runtime requires] - Find::Lib - Test::use::ok 0.0404 2009-07-06T03:34:10Z [Added / runtime requires] - Carp - Find::Lib - Moose 0.84 - MooseX::Types::Moose - Sub::Exporter - Test::Exception - Test::More - Test::use::ok - namespace::autoclean 0.0403 2009-06-30T13:56:07Z 0.0402 2009-06-29T19:43:05Z 0.0401 2009-06-29T18:16:51Z MooseX-Has-Sugar-1.000004/misc/Changes.deps.dev0000644000175000017500000001305512373520301017361 0ustar kentkentThis file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL ) 1.000004 [Added / develop requires] - Dist::Zilla::Plugin::Git::Contributors 0.006 [Changed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL 2.016007 → 2.017002 1.000003 2014-08-07T11:02:32Z [Changed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL 2.016004 → 2.016007 1.000002 2014-07-18T23:34:10Z [Changed / develop suggests] - Dist::Zilla::App::Command::bakeini 0.001000 → 0.001001 - Dist::Zilla::PluginBundle::Author::KENTNL 2.016000 → 2.016004 1.000001 2014-06-10T05:18:46Z [Added / develop requires] - Dist::Zilla::Plugin::BumpVersionAfterRelease - Dist::Zilla::Plugin::CopyFilesFromBuild - Dist::Zilla::Plugin::RewriteVersion::Sanitized [Added / develop suggests] - Dist::Zilla::App::Command::bakeini 0.001000 - Dist::Zilla::PluginBundle::Author::KENTNL 2.016000 [Removed / develop requires] - Dist::Zilla::Plugin::Git::NextVersion::Sanitized - Dist::Zilla::Plugin::PkgVersion - Dist::Zilla::PluginBundle::Author::KENTNL 2.012000 [Removed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 1.000000 2014-01-30T19:43:03Z [Added / develop requires] - Dist::Zilla::Plugin::Git::NextRelease - Dist::Zilla::Plugin::Git::NextVersion::Sanitized - Dist::Zilla::Plugin::MakeMaker - Dist::Zilla::Plugin::MinimumPerl - Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled - Dist::Zilla::Plugin::RunExtraTests - Dist::Zilla::Plugin::Test::ReportPrereqs - Moose - MooseX::Types::Moose [Changed / develop requires] - Dist::Zilla::PluginBundle::Author::KENTNL 2.002001 → 2.012000 [Removed / develop requires] - Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl - Dist::Zilla::Plugin::CheckExtraTests - Dist::Zilla::Plugin::Git::NextVersion - Dist::Zilla::Plugin::ModuleBuild - Dist::Zilla::Plugin::NextRelease - Dist::Zilla::Plugin::Prereqs::MatchInstalled - Dist::Zilla::Plugin::PruneCruft - Dist::Zilla::Plugin::ReportVersions::Tiny - version 0.9901 0.05070422 2013-11-20T08:32:12Z [Added / develop requires] - Dist::Zilla::Plugin::Author::KENTNL::MinimumPerl - Dist::Zilla::Plugin::Authority 1.006 - Dist::Zilla::Plugin::AutoPrereqs - Dist::Zilla::Plugin::CheckExtraTests - Dist::Zilla::Plugin::ConfirmRelease - Dist::Zilla::Plugin::EOLTests - Dist::Zilla::Plugin::Git::Check - Dist::Zilla::Plugin::Git::Commit - Dist::Zilla::Plugin::Git::CommitBuild - Dist::Zilla::Plugin::Git::GatherDir - Dist::Zilla::Plugin::Git::NextVersion - Dist::Zilla::Plugin::Git::Tag - Dist::Zilla::Plugin::GithubMeta - Dist::Zilla::Plugin::License - Dist::Zilla::Plugin::Manifest - Dist::Zilla::Plugin::ManifestSkip - Dist::Zilla::Plugin::MetaConfig - Dist::Zilla::Plugin::MetaData::BuiltWith - Dist::Zilla::Plugin::MetaJSON - Dist::Zilla::Plugin::MetaProvides::Package 1.14000001 - Dist::Zilla::Plugin::MetaTests - Dist::Zilla::Plugin::MetaYAML - Dist::Zilla::Plugin::ModuleBuild - Dist::Zilla::Plugin::NextRelease - Dist::Zilla::Plugin::PkgVersion - Dist::Zilla::Plugin::PodCoverageTests - Dist::Zilla::Plugin::PodSyntaxTests - Dist::Zilla::Plugin::PodWeaver - Dist::Zilla::Plugin::Prereqs - Dist::Zilla::Plugin::Prereqs::MatchInstalled - Dist::Zilla::Plugin::PruneCruft - Dist::Zilla::Plugin::ReadmeAnyFromPod - Dist::Zilla::Plugin::ReadmeFromPod - Dist::Zilla::Plugin::ReportVersions::Tiny - Dist::Zilla::Plugin::Test::CPAN::Changes - Dist::Zilla::Plugin::Test::Compile::PerFile - Dist::Zilla::Plugin::Test::Kwalitee - Dist::Zilla::Plugin::Test::MinimumVersion - Dist::Zilla::Plugin::Test::Perl::Critic - Dist::Zilla::Plugin::TestRelease - Dist::Zilla::Plugin::Twitter - Dist::Zilla::Plugin::UploadToCPAN - Dist::Zilla::PluginBundle::Author::KENTNL 2.002001 - Pod::Coverage::TrustPod - Test::CPAN::Changes 0.19 - Test::CPAN::Meta - Test::Kwalitee 1.12 - Test::Pod 1.41 - Test::Pod::Coverage 1.08 - version 0.9901 [Added / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 [Removed / develop recommends] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite v1.3.0 [Removed / develop requires] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite [Removed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL v1.4.3 0.05070421 2012-08-03T10:25:23Z [Changed / develop recommends] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite 0.01009803 → v1.3.0 [Changed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL v1.2.0 → v1.4.3 0.05070420 2012-02-03T03:33:11Z [Changed / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 → v1.2.0 0.05070419 2011-04-07T02:03:19Z [Added / develop recommends] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite 0.01009803 [Added / develop requires] - Dist::Zilla::PluginBundle::Author::KENTNL::Lite [Added / develop suggests] - Dist::Zilla::PluginBundle::Author::KENTNL v1.0.0 [Removed / develop recommends] - Dist::Zilla::PluginBundle::KENTNL::Lite 0.01009803 [Removed / develop requires] - Dist::Zilla::PluginBundle::KENTNL::Lite [Removed / develop suggests] - Dist::Zilla::PluginBundle::KENTNL 0.01017119 0.05055616 2010-11-13T23:43:43Z [Added / develop recommends] - Dist::Zilla::PluginBundle::KENTNL::Lite 0.01009803 [Added / develop requires] - Dist::Zilla::PluginBundle::KENTNL::Lite [Added / develop suggests] - Dist::Zilla::PluginBundle::KENTNL 0.01017119 0.05046611 2010-08-16T18:30:39Z 0.05044303 2010-07-24T10:03:50Z 0.0405 2009-12-04T09:20:43Z 0.0404 2009-07-06T03:34:10Z 0.0403 2009-06-30T13:56:07Z 0.0402 2009-06-29T19:43:05Z 0.0401 2009-06-29T18:16:51Z MooseX-Has-Sugar-1.000004/misc/Changes.deps.opt0000644000175000017500000000230612373520301017402 0ustar kentkentThis file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test) 1.000004 1.000003 2014-08-07T11:02:32Z [Changed / test recommends] - CPAN::Meta 0 → 2.120900 [Removed / test recommends] - CPAN::Meta::Prereqs - CPAN::Meta::Requirements 2.120900 1.000002 2014-07-18T23:34:10Z [Added / test recommends] - CPAN::Meta::Prereqs 1.000001 2014-06-10T05:18:46Z [Changed / configure recommends] - ExtUtils::MakeMaker 6.86 → 6.98 [Changed / test recommends] - ExtUtils::MakeMaker 6.86 → 6.98 - Test::More 1.001002 → 1.001003 1.000000 2014-01-30T19:43:03Z [Added / configure recommends] - ExtUtils::MakeMaker 6.86 [Added / test recommends] - CPAN::Meta - CPAN::Meta::Requirements 2.120900 - ExtUtils::MakeMaker 6.86 - Moose - MooseX::Types::Moose - Test::More 1.001002 0.05070422 2013-11-20T08:32:12Z 0.05070421 2012-08-03T10:25:23Z 0.05070420 2012-02-03T03:33:11Z 0.05070419 2011-04-07T02:03:19Z 0.05055616 2010-11-13T23:43:43Z 0.05046611 2010-08-16T18:30:39Z 0.05044303 2010-07-24T10:03:50Z 0.0405 2009-12-04T09:20:43Z 0.0404 2009-07-06T03:34:10Z 0.0403 2009-06-30T13:56:07Z 0.0402 2009-06-29T19:43:05Z 0.0401 2009-06-29T18:16:51Z MooseX-Has-Sugar-1.000004/misc/perlcritic.deps0000644000175000017500000000130612373520301017370 0ustar kentkentPerl::Critic::Policy::Lax::RequireExplicitPackage::ExceptForPragmata~0 Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter~0 Perl::Critic::ProfileCompiler::Bundle::Bangs~0 Perl::Critic::ProfileCompiler::Bundle::Compatibility~0 Perl::Critic::ProfileCompiler::Bundle::Core~0 Perl::Critic::ProfileCompiler::Bundle::Deprecated~0 Perl::Critic::ProfileCompiler::Bundle::Itch~0 Perl::Critic::ProfileCompiler::Bundle::Lax~0 Perl::Critic::ProfileCompiler::Bundle::Moose~0 Perl::Critic::ProfileCompiler::Bundle::More~0 Perl::Critic::ProfileCompiler::Bundle::Pulp~0 Perl::Critic::ProfileCompiler::Bundle::StricterSubs~0 Perl::Critic::ProfileCompiler::Bundle::Swift~0 Perl::Critic::ProfileCompiler::Bundle::Tics~0 MooseX-Has-Sugar-1.000004/.travis.yml0000644000175000017500000000300312373520301015525 0ustar kentkentlanguage: perl matrix: allow_failures: - perl: "5.8" - env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 - env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 include: - perl: "5.8" env: STERILIZE_ENV=0 - perl: "5.10" env: STERILIZE_ENV=0 - perl: "5.12" env: STERILIZE_ENV=0 - perl: "5.14" env: STERILIZE_ENV=0 - perl: "5.16" env: STERILIZE_ENV=0 - perl: "5.20" env: STERILIZE_ENV=0 - perl: "5.21" env: STERILIZE_ENV=0 - perl: "5.8" env: STERILIZE_ENV=1 - perl: "5.10" env: STERILIZE_ENV=1 - perl: "5.20" env: STERILIZE_ENV=1 - perl: "5.21" env: STERILIZE_ENV=1 - perl: "5.21" env: STERILIZE_ENV=0 DEVELOPER_DEPS=1 - perl: "5.21" env: STERILIZE_ENV=0 RELEASE_TESTING=1 AUTHOR_TESTING=1 - perl: "5.21" env: STERILIZE_ENV=0 COVERAGE_TESTING=1 before_install: - perlbrew list - time git clone --depth 10 https://github.com/kentfredric/travis-scripts.git maint-travis-ci - time git -C ./maint-travis-ci reset --hard master - time perl ./maint-travis-ci/branch_reset.pl - time perl ./maint-travis-ci/sterilize_env.pl install: - time perl ./maint-travis-ci/install_deps_early.pl - time perl ./maint-travis-ci/install_deps.pl before_script: - time perl ./maint-travis-ci/before_script.pl script: - time perl ./maint-travis-ci/script.pl after_failure: - perl ./maint-travis-ci/report_fail_ctx.pl branches: only: - "master" - "build/master" - "releases" MooseX-Has-Sugar-1.000004/README0000644000175000017500000001234212373520301014302 0ustar kentkentNAME MooseX::Has::Sugar - Sugar Syntax for moose 'has' fields VERSION version 1.000004 SYNOPSIS Moose "has" syntax is generally fine, but sometimes one gets bothered with the constant typing of string quotes for things. The MooseX::Types module exists and in many ways reduces the need for constant string creation. Primary Benefits at a Glance Reduced Typing in "has" declarations. The constant need to type "=>" and '' is fine for one-off cases, but the instant you have more than about 4 attributes it starts to get annoying. More compact declarations. Reduces much of the redundant typing in most cases, which makes your life easier, and makes it take up less visual space, which makes it faster to read. No String Worries Strings are often problematic, due to white-space etc. Noted that if you do happen to mess them up, Moose should at *least* warn you that you've done something daft. Using this alleviates that worry. Before this Module. Classical Moose has foo => ( isa => 'Str', is => 'ro', required => 1, ); has bar => ( isa => 'Str', is => 'rw' lazy_build => 1, ); Lazy Evil way to do it: PLEASE DO NOT DO THIS has qw( foo isa Str is ro required 1 ); has qw( bar isa Str is rw lazy_build 1 ); With this module ( and with MooseX::Types ) use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar; has foo => ( isa => Str, ro, required, ); has bar => ( isa => Str, rw, lazy_build, ); Or even use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar; has foo => ( isa => Str, ro, required, ); has bar => ( isa => Str, rw, lazy_build, ); Alternative Forms Basic "is" Expansion Only ( using ::Sugar::Minimal instead ) use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar::Minimal; has foo => ( isa => Str, is => ro, required => 1, ); has bar => ( isa => Str, is => rw, lazy_build => 1, ); Attribute Expansions with Basic Expansions ( Combining parts of this and ::Sugar::Minimal ) use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar::Minimal; use MooseX::Has::Sugar qw( :attrs ); has foo => ( isa => Str, is => ro, required, ); has bar => ( isa => Str, is => rw, lazy_build, ); EXPORT GROUPS ":default" Since 0.0300, this exports all our syntax, the same as ":attrs" ":isattrs". Primarily because I found you generally want all the sugar, not just part of it. This also gets rid of that nasty exclusion logic. ":isattrs" This exports "ro", "rw" and "bare" as lists, so they behave as stand-alone attributes like "lazy" does. has foo => ( required, isa => 'Str', ro, ); NOTE: This option is incompatible with ::Sugar::Minimal : "CONFLICTS" ":attrs" This exports "lazy" , "lazy_build" and "required", "coerce", "weak_ref" and "auto_deref" as subs that assume positive. has foo => ( required, isa => 'Str', ); NOTE: This option is incompatible with MooseX::Types and Moose's Type Constraints Module : "CONFLICTS" ":is" DEPRECATED. See ::Sugar::Minimal for the same functionality ":allattrs" DEPRECATED, just use ":default" or do use MooseX::Has::Sugar; EXPORTED FUNCTIONS "bare" returns "('is','bare')" "ro" returns "('is','ro')" "rw" returns "('is','rw')" "required" returns "('required',1)" "lazy" returns "('lazy',1)" "lazy_build" returns "('lazy_build',1)" "weak_ref" returns "('weak_ref',1)" "coerce" returns "('coerce',1)" WARNING: Conflict with MooseX::Types and Moose::Util::TypeConstraints, see "CONFLICTS". "auto_deref" returns "('auto_deref',1)" CONFLICTS MooseX::Has::Sugar::Minimal MooseX::Has::Sugar::Saccharin This module is not intended to be used in conjunction with ::Sugar::Minimal or ::Sugar::Saccharin We export many of the same symbols and its just not very sensible. MooseX::Types Moose::Util::TypeConstraints due to exporting the "coerce" symbol, using us in the same scope as a call to use MooseX::Types .... or use Moose::Util::TypeConstraints will result in a symbol collision. We recommend using and creating proper type libraries instead, ( which will absolve you entirely of the need to use MooseX::Types and MooseX::Has::Sugar(::*)? in the same scope ) AUTHOR Kent Fredric COPYRIGHT AND LICENSE This software is copyright (c) 2014 by Kent Fredric. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. MooseX-Has-Sugar-1.000004/.gitignore0000644000175000017500000000003212373520301015403 0ustar kentkent.build MooseX-Has-Sugar-* MooseX-Has-Sugar-1.000004/META.yml0000644000175000017500000004410412373520301014674 0ustar kentkent--- abstract: "Sugar Syntax for moose 'has' fields" author: - 'Kent Fredric ' build_requires: ExtUtils::MakeMaker: '0' File::Spec: '0' Test::Fatal: '0' Test::More: '0.89' lib: '0' namespace::clean: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: '0' generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: MooseX-Has-Sugar provides: MooseX::Has::Sugar: file: lib/MooseX/Has/Sugar.pm version: '1.000004' MooseX::Has::Sugar::Minimal: file: lib/MooseX/Has/Sugar/Minimal.pm version: '1.000004' MooseX::Has::Sugar::Saccharin: file: lib/MooseX/Has/Sugar/Saccharin.pm version: '1.000004' requires: Carp: '0' Sub::Exporter::Progressive: '0' perl: '5.006' strict: '0' warnings: '0' resources: bugtracker: https://github.com/kentnl/MooseX-Has-Sugar/issues homepage: https://github.com/kentnl/MooseX-Has-Sugar repository: https://github.com/kentnl/MooseX-Has-Sugar.git version: '1.000004' x_BuiltWith: modules: CPAN::Meta: '2.142060' Carp: '1.34' Dist::Zilla::App::Command::bakeini: '0.001001' Dist::Zilla::Plugin::Authority: '1.006' Dist::Zilla::Plugin::AutoPrereqs: '5.020' Dist::Zilla::Plugin::BumpVersionAfterRelease: '0.002' Dist::Zilla::Plugin::ConfirmRelease: '5.020' Dist::Zilla::Plugin::CopyFilesFromBuild: '0.103510' Dist::Zilla::Plugin::EOLTests: '0.02' Dist::Zilla::Plugin::Git::Check: '2.023' Dist::Zilla::Plugin::Git::Commit: '2.023' Dist::Zilla::Plugin::Git::CommitBuild: '2.023' Dist::Zilla::Plugin::Git::Contributors: '0.006' Dist::Zilla::Plugin::Git::GatherDir: '2.023' Dist::Zilla::Plugin::Git::NextRelease: '0.002011' Dist::Zilla::Plugin::Git::Tag: '2.023' Dist::Zilla::Plugin::GithubMeta: '0.46' Dist::Zilla::Plugin::License: '5.020' Dist::Zilla::Plugin::MakeMaker: '5.020' Dist::Zilla::Plugin::Manifest: '5.020' Dist::Zilla::Plugin::ManifestSkip: '5.020' Dist::Zilla::Plugin::MetaConfig: '5.020' Dist::Zilla::Plugin::MetaData::BuiltWith: '1.001000' Dist::Zilla::Plugin::MetaJSON: '5.020' Dist::Zilla::Plugin::MetaProvides::Package: '2.000003' Dist::Zilla::Plugin::MetaTests: '5.020' Dist::Zilla::Plugin::MetaYAML: '5.020' Dist::Zilla::Plugin::MinimumPerl: '1.003' Dist::Zilla::Plugin::PodCoverageTests: '5.020' Dist::Zilla::Plugin::PodSyntaxTests: '5.020' Dist::Zilla::Plugin::PodWeaver: '4.005' Dist::Zilla::Plugin::Prereqs: '5.020' Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: '0.002000' Dist::Zilla::Plugin::ReadmeAnyFromPod: '0.142250' Dist::Zilla::Plugin::ReadmeFromPod: '0.21' Dist::Zilla::Plugin::RewriteVersion::Sanitized: '0.001002' Dist::Zilla::Plugin::RunExtraTests: '0.022' Dist::Zilla::Plugin::Test::CPAN::Changes: '0.008' Dist::Zilla::Plugin::Test::Compile::PerFile: '0.002001' Dist::Zilla::Plugin::Test::Kwalitee: '2.07' Dist::Zilla::Plugin::Test::MinimumVersion: '2.000005' Dist::Zilla::Plugin::Test::Perl::Critic: '2.112410' Dist::Zilla::Plugin::Test::ReportPrereqs: '0.019' Dist::Zilla::Plugin::TestRelease: '5.020' Dist::Zilla::Plugin::Twitter: '0.025' Dist::Zilla::Plugin::UploadToCPAN: '5.020' Dist::Zilla::PluginBundle::Author::KENTNL: '2.017002' ExtUtils::MakeMaker: '6.98' File::Spec: '3.48' Moose: '2.1211' MooseX::Types::Moose: '0.44' Pod::Coverage::TrustPod: '0.100003' Sub::Exporter::Progressive: '0.001011' Test::CPAN::Changes: '0.30' Test::CPAN::Meta: '0.23' Test::Fatal: '0.013' Test::Kwalitee: '1.19' Test::More: '1.001003' Test::Pod: '1.48' Test::Pod::Coverage: '1.10' lib: '0.63' namespace::clean: '0.25' strict: '1.08' warnings: '1.24' perl: original: v5.21.1 qv: 1 version: - 5 - 21 - 1 perl-config: gccversion: 4.8.3 myarchname: x86_64-linux osname: linux platform: linux uname: 'Linux 3.15.5-aufs x86_64 GenuineIntel GNU/Linux' x_Dist_Zilla: perl: version: '5.021001' plugins: - class: Dist::Zilla::Plugin::MetaConfig name: '@Author::KENTNL/MetaConfig' version: '5.020' - class: Dist::Zilla::Plugin::GithubMeta name: '@Author::KENTNL/GithubMeta' version: '0.46' - class: Dist::Zilla::Plugin::MetaProvides::Package config: Dist::Zilla::Plugin::MetaProvides::Package: finder_objects: - class: Dist::Zilla::Plugin::FinderCode name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' version: '5.020' Dist::Zilla::Role::MetaProvider::Provider: inherit_missing: '1' inherit_version: '1' meta_noindex: '1' name: '@Author::KENTNL/MetaProvides::Package' version: '2.000003' - class: Dist::Zilla::Plugin::MetaData::BuiltWith config: Dist::Zilla::Plugin::MetaData::BuiltWith: _stash_key: x_BuiltWith show_config: '1' show_uname: '1' uname: uname_args: - -s - -o - -r - -m - -i uname_call: uname name: '@Author::KENTNL/MetaData::BuiltWith' version: '1.001000' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: include_authors: '0' include_releaser: '0' order_by: name name: '@Author::KENTNL/Git::Contributors' version: '0.006' - class: Dist::Zilla::Plugin::Git::GatherDir config: Dist::Zilla::Plugin::Git::GatherDir: include_untracked: '0' Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::KENTNL/Git::GatherDir' version: '2.023' - class: Dist::Zilla::Plugin::License name: '@Author::KENTNL/License' version: '5.020' - class: Dist::Zilla::Plugin::MetaJSON name: '@Author::KENTNL/MetaJSON' version: '5.020' - class: Dist::Zilla::Plugin::MetaYAML name: '@Author::KENTNL/MetaYAML' version: '5.020' - class: Dist::Zilla::Plugin::Manifest name: '@Author::KENTNL/Manifest' version: '5.020' - class: Dist::Zilla::Plugin::CopyFilesFromBuild name: '@Author::KENTNL/CopyXBuild' version: '0.103510' - class: Dist::Zilla::Plugin::MetaTests name: '@Author::KENTNL/MetaTests' version: '5.020' - class: Dist::Zilla::Plugin::PodCoverageTests name: '@Author::KENTNL/PodCoverageTests' version: '5.020' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@Author::KENTNL/PodSyntaxTests' version: '5.020' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@Author::KENTNL/Test::ReportPrereqs' version: '0.019' - class: Dist::Zilla::Plugin::Test::Kwalitee name: '@Author::KENTNL/Test::Kwalitee' version: '2.07' - class: Dist::Zilla::Plugin::EOLTests name: '@Author::KENTNL/EOLTests' version: '0.02' - class: Dist::Zilla::Plugin::Test::MinimumVersion name: '@Author::KENTNL/Test::MinimumVersion' version: '2.000005' - class: Dist::Zilla::Plugin::FinderCode name: '@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM' version: '5.020' - class: Dist::Zilla::Plugin::Test::Compile::PerFile config: Dist::Zilla::Plugin::Test::Compile::PerFile: file: - lib/MooseX/Has/Sugar.pm - lib/MooseX/Has/Sugar/Minimal.pm - lib/MooseX/Has/Sugar/Saccharin.pm path_translator: base64_filter prefix: t/00-compile skip: [] test_template: 01-basic.t.tpl xt_mode: ~ name: '@Author::KENTNL/Test::Compile::PerFile' version: '0.002001' - class: Dist::Zilla::Plugin::Test::Perl::Critic name: '@Author::KENTNL/Test::Perl::Critic' version: '2.112410' - class: Dist::Zilla::Plugin::ManifestSkip name: '@Author::KENTNL/ManifestSkip' version: '5.020' - class: Dist::Zilla::Plugin::RewriteVersion::Sanitized config: Dist::Zilla::Role::Version::Sanitize: mantissa: '6' normal_form: numify name: '@Author::KENTNL/RewriteVersion::Sanitized' version: '0.001002' - class: Dist::Zilla::Plugin::PodWeaver config: Dist::Zilla::Plugin::PodWeaver: finder: - ':InstallModules' - ':ExecFiles' plugins: - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' version: '4.006' - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' version: '4.006' - class: Pod::Weaver::Plugin::SingleEncoding name: -SingleEncoding version: '4.006' - class: Pod::Weaver::Section::Name name: Name version: '4.006' - class: Pod::Weaver::Section::Version name: Version version: '4.006' - class: Pod::Weaver::Section::Region name: prelude version: '4.006' - class: Pod::Weaver::Section::Generic name: SYNOPSIS version: '4.006' - class: Pod::Weaver::Section::Collect name: EXPORTGROUPS version: '4.006' - class: Pod::Weaver::Section::Collect name: EXPORTFUNCTIONS version: '4.006' - class: Pod::Weaver::Section::Leftovers name: Leftovers version: '4.006' - class: Pod::Weaver::Section::Region name: postlude version: '4.006' - class: Pod::Weaver::Section::Authors name: Authors version: '4.006' - class: Pod::Weaver::Section::Legal name: Legal version: '4.006' name: '@Author::KENTNL/PodWeaver' version: '4.005' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@Author::KENTNL/AutoPrereqs' version: '5.020' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: suggests name: '@Author::KENTNL/BundleDevelSuggests' version: '5.020' - class: Dist::Zilla::Plugin::MinimumPerl name: '@Author::KENTNL/MinimumPerl' version: '1.003' - class: Dist::Zilla::Plugin::Authority name: '@Author::KENTNL/Authority' version: '1.006' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: '10' name: '@Author::KENTNL/MakeMaker' version: '5.020' - class: Dist::Zilla::Plugin::ReadmeFromPod name: '@Author::KENTNL/ReadmeFromPod' version: '0.21' - class: Dist::Zilla::Plugin::ReadmeAnyFromPod name: '@Author::KENTNL/ReadmeAnyFromPod' version: '0.142250' - class: Dist::Zilla::Plugin::Test::CPAN::Changes name: '@Author::KENTNL/Test::CPAN::Changes' version: '0.008' - class: Dist::Zilla::Plugin::RunExtraTests config: Dist::Zilla::Role::TestRunner: default_jobs: '10' name: '@Author::KENTNL/RunExtraTests' version: '0.022' - class: Dist::Zilla::Plugin::TestRelease name: '@Author::KENTNL/TestRelease' version: '5.020' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@Author::KENTNL/ConfirmRelease' version: '5.020' - class: Dist::Zilla::Plugin::Git::Check config: Dist::Zilla::Plugin::Git::Check: untracked_files: die Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - dist.ini - Changes allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::KENTNL/Git::Check' version: '2.023' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: v%v%n%n%c time_zone: local Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - dist.ini - Changes allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::KENTNL/commit_dirty_files' version: '2.023' - class: Dist::Zilla::Plugin::Git::Tag config: Dist::Zilla::Plugin::Git::Tag: branch: ~ signed: '0' tag: 1.000004-source tag_format: '%v-source' tag_message: v%v time_zone: local Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::KENTNL/tag_master' version: '2.023' - class: Dist::Zilla::Plugin::Git::NextRelease name: '@Author::KENTNL/Git::NextRelease' version: '0.002011' - class: Dist::Zilla::Plugin::BumpVersionAfterRelease name: '@Author::KENTNL/BumpVersionAfterRelease' version: '0.002' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: v%v%n%n%c time_zone: local Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - dist.ini - Changes allow_dirty_match: - (?^u:^lib/) changelog: Changes Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::KENTNL/commit_release_changes' version: '2.023' - class: Dist::Zilla::Plugin::Git::CommitBuild config: Dist::Zilla::Plugin::Git::CommitBuild: branch: build/%b build_root: ~ message: 'Build results of %h (on %b)' multiple_inheritance: '0' release_branch: releases release_message: 'Build results of %h (on %b)' Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::KENTNL/Git::CommitBuild' version: '2.023' - class: Dist::Zilla::Plugin::Git::Tag config: Dist::Zilla::Plugin::Git::Tag: branch: releases signed: '0' tag: '1.000004' tag_format: '%v' tag_message: v%v time_zone: local Dist::Zilla::Role::Git::Repo: repo_root: . name: '@Author::KENTNL/tag_release' version: '2.023' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@Author::KENTNL/UploadToCPAN' version: '5.020' - class: Dist::Zilla::Plugin::Twitter name: '@Author::KENTNL/Twitter' version: '0.025' - class: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled config: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: applyto_map: - 'build.requires = build.recommends' - 'test.requires = test.recommends' - 'runtime.requires = runtime.recommends' - 'configure.requires = configure.recommends' - 'develop.requires = develop.recommends' applyto_phase: - build - test - runtime - configure - develop modules: - ExtUtils::MakeMaker - Test::More name: '@Author::KENTNL/Prereqs::Recommend::MatchInstalled' version: '0.002000' - class: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled config: Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled: applyto_map: - 'develop.suggests = develop.suggests' applyto_phase: - develop modules: - Dist::Zilla::PluginBundle::Author::KENTNL - Dist::Zilla::App::Command::bakeini name: '@Author::KENTNL/always_latest_develop_bundle' version: '0.002000' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: requires name: '@Author::KENTNL/::Role::BundleDeps' version: '5.020' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: test type: recommends name: TestRecommends version: '5.020' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: requires name: DevelopRequires version: '5.020' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: runtime type: requires name: Prereqs version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' version: '5.020' - class: Dist::Zilla::Plugin::FinderCode name: '@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM' version: '5.020' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: '0' version: '5.020' x_authority: cpan:KENTNL x_contributors: - 'Alexandr Ciornii ' MooseX-Has-Sugar-1.000004/perlcritic.rc0000644000175000017500000002257712373520301016123 0ustar kentkentcolor = 1 color-severity-low = green color-severity-medium = yellow only = 1 severity = 1 verbose = 9 [Bangs::ProhibitBitwiseOperators] [Bangs::ProhibitCommentedOutCode] [Bangs::ProhibitDebuggingModules] [-Bangs::ProhibitFlagComments] [Bangs::ProhibitNoPlan] [Bangs::ProhibitNumberedNames] [Bangs::ProhibitRefProtoOrProto] [Bangs::ProhibitUselessRegexModifiers] [Bangs::ProhibitVagueNames] [BuiltinFunctions::ProhibitBooleanGrep] [BuiltinFunctions::ProhibitComplexMappings] [BuiltinFunctions::ProhibitLvalueSubstr] [BuiltinFunctions::ProhibitReverseSortBlock] [BuiltinFunctions::ProhibitSleepViaSelect] [BuiltinFunctions::ProhibitStringyEval] allow_includes = 1 [BuiltinFunctions::ProhibitStringySplit] [BuiltinFunctions::ProhibitUniversalCan] [BuiltinFunctions::ProhibitUniversalIsa] [BuiltinFunctions::ProhibitVoidGrep] [BuiltinFunctions::ProhibitVoidMap] [BuiltinFunctions::RequireBlockGrep] [BuiltinFunctions::RequireBlockMap] [BuiltinFunctions::RequireGlobFunction] [BuiltinFunctions::RequireSimpleSortBlock] [ClassHierarchies::ProhibitAutoloading] [ClassHierarchies::ProhibitExplicitISA] [ClassHierarchies::ProhibitOneArgBless] [CodeLayout::ProhibitFatCommaNewline] [CodeLayout::ProhibitHardTabs] [-CodeLayout::ProhibitHashBarewords] [CodeLayout::ProhibitIfIfSameLine] [CodeLayout::ProhibitParensWithBuiltins] [CodeLayout::ProhibitQuotedWordLists] [CodeLayout::ProhibitTrailingWhitespace] [-CodeLayout::RequireASCII] [CodeLayout::RequireConsistentNewlines] [CodeLayout::RequireFinalSemicolon] [-CodeLayout::RequireTidyCode] [CodeLayout::RequireTrailingCommaAtNewline] [CodeLayout::RequireTrailingCommas] [-CodeLayout::RequireUseUTF8] [Compatibility::ConstantLeadingUnderscore] [Compatibility::ConstantPragmaHash] [Compatibility::Gtk2Constants] [Compatibility::PerlMinimumVersionAndWhy] [-Compatibility::PodMinimumVersion] [Compatibility::ProhibitThreeArgumentOpen] [Compatibility::ProhibitUnixDevNull] [ControlStructures::ProhibitCStyleForLoops] [ControlStructures::ProhibitCascadingIfElse] [ControlStructures::ProhibitDeepNests] [ControlStructures::ProhibitLabelsWithSpecialBlockNames] [ControlStructures::ProhibitMutatingListFunctions] [ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions] [-ControlStructures::ProhibitPostfixControls] [ControlStructures::ProhibitUnlessBlocks] [ControlStructures::ProhibitUnreachableCode] [ControlStructures::ProhibitUntilBlocks] [Documentation::PodSpelling] spell_command = aspell list --lang en_US [Documentation::ProhibitAdjacentLinks] [Documentation::ProhibitBadAproposMarkup] [Documentation::ProhibitDuplicateHeadings] [Documentation::ProhibitDuplicateSeeAlso] [Documentation::ProhibitLinkToSelf] [Documentation::ProhibitParagraphEndComma] [Documentation::ProhibitParagraphTwoDots] [Documentation::ProhibitUnbalancedParens] [Documentation::ProhibitVerbatimMarkup] [Documentation::RequireEndBeforeLastPod] [Documentation::RequireFinalCut] [Documentation::RequireLinkedURLs] [-Documentation::RequirePODUseEncodingUTF8] [Documentation::RequirePackageMatchesPodName] [Documentation::RequirePodAtEnd] [Documentation::RequirePodLinksIncludeText] [-Documentation::RequirePodSections] [-Editor::RequireEmacsFileVariables] [ErrorHandling::RequireCarping] [ErrorHandling::RequireCheckingReturnValueOfEval] [-ErrorHandling::RequireUseOfExceptions] [InputOutput::ProhibitBacktickOperators] [InputOutput::ProhibitBarewordFileHandles] [InputOutput::ProhibitExplicitStdin] [InputOutput::ProhibitInteractiveTest] [InputOutput::ProhibitJoinedReadline] [InputOutput::ProhibitOneArgSelect] [InputOutput::ProhibitReadlineInForLoop] [InputOutput::ProhibitTwoArgOpen] [InputOutput::RequireBracedFileHandleWithPrint] [InputOutput::RequireBriefOpen] [InputOutput::RequireCheckedClose] [InputOutput::RequireCheckedOpen] [InputOutput::RequireCheckedSyscalls] [InputOutput::RequireEncodingWithUTF8Layer] [Lax::ProhibitComplexMappings::LinesNotStatements] [Lax::ProhibitEmptyQuotes::ExceptAsFallback] [Lax::ProhibitLeadingZeros::ExceptChmod] [Lax::ProhibitStringyEval::ExceptForRequire] [Lax::RequireEndWithTrueConst] [Lax::RequireExplicitPackage::ExceptForPragmata] allowed_pragmata = diagnostics feature perlversion strict warnings utf8 [Miscellanea::ProhibitFormats] [Miscellanea::ProhibitTies] [Miscellanea::ProhibitUnrestrictedNoCritic] [-Miscellanea::ProhibitUselessNoCritic] [-Miscellanea::RequireRcsKeywords] [Miscellanea::TextDomainPlaceholders] [Miscellanea::TextDomainUnused] [Modules::PerlMinimumVersion] [Modules::ProhibitAutomaticExportation] [Modules::ProhibitConditionalUseStatements] [Modules::ProhibitEvilModules] [Modules::ProhibitExcessMainComplexity] [Modules::ProhibitModuleShebang] [Modules::ProhibitMultiplePackages] [Modules::ProhibitPOSIXimport] [Modules::ProhibitUseQuotedVersion] [Modules::RequireBarewordIncludes] [Modules::RequireEndWithOne] [-Modules::RequireExplicitInclusion] [-Modules::RequireExplicitPackage] [Modules::RequireFilenameMatchesPackage] [Modules::RequireNoMatchVarsWithUseEnglish] [Modules::RequirePerlVersion] [Modules::RequireVersionVar] [-Moose::ProhibitMultipleWiths] [Moose::ProhibitNewMethod] [Moose::RequireCleanNamespace] [Moose::RequireMakeImmutable] [-NamingConventions::Capitalization] [NamingConventions::ProhibitAmbiguousNames] [NamingConventions::ProhibitMixedCaseSubs] [NamingConventions::ProhibitMixedCaseVars] [Objects::ProhibitIndirectSyntax] [References::ProhibitDoubleSigils] [RegularExpressions::ProhibitCaptureWithoutTest] [RegularExpressions::ProhibitComplexRegexes] [RegularExpressions::ProhibitEnumeratedClasses] [RegularExpressions::ProhibitEscapedMetacharacters] [RegularExpressions::ProhibitFixedStringMatches] [RegularExpressions::ProhibitSingleCharAlternation] [RegularExpressions::ProhibitUnusedCapture] [RegularExpressions::ProhibitUnusualDelimiters] [RegularExpressions::RequireBracesForMultiline] [RegularExpressions::RequireDotMatchAnything] [RegularExpressions::RequireExtendedFormatting] [RegularExpressions::RequireLineBoundaryMatching] [Subroutines::ProhibitAmpersandSigils] [Subroutines::ProhibitBuiltinHomonyms] [Subroutines::ProhibitCallsToUndeclaredSubs] [Subroutines::ProhibitCallsToUnexportedSubs] [Subroutines::ProhibitExcessComplexity] [Subroutines::ProhibitExplicitReturnUndef] [Subroutines::ProhibitExportingUndeclaredSubs] [Subroutines::ProhibitManyArgs] [Subroutines::ProhibitNestedSubs] [Subroutines::ProhibitQualifiedSubDeclarations] [Subroutines::ProhibitReturnSort] [-Subroutines::ProhibitSubroutinePrototypes] [Subroutines::ProhibitUnusedPrivateSubroutines] private_name_regex = _(?!build_)\w [Subroutines::ProtectPrivateSubs] [-Subroutines::RequireArgUnpacking] [Subroutines::RequireFinalReturn] [TestingAndDebugging::ProhibitNoStrict] [TestingAndDebugging::ProhibitNoWarnings] [TestingAndDebugging::ProhibitProlongedStrictureOverride] [TestingAndDebugging::RequireTestLabels] [TestingAndDebugging::RequireUseStrict] equivalent_modules = Moose Moo [TestingAndDebugging::RequireUseWarnings] equivalent_modules = Moose Moo [Tics::ProhibitLongLines] base_max = 130 [Tics::ProhibitManyArrows] [Tics::ProhibitUseBase] [ValuesAndExpressions::ConstantBeforeLt] [ValuesAndExpressions::NotWithCompare] [ValuesAndExpressions::ProhibitArrayAssignAref] [ValuesAndExpressions::ProhibitBarewordDoubleColon] [ValuesAndExpressions::ProhibitCommaSeparatedStatements] [ValuesAndExpressions::ProhibitComplexVersion] [ValuesAndExpressions::ProhibitConstantPragma] [ValuesAndExpressions::ProhibitDuplicateHashKeys] [-ValuesAndExpressions::ProhibitEmptyCommas] [ValuesAndExpressions::ProhibitEmptyQuotes] [ValuesAndExpressions::ProhibitEscapedCharacters] [ValuesAndExpressions::ProhibitFiletest_f] [ValuesAndExpressions::ProhibitImplicitNewlines] [ValuesAndExpressions::ProhibitInterpolationOfLiterals] [ValuesAndExpressions::ProhibitLeadingZeros] [ValuesAndExpressions::ProhibitLongChainsOfMethodCalls] [-ValuesAndExpressions::ProhibitMagicNumbers] [ValuesAndExpressions::ProhibitMismatchedOperators] [ValuesAndExpressions::ProhibitMixedBooleanOperators] [ValuesAndExpressions::ProhibitNoisyQuotes] [ValuesAndExpressions::ProhibitNullStatements] [ValuesAndExpressions::ProhibitQuotesAsQuotelikeOperatorDelimiters] [ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator] [ValuesAndExpressions::ProhibitUnknownBackslash] [ValuesAndExpressions::ProhibitVersionStrings] [ValuesAndExpressions::RequireConstantOnLeftSideOfEquality] [ValuesAndExpressions::RequireConstantVersion] [ValuesAndExpressions::RequireInterpolationOfMetachars] [ValuesAndExpressions::RequireNumberSeparators] [ValuesAndExpressions::RequireNumericVersion] [ValuesAndExpressions::RequireQuotedHeredocTerminator] [ValuesAndExpressions::RequireUpperCaseHeredocTerminator] [ValuesAndExpressions::RestrictLongStrings] [ValuesAndExpressions::UnexpandedSpecialLiteral] [Variables::ProhibitAugmentedAssignmentInDeclaration] [Variables::ProhibitConditionalDeclarations] [Variables::ProhibitEvilVariables] [Variables::ProhibitLocalVars] [Variables::ProhibitMatchVars] [Variables::ProhibitPackageVars] [Variables::ProhibitPerl4PackageNames] [-Variables::ProhibitPunctuationVars] [Variables::ProhibitReusedNames] [Variables::ProhibitUnusedVariables] [Variables::ProhibitUnusedVarsStricter] [Variables::ProtectPrivateVars] [Variables::RequireInitializationForLocalVars] [Variables::RequireLexicalLoopIterators] [Variables::RequireLocalizedPunctuationVars] [Variables::RequireNegativeIndices] MooseX-Has-Sugar-1.000004/benchmark/0000755000175000017500000000000012373520301015352 5ustar kentkentMooseX-Has-Sugar-1.000004/benchmark/cmp_ops.sh0000644000175000017500000000102112373520301017340 0ustar kentkent## # cmp_ops.sh $PERL $CODEA $CODEB # cmp_ops.sh 5.10.1 'sub baz { code here }' 'sub baz { slightly different code here }' # # where 5.10.1 would respond to 'perlbrew use 5.10.1' # and $CODEA and $CODEB both have a sub 'baz' in them. # # eg: bash benchmark/cmp_ops.sh 5.10.1 'sub baz { return q[a] }' 'sub baz { q[a] }' # perlbrew_ver=$1 shift diff -Naur <( perlbrew exec --with=${perlbrew_ver} perl -MO=-qq,Concise,-exec,baz -e "$1" ) <( perlbrew exec --with=${perlbrew_ver} perl -MO=-qq,Concise,-exec,baz -e "$2" ) MooseX-Has-Sugar-1.000004/benchmark/bench_return.pl0000644000175000017500000000356312373520301020374 0ustar kentkent#!/usr/bin/env perl # FILENAME: bench_return.pl # CREATED: 06/26/14 07:41:05 by Kent Fredric (kentnl) # ABSTRACT: Benchmark difference of return styles use strict; use warnings; use utf8; sub constant_return() { return ( 'is', 'ro' ); } sub constant_bare() { ( 'is', 'ro' ); } use Benchmark qw( :all :hireswallclock ); cmpthese( -2, { return => sub { my @x; @x = constant_return for 0 .. 100; }, bare => sub { my @x; @x = constant_bare for 0 .. 100; }, return2 => sub { my @x; @x = constant_return for 0 .. 100; }, bare2 => sub { my @x; @x = constant_bare for 0 .. 100; }, } ); __END__ 5.21.1 config_args='-de -Dusecbacktrace -Doptimize=-O3 -march=native -mtune=native -g -ggdb3 -Dusedevel -Accflags=-DUSE_C_BACKTRACE_ON_ERROR -Aldflags=-lbfd Rate bare bare2 return2 return bare2 16364/s -- -1% -6% -6% bare 16527/s 1% -- -5% -5% return2 17436/s 7% 6% -- -0% return 17436/s 7% 6% 0% -- 5.10.1 config_args='-de' Rate bare bare2 return2 return bare 12155/s -- -0% -1% -1% bare2 12190/s 0% -- -1% -1% return2 12272/s 1% 1% -- -0% return 12272/s 1% 1% 0% -- 5.18.0 config_args='-de' Rate bare bare2 return return2 bare2 12597/s -- -1% -4% -4% bare 12664/s 1% -- -4% -4% return2 13149/s 4% 4% -- -0% return 13149/s 4% 4% 0% -- 5.12.5 config_args='-de' Rate bare bare2 return2 return bare 10803/s -- -3% -7% -7% bare2 11112/s 3% -- -4% -4% return 11555/s 7% 4% -- -0% return2 11600/s 7% 4% 0% -- MooseX-Has-Sugar-1.000004/dist.ini0000644000175000017500000001337012373520301015070 0ustar kentkent; This file is generated from dist.ini.meta by dzil bakeini. ; Edit that file or the bundles contained within for long-term changes. name = MooseX-Has-Sugar author = Kent Fredric license = Perl_5 copyright_holder = Kent Fredric [MetaConfig / @Author::KENTNL/MetaConfig] [GithubMeta / @Author::KENTNL/GithubMeta] issues = 1 [MetaProvides::Package / @Author::KENTNL/MetaProvides::Package] :version = 1.14000001 [MetaData::BuiltWith / @Author::KENTNL/MetaData::BuiltWith] show_config = 1 show_uname = 1 uname_args = -s -o -r -m -i [Git::Contributors / @Author::KENTNL/Git::Contributors] :version = 0.006 include_authors = 0 include_releaser = 0 order_by = name [Git::GatherDir / @Author::KENTNL/Git::GatherDir] exclude_filename = README exclude_filename = README.mkdn exclude_filename = README.pod exclude_filename = LICENSE include_dotfiles = 1 [License / @Author::KENTNL/License] [MetaJSON / @Author::KENTNL/MetaJSON] [MetaYAML / @Author::KENTNL/MetaYAML] [Manifest / @Author::KENTNL/Manifest] [CopyFilesFromBuild / @Author::KENTNL/CopyXBuild] copy = LICENSE [MetaTests / @Author::KENTNL/MetaTests] [PodCoverageTests / @Author::KENTNL/PodCoverageTests] [PodSyntaxTests / @Author::KENTNL/PodSyntaxTests] [Test::ReportPrereqs / @Author::KENTNL/Test::ReportPrereqs] [Test::Kwalitee / @Author::KENTNL/Test::Kwalitee] [EOLTests / @Author::KENTNL/EOLTests] trailing_whitespace = 1 [Test::MinimumVersion / @Author::KENTNL/Test::MinimumVersion] [Test::Compile::PerFile / @Author::KENTNL/Test::Compile::PerFile] [Test::Perl::Critic / @Author::KENTNL/Test::Perl::Critic] [ManifestSkip / @Author::KENTNL/ManifestSkip] [RewriteVersion::Sanitized / @Author::KENTNL/RewriteVersion::Sanitized] mantissa = 6 normal_form = numify [PodWeaver / @Author::KENTNL/PodWeaver] replacer = replace_with_blank [AutoPrereqs / @Author::KENTNL/AutoPrereqs] skips = MooseX::Types::Moose skips = Moose [Prereqs / @Author::KENTNL/BundleDevelSuggests] -phase = develop -type = suggests Dist::Zilla::App::Command::bakeini = 0.001000 Dist::Zilla::PluginBundle::Author::KENTNL = 2.017002 [MinimumPerl / @Author::KENTNL/MinimumPerl] [Authority / @Author::KENTNL/Authority] :version = 1.006 authority = cpan:KENTNL do_metadata = 1 locate_comment = 1 [MakeMaker / @Author::KENTNL/MakeMaker] default_jobs = 10 [ReadmeFromPod / @Author::KENTNL/ReadmeFromPod] [ReadmeAnyFromPod / @Author::KENTNL/ReadmeAnyFromPod] filename = README.mkdn location = root type = markdown [Test::CPAN::Changes / @Author::KENTNL/Test::CPAN::Changes] [RunExtraTests / @Author::KENTNL/RunExtraTests] default_jobs = 10 [TestRelease / @Author::KENTNL/TestRelease] [ConfirmRelease / @Author::KENTNL/ConfirmRelease] [Git::Check / @Author::KENTNL/Git::Check] filename = Changes [Git::Commit / @Author::KENTNL/commit_dirty_files] [Git::Tag / @Author::KENTNL/tag_master] tag_format = %v-source [Git::NextRelease / @Author::KENTNL/Git::NextRelease] format = %v %{yyyy-MM-dd'T'HH:mm:ss}dZ time_zone = UTC [BumpVersionAfterRelease / @Author::KENTNL/BumpVersionAfterRelease] [Git::Commit / @Author::KENTNL/commit_release_changes] allow_dirty_match = ^lib/ [Git::CommitBuild / @Author::KENTNL/Git::CommitBuild] release_branch = releases [Git::Tag / @Author::KENTNL/tag_release] branch = releases tag_format = %v [UploadToCPAN / @Author::KENTNL/UploadToCPAN] [Twitter / @Author::KENTNL/Twitter] hash_tags = #perl #cpan tweet_url = https://metacpan.org/release/{{$AUTHOR_UC}}/{{$DIST}}-{{$VERSION}}{{$TRIAL}}#whatsnew url_shortener = none [Prereqs::Recommend::MatchInstalled / @Author::KENTNL/Prereqs::Recommend::MatchInstalled] modules = ExtUtils::MakeMaker modules = Test::More [Prereqs::Recommend::MatchInstalled / @Author::KENTNL/always_latest_develop_bundle] applyto_map = develop.suggests = develop.suggests applyto_phase = develop modules = Dist::Zilla::PluginBundle::Author::KENTNL modules = Dist::Zilla::App::Command::bakeini [Prereqs / @Author::KENTNL/::Role::BundleDeps] -phase = develop -relationship = requires Dist::Zilla::Plugin::Authority = 1.006 Dist::Zilla::Plugin::AutoPrereqs = 0 Dist::Zilla::Plugin::BumpVersionAfterRelease = 0 Dist::Zilla::Plugin::ConfirmRelease = 0 Dist::Zilla::Plugin::CopyFilesFromBuild = 0 Dist::Zilla::Plugin::EOLTests = 0 Dist::Zilla::Plugin::Git::Check = 0 Dist::Zilla::Plugin::Git::Commit = 0 Dist::Zilla::Plugin::Git::CommitBuild = 0 Dist::Zilla::Plugin::Git::Contributors = 0.006 Dist::Zilla::Plugin::Git::GatherDir = 0 Dist::Zilla::Plugin::Git::NextRelease = 0 Dist::Zilla::Plugin::Git::Tag = 0 Dist::Zilla::Plugin::GithubMeta = 0 Dist::Zilla::Plugin::License = 0 Dist::Zilla::Plugin::MakeMaker = 0 Dist::Zilla::Plugin::Manifest = 0 Dist::Zilla::Plugin::ManifestSkip = 0 Dist::Zilla::Plugin::MetaConfig = 0 Dist::Zilla::Plugin::MetaData::BuiltWith = 0 Dist::Zilla::Plugin::MetaJSON = 0 Dist::Zilla::Plugin::MetaProvides::Package = 1.14000001 Dist::Zilla::Plugin::MetaTests = 0 Dist::Zilla::Plugin::MetaYAML = 0 Dist::Zilla::Plugin::MinimumPerl = 0 Dist::Zilla::Plugin::PodCoverageTests = 0 Dist::Zilla::Plugin::PodSyntaxTests = 0 Dist::Zilla::Plugin::PodWeaver = 0 Dist::Zilla::Plugin::Prereqs = 0 Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled = 0 Dist::Zilla::Plugin::ReadmeAnyFromPod = 0 Dist::Zilla::Plugin::ReadmeFromPod = 0 Dist::Zilla::Plugin::RewriteVersion::Sanitized = 0 Dist::Zilla::Plugin::RunExtraTests = 0 Dist::Zilla::Plugin::Test::CPAN::Changes = 0 Dist::Zilla::Plugin::Test::Compile::PerFile = 0 Dist::Zilla::Plugin::Test::Kwalitee = 0 Dist::Zilla::Plugin::Test::MinimumVersion = 0 Dist::Zilla::Plugin::Test::Perl::Critic = 0 Dist::Zilla::Plugin::Test::ReportPrereqs = 0 Dist::Zilla::Plugin::TestRelease = 0 Dist::Zilla::Plugin::Twitter = 0 Dist::Zilla::Plugin::UploadToCPAN = 0 [Prereqs / TestRecommends] MooseX::Types::Moose = 0 Moose = 0 [Prereqs / DevelopRequires] MooseX::Types::Moose = 0 Moose = 0 [Prereqs] MooseX-Has-Sugar-1.000004/.perltidyrc0000644000175000017500000000001412373520301015575 0ustar kentkent-i 2 -l 130 MooseX-Has-Sugar-1.000004/META.json0000644000175000017500000007375112373520301015056 0ustar kentkent{ "abstract" : "Sugar Syntax for moose 'has' fields", "author" : [ "Kent Fredric " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "MooseX-Has-Sugar", "prereqs" : { "configure" : { "recommends" : { "ExtUtils::MakeMaker" : "6.98" }, "requires" : { "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { "Dist::Zilla::Plugin::Authority" : "1.006", "Dist::Zilla::Plugin::AutoPrereqs" : "0", "Dist::Zilla::Plugin::BumpVersionAfterRelease" : "0", "Dist::Zilla::Plugin::ConfirmRelease" : "0", "Dist::Zilla::Plugin::CopyFilesFromBuild" : "0", "Dist::Zilla::Plugin::EOLTests" : "0", "Dist::Zilla::Plugin::Git::Check" : "0", "Dist::Zilla::Plugin::Git::Commit" : "0", "Dist::Zilla::Plugin::Git::CommitBuild" : "0", "Dist::Zilla::Plugin::Git::Contributors" : "0.006", "Dist::Zilla::Plugin::Git::GatherDir" : "0", "Dist::Zilla::Plugin::Git::NextRelease" : "0", "Dist::Zilla::Plugin::Git::Tag" : "0", "Dist::Zilla::Plugin::GithubMeta" : "0", "Dist::Zilla::Plugin::License" : "0", "Dist::Zilla::Plugin::MakeMaker" : "0", "Dist::Zilla::Plugin::Manifest" : "0", "Dist::Zilla::Plugin::ManifestSkip" : "0", "Dist::Zilla::Plugin::MetaConfig" : "0", "Dist::Zilla::Plugin::MetaData::BuiltWith" : "0", "Dist::Zilla::Plugin::MetaJSON" : "0", "Dist::Zilla::Plugin::MetaProvides::Package" : "1.14000001", "Dist::Zilla::Plugin::MetaTests" : "0", "Dist::Zilla::Plugin::MetaYAML" : "0", "Dist::Zilla::Plugin::MinimumPerl" : "0", "Dist::Zilla::Plugin::PodCoverageTests" : "0", "Dist::Zilla::Plugin::PodSyntaxTests" : "0", "Dist::Zilla::Plugin::PodWeaver" : "0", "Dist::Zilla::Plugin::Prereqs" : "0", "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0", "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0", "Dist::Zilla::Plugin::ReadmeFromPod" : "0", "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0", "Dist::Zilla::Plugin::RunExtraTests" : "0", "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0", "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0", "Dist::Zilla::Plugin::Test::Kwalitee" : "0", "Dist::Zilla::Plugin::Test::MinimumVersion" : "0", "Dist::Zilla::Plugin::Test::Perl::Critic" : "0", "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0", "Dist::Zilla::Plugin::TestRelease" : "0", "Dist::Zilla::Plugin::Twitter" : "0", "Dist::Zilla::Plugin::UploadToCPAN" : "0", "Moose" : "0", "MooseX::Types::Moose" : "0", "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", "Test::Kwalitee" : "1.12", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08" }, "suggests" : { "Dist::Zilla::App::Command::bakeini" : "0.001001", "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.017002" } }, "runtime" : { "requires" : { "Carp" : "0", "Sub::Exporter::Progressive" : "0", "perl" : "5.006", "strict" : "0", "warnings" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900", "ExtUtils::MakeMaker" : "6.98", "Moose" : "0", "MooseX::Types::Moose" : "0", "Test::More" : "1.001003" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "Test::Fatal" : "0", "Test::More" : "0.89", "lib" : "0", "namespace::clean" : "0" } } }, "provides" : { "MooseX::Has::Sugar" : { "file" : "lib/MooseX/Has/Sugar.pm", "version" : "1.000004" }, "MooseX::Has::Sugar::Minimal" : { "file" : "lib/MooseX/Has/Sugar/Minimal.pm", "version" : "1.000004" }, "MooseX::Has::Sugar::Saccharin" : { "file" : "lib/MooseX/Has/Sugar/Saccharin.pm", "version" : "1.000004" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/kentnl/MooseX-Has-Sugar/issues" }, "homepage" : "https://github.com/kentnl/MooseX-Has-Sugar", "repository" : { "type" : "git", "url" : "https://github.com/kentnl/MooseX-Has-Sugar.git", "web" : "https://github.com/kentnl/MooseX-Has-Sugar" } }, "version" : "1.000004", "x_BuiltWith" : { "modules" : { "CPAN::Meta" : "2.142060", "Carp" : "1.34", "Dist::Zilla::App::Command::bakeini" : "0.001001", "Dist::Zilla::Plugin::Authority" : "1.006", "Dist::Zilla::Plugin::AutoPrereqs" : "5.020", "Dist::Zilla::Plugin::BumpVersionAfterRelease" : "0.002", "Dist::Zilla::Plugin::ConfirmRelease" : "5.020", "Dist::Zilla::Plugin::CopyFilesFromBuild" : "0.103510", "Dist::Zilla::Plugin::EOLTests" : "0.02", "Dist::Zilla::Plugin::Git::Check" : "2.023", "Dist::Zilla::Plugin::Git::Commit" : "2.023", "Dist::Zilla::Plugin::Git::CommitBuild" : "2.023", "Dist::Zilla::Plugin::Git::Contributors" : "0.006", "Dist::Zilla::Plugin::Git::GatherDir" : "2.023", "Dist::Zilla::Plugin::Git::NextRelease" : "0.002011", "Dist::Zilla::Plugin::Git::Tag" : "2.023", "Dist::Zilla::Plugin::GithubMeta" : "0.46", "Dist::Zilla::Plugin::License" : "5.020", "Dist::Zilla::Plugin::MakeMaker" : "5.020", "Dist::Zilla::Plugin::Manifest" : "5.020", "Dist::Zilla::Plugin::ManifestSkip" : "5.020", "Dist::Zilla::Plugin::MetaConfig" : "5.020", "Dist::Zilla::Plugin::MetaData::BuiltWith" : "1.001000", "Dist::Zilla::Plugin::MetaJSON" : "5.020", "Dist::Zilla::Plugin::MetaProvides::Package" : "2.000003", "Dist::Zilla::Plugin::MetaTests" : "5.020", "Dist::Zilla::Plugin::MetaYAML" : "5.020", "Dist::Zilla::Plugin::MinimumPerl" : "1.003", "Dist::Zilla::Plugin::PodCoverageTests" : "5.020", "Dist::Zilla::Plugin::PodSyntaxTests" : "5.020", "Dist::Zilla::Plugin::PodWeaver" : "4.005", "Dist::Zilla::Plugin::Prereqs" : "5.020", "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : "0.002000", "Dist::Zilla::Plugin::ReadmeAnyFromPod" : "0.142250", "Dist::Zilla::Plugin::ReadmeFromPod" : "0.21", "Dist::Zilla::Plugin::RewriteVersion::Sanitized" : "0.001002", "Dist::Zilla::Plugin::RunExtraTests" : "0.022", "Dist::Zilla::Plugin::Test::CPAN::Changes" : "0.008", "Dist::Zilla::Plugin::Test::Compile::PerFile" : "0.002001", "Dist::Zilla::Plugin::Test::Kwalitee" : "2.07", "Dist::Zilla::Plugin::Test::MinimumVersion" : "2.000005", "Dist::Zilla::Plugin::Test::Perl::Critic" : "2.112410", "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0.019", "Dist::Zilla::Plugin::TestRelease" : "5.020", "Dist::Zilla::Plugin::Twitter" : "0.025", "Dist::Zilla::Plugin::UploadToCPAN" : "5.020", "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.017002", "ExtUtils::MakeMaker" : "6.98", "File::Spec" : "3.48", "Moose" : "2.1211", "MooseX::Types::Moose" : "0.44", "Pod::Coverage::TrustPod" : "0.100003", "Sub::Exporter::Progressive" : "0.001011", "Test::CPAN::Changes" : "0.30", "Test::CPAN::Meta" : "0.23", "Test::Fatal" : "0.013", "Test::Kwalitee" : "1.19", "Test::More" : "1.001003", "Test::Pod" : "1.48", "Test::Pod::Coverage" : "1.10", "lib" : "0.63", "namespace::clean" : "0.25", "strict" : "1.08", "warnings" : "1.24" }, "perl" : { "original" : "v5.21.1", "qv" : 1, "version" : [ 5, 21, 1 ] }, "perl-config" : { "gccversion" : "4.8.3", "myarchname" : "x86_64-linux", "osname" : "linux" }, "platform" : "linux", "uname" : "Linux 3.15.5-aufs x86_64 GenuineIntel GNU/Linux" }, "x_Dist_Zilla" : { "perl" : { "version" : "5.021001" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@Author::KENTNL/MetaConfig", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@Author::KENTNL/GithubMeta", "version" : "0.46" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { "Dist::Zilla::Plugin::MetaProvides::Package" : { "finder_objects" : [ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "5.020" } ] }, "Dist::Zilla::Role::MetaProvider::Provider" : { "inherit_missing" : "1", "inherit_version" : "1", "meta_noindex" : "1" } }, "name" : "@Author::KENTNL/MetaProvides::Package", "version" : "2.000003" }, { "class" : "Dist::Zilla::Plugin::MetaData::BuiltWith", "config" : { "Dist::Zilla::Plugin::MetaData::BuiltWith" : { "_stash_key" : "x_BuiltWith", "show_config" : "1", "show_uname" : "1", "uname" : { "uname_args" : [ "-s", "-o", "-r", "-m", "-i" ], "uname_call" : "uname" } } }, "name" : "@Author::KENTNL/MetaData::BuiltWith", "version" : "1.001000" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { "include_authors" : "0", "include_releaser" : "0", "order_by" : "name" } }, "name" : "@Author::KENTNL/Git::Contributors", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::Git::GatherDir" : { "include_untracked" : "0" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::KENTNL/Git::GatherDir", "version" : "2.023" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@Author::KENTNL/License", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@Author::KENTNL/MetaJSON", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@Author::KENTNL/MetaYAML", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@Author::KENTNL/Manifest", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", "name" : "@Author::KENTNL/CopyXBuild", "version" : "0.103510" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "@Author::KENTNL/MetaTests", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::PodCoverageTests", "name" : "@Author::KENTNL/PodCoverageTests", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@Author::KENTNL/PodSyntaxTests", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@Author::KENTNL/Test::ReportPrereqs", "version" : "0.019" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", "name" : "@Author::KENTNL/Test::Kwalitee", "version" : "2.07" }, { "class" : "Dist::Zilla::Plugin::EOLTests", "name" : "@Author::KENTNL/EOLTests", "version" : "0.02" }, { "class" : "Dist::Zilla::Plugin::Test::MinimumVersion", "name" : "@Author::KENTNL/Test::MinimumVersion", "version" : "2.000005" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/Test::Compile::PerFile/AUTOVIV/:InstallModulesPM", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Test::Compile::PerFile", "config" : { "Dist::Zilla::Plugin::Test::Compile::PerFile" : { "file" : [ "lib/MooseX/Has/Sugar.pm", "lib/MooseX/Has/Sugar/Minimal.pm", "lib/MooseX/Has/Sugar/Saccharin.pm" ], "path_translator" : "base64_filter", "prefix" : "t/00-compile", "skip" : [], "test_template" : "01-basic.t.tpl", "xt_mode" : null } }, "name" : "@Author::KENTNL/Test::Compile::PerFile", "version" : "0.002001" }, { "class" : "Dist::Zilla::Plugin::Test::Perl::Critic", "name" : "@Author::KENTNL/Test::Perl::Critic", "version" : "2.112410" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@Author::KENTNL/ManifestSkip", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::RewriteVersion::Sanitized", "config" : { "Dist::Zilla::Role::Version::Sanitize" : { "mantissa" : "6", "normal_form" : "numify" } }, "name" : "@Author::KENTNL/RewriteVersion::Sanitized", "version" : "0.001002" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", "config" : { "Dist::Zilla::Plugin::PodWeaver" : { "finder" : [ ":InstallModules", ":ExecFiles" ], "plugins" : [ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", "version" : "4.006" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", "version" : "4.006" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "-SingleEncoding", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Name", "name" : "Name", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Version", "name" : "Version", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Region", "name" : "prelude", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "SYNOPSIS", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "EXPORTGROUPS", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "EXPORTFUNCTIONS", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "Leftovers", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Region", "name" : "postlude", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "Authors", "version" : "4.006" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "Legal", "version" : "4.006" } ] } }, "name" : "@Author::KENTNL/PodWeaver", "version" : "4.005" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@Author::KENTNL/AutoPrereqs", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "suggests" } }, "name" : "@Author::KENTNL/BundleDevelSuggests", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::MinimumPerl", "name" : "@Author::KENTNL/MinimumPerl", "version" : "1.003" }, { "class" : "Dist::Zilla::Plugin::Authority", "name" : "@Author::KENTNL/Authority", "version" : "1.006" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : "10" } }, "name" : "@Author::KENTNL/MakeMaker", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::ReadmeFromPod", "name" : "@Author::KENTNL/ReadmeFromPod", "version" : "0.21" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "name" : "@Author::KENTNL/ReadmeAnyFromPod", "version" : "0.142250" }, { "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes", "name" : "@Author::KENTNL/Test::CPAN::Changes", "version" : "0.008" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : "10" } }, "name" : "@Author::KENTNL/RunExtraTests", "version" : "0.022" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@Author::KENTNL/TestRelease", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@Author::KENTNL/ConfirmRelease", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "dist.ini", "Changes" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::KENTNL/Git::Check", "version" : "2.023" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "v%v%n%n%c", "time_zone" : "local" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "dist.ini", "Changes" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::KENTNL/commit_dirty_files", "version" : "2.023" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "signed" : 0, "tag" : "1.000004-source", "tag_format" : "%v-source", "tag_message" : "v%v", "time_zone" : "local" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::KENTNL/tag_master", "version" : "2.023" }, { "class" : "Dist::Zilla::Plugin::Git::NextRelease", "name" : "@Author::KENTNL/Git::NextRelease", "version" : "0.002011" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease", "name" : "@Author::KENTNL/BumpVersionAfterRelease", "version" : "0.002" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "v%v%n%n%c", "time_zone" : "local" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "dist.ini", "Changes" ], "allow_dirty_match" : [ "(?^u:^lib/)" ], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::KENTNL/commit_release_changes", "version" : "2.023" }, { "class" : "Dist::Zilla::Plugin::Git::CommitBuild", "config" : { "Dist::Zilla::Plugin::Git::CommitBuild" : { "branch" : "build/%b", "build_root" : null, "message" : "Build results of %h (on %b)", "multiple_inheritance" : 0, "release_branch" : "releases", "release_message" : "Build results of %h (on %b)" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::KENTNL/Git::CommitBuild", "version" : "2.023" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : "releases", "signed" : 0, "tag" : "1.000004", "tag_format" : "%v", "tag_message" : "v%v", "time_zone" : "local" }, "Dist::Zilla::Role::Git::Repo" : { "repo_root" : "." } }, "name" : "@Author::KENTNL/tag_release", "version" : "2.023" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@Author::KENTNL/UploadToCPAN", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Twitter", "name" : "@Author::KENTNL/Twitter", "version" : "0.025" }, { "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", "config" : { "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : { "applyto_map" : [ "build.requires = build.recommends", "test.requires = test.recommends", "runtime.requires = runtime.recommends", "configure.requires = configure.recommends", "develop.requires = develop.recommends" ], "applyto_phase" : [ "build", "test", "runtime", "configure", "develop" ], "modules" : [ "ExtUtils::MakeMaker", "Test::More" ] } }, "name" : "@Author::KENTNL/Prereqs::Recommend::MatchInstalled", "version" : "0.002000" }, { "class" : "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled", "config" : { "Dist::Zilla::Plugin::Prereqs::Recommend::MatchInstalled" : { "applyto_map" : [ "develop.suggests = develop.suggests" ], "applyto_phase" : [ "develop" ], "modules" : [ "Dist::Zilla::PluginBundle::Author::KENTNL", "Dist::Zilla::App::Command::bakeini" ] } }, "name" : "@Author::KENTNL/always_latest_develop_bundle", "version" : "0.002000" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "requires" } }, "name" : "@Author::KENTNL/::Role::BundleDeps", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "test", "type" : "recommends" } }, "name" : "TestRecommends", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "requires" } }, "name" : "DevelopRequires", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "runtime", "type" : "requires" } }, "name" : "Prereqs", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", "version" : "5.020" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "@Author::KENTNL/MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "5.020" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : "0" }, "version" : "5.020" } }, "x_authority" : "cpan:KENTNL", "x_contributors" : [ "Alexandr Ciornii " ] } MooseX-Has-Sugar-1.000004/weaver.ini0000644000175000017500000000045612373520301015417 0ustar kentkent[@CorePrep] [-SingleEncoding] [Name] [Version] [Region / prelude] [Generic / SYNOPSIS] [Collect / EXPORTGROUPS] header = EXPORT GROUPS command = export_group [Collect / EXPORTFUNCTIONS] header = EXPORTED FUNCTIONS command = export_function [Leftovers] [Region / postlude] [Authors] [Legal] MooseX-Has-Sugar-1.000004/MANIFEST0000644000175000017500000000250012373520301014546 0ustar kentkent# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.020. .gitignore .perltidyrc .travis.yml Changes LICENSE MANIFEST META.json META.yml Makefile.PL README benchmark/bench_return.pl benchmark/cmp_ops.sh dist.ini dist.ini.meta lib/MooseX/Has/Sugar.pm lib/MooseX/Has/Sugar/Minimal.pm lib/MooseX/Has/Sugar/Saccharin.pm maint/perlcritic.rc.gen.pl misc/Changes.deps misc/Changes.deps.all misc/Changes.deps.dev misc/Changes.deps.opt misc/perlcritic.deps perlcritic.rc t/00-compile/lib_MooseX_Has_Sugar_Minimal_pm.t t/00-compile/lib_MooseX_Has_Sugar_Saccharin_pm.t t/00-compile/lib_MooseX_Has_Sugar_pm.t t/00-report-prereqs.dd t/00-report-prereqs.t t/04_values.t t/05_is.t t/06_attr_required.t t/07_attr_lazy_build.t t/08_saccharin.t t/09_saccharin.t t/10_saccharin.t t/lib/T10Saccharin/TestPackage.pm t/lib/T4Values/AMinimal.pm t/lib/T4Values/BDeclare.pm t/lib/T4Values/CDeclareRo.pm t/lib/T4Values/DEverything.pm t/lib/T4Values/EMixed.pm t/lib/T4Values/TestCant.pm t/lib/T5Is/TestPackage.pm t/lib/T6AttrRequired/TestPackage.pm t/lib/T7AttrLazyBuild/TestPackage.pm t/lib/T8Saccharin/TestPackage.pm t/lib/T9Saccharin/TestPackage.pm weaver.ini xt/author/critic.t xt/release/cpan-changes.t xt/release/distmeta.t xt/release/eol.t xt/release/kwalitee.t xt/release/minimum-version.t xt/release/pod-coverage.t xt/release/pod-syntax.t