Git-Repository-Plugin-Log-1.313/0000755000175000017500000000000012651526407015052 5ustar bookbookGit-Repository-Plugin-Log-1.313/Changes0000644000175000017500000000432412651526407016350 0ustar bookbookRevision history for Git-Repository-Plugin-Log Git::Repository::Plugin::Log and support modules used to be packaged in the Git-Repository distribution from version 1.13 (which introduced capability to write plugins) to 1.308. For earlier history, please consult the changelog for that distribution. 1.313 Tue Jan 26 2016 [ENHANCEMENTS] - Add some more unsupported options to Git::Repository::Log::Iterator constructor's blacklist (BJAKUBSKI, via the January 2016 CPAN PRC) - Parse 'from' field in the commit line, and add it as the 'diff_from' attribute to Git::Repository::Log (VYF) - Minor documentation improvements [TESTS] - Prevent system/global configs from messing with test expectations - Add [Prereqs / TestRequires] section to dist.ini (PSCUST, via the October 2015 CPAN PRC) - Use Test::ReportPrereqs instead of ReportVersions::Tiny [ACKNOWLEDGEMENT] - Thanks to NEILB for organizing the CPAN Pull Request Contest, which brought several contributions to this release. Check out http://cpan-prc.org/ and join the fun! 1.312 Wed Jul 23 2014 [ENHANCEMENTS] - new Git::Repository::Log::Iterator constructors new_from_fh() and new_from_file() to enable dealing with log stream directly - the new 'fh' attribute to Git::Repository::Log::Iterator provides direct access to the filehandle if needed (see RT #97045) [TESTS] - update the test bundle 1.311 Fri Apr 25 2014 [TESTS] - output the git version, to help debug FAIL reports - change the test bundle to use "SJIS" instead of "shift-jis" encoding [DOCUMENTATION] - simplify the titles when documenting methods and functions 1.310 Tue Nov 5 2013 [ENHANCEMENTS] - Git::Repository::Log now properly handles commits where the author or committer name is empty 1.309 Sun Nov 3 2013 [ENHANCEMENTS] - the mergetag key is now an array reference, to support commits with multiple mergetag headers [TESTS] - tested using a bundle containing several very special cases (see http://github.com/book/git-test-repo-tool/) [PACKAGING] - split into its own distribution as of Git-Repository 1.309 (and Git-Repository-Plugin-Log 1.309) Git-Repository-Plugin-Log-1.313/LICENSE0000644000175000017500000004371312651526407016067 0ustar bookbookThis software is copyright (c) 2016 by Philippe Bruhat (BooK). 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) 2016 by Philippe Bruhat (BooK). 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) 2016 by Philippe Bruhat (BooK). 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 Git-Repository-Plugin-Log-1.313/t/0000755000175000017500000000000012651526407015315 5ustar bookbookGit-Repository-Plugin-Log-1.313/t/41-multiline-log.t0000644000175000017500000000465612651526407020520 0ustar bookbookuse strict; use warnings; use Test::More; use File::Spec; use Cwd qw( cwd ); use Test::Git; use Git::Repository 'Log'; has_git('1.5.1'); my $num_tests; # test data { our %commit; do File::Spec->catfile( 't', 'bundle.pl' ); sub check_commit { my ($log) = @_; my $id = $log->commit; return if !exists $commit{$id}; my $commit = $commit{$id}; is( $log->tree, $commit->{tree}, "commit $id tree" ); is_deeply( [ $log->parent ], $commit->{parent}, "commit $id parent" ); is( $log->author, $commit->{author}, "commit $id author" ); is( $log->committer, $commit->{committer}, "commit $id committer" ); is( $log->subject, $commit->{subject}, "commit $id subject" ); is( $log->body, $commit->{body}, "commit $id body" ); is( $log->extra, $commit->{extra}, "commit $id extra" ); is( $log->gpgsig, $commit->{gpgsig}, "commit $id gpgsig" ); is_deeply( [ $log->mergetag ], $commit->{mergetag} || [], "commit $id mergetag" ); } $num_tests = 9 * scalar keys %commit; } # setup the environment my %env = ( # ensure local configs won't interfere GIT_CONFIG_NOSYSTEM => 1, XDG_CONFIG_HOME => undef, HOME => undef, # git log will output utf-8 LC_ALL => 'C', ); # first create a new empty repository my $r = test_repository( git => { env => \%env } ); # now load the bundle my @refs = $r->run( bundle => 'unbundle', File::Spec->catfile( cwd(), qw( t test.bundle ) ) ); # and update the refs for my $line (@refs) { my ( $sha1, $ref ) = split / /, $line; $r->run( 'update-ref', $ref => $sha1 ); } # test! my @merges; my $iter = $r->log('--all'); while ( my $log = $iter->next ) { check_commit($log); # record merge commits for the diff_from test if ( $log->parent > 1 ) { push @merges, [ $log->commit, $log->parent ]; } } # test diff_from for my $merge ( @merges ) { # weed out empty diffs my $commit = shift @$merge; $merge = [ grep $r->run( diff => $commit, $_ ) ne '', @$merge ]; # update test total $num_tests += @$merge; # only test the commits with a defined diff_from $iter = $r->log( qw( -m --name-status -1 ), $commit ); while ( my $log = $iter->next ) { is( $log->diff_from, shift @$merge, "$commit diff_from" ); } } done_testing($num_tests); Git-Repository-Plugin-Log-1.313/t/author-pod-coverage.t0000644000175000017500000000056512651526407021363 0ustar bookbook#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { require Test::More; Test::More::plan(skip_all => 'these tests are for testing by the author'); } } # 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' }); Git-Repository-Plugin-Log-1.313/t/00-report-prereqs.t0000644000175000017500000001273112651526407020715 0ustar bookbook#!perl use strict; use warnings; # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.021 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 ); if ($type eq 'modules') { splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports; } else { 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: Git-Repository-Plugin-Log-1.313/t/release-distmeta.t0000644000175000017500000000043012651526407020727 0ustar bookbook#!perl BEGIN { unless ($ENV{RELEASE_TESTING}) { require Test::More; Test::More::plan(skip_all => 'these tests are for release candidate testing'); } } # This file was automatically generated by Dist::Zilla::Plugin::MetaTests. use Test::CPAN::Meta; meta_yaml_ok(); Git-Repository-Plugin-Log-1.313/t/00-report-prereqs.dd0000644000175000017500000000421512651526407021037 0ustar bookbookdo { my $x = { 'configure' => { 'requires' => { 'ExtUtils::MakeMaker' => '0' } }, 'develop' => { 'requires' => { 'Pod::Coverage::TrustPod' => '0', 'Test::CPAN::Meta' => '0', 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.08' } }, 'runtime' => { 'requires' => { 'Carp' => '0', 'Git::Repository' => '1.309', 'Git::Repository::Command' => '0', 'Git::Repository::Plugin' => '0', 'Scalar::Util' => '0', 'perl' => '5.006', 'strict' => '0', 'warnings' => '0' } }, 'test' => { 'recommends' => { 'CPAN::Meta' => '2.120900' }, 'requires' => { 'Cwd' => '0', 'ExtUtils::MakeMaker' => '0', 'File::Find' => '0', 'File::Spec' => '0', 'File::Temp' => '0', 'Pod::Coverage::TrustPod' => '0.100003', 'Test::CPAN::Meta' => '0.25', 'Test::Git' => '0', 'Test::More' => '0', 'Test::Pod' => '1.51', 'Test::Pod::Coverage' => '1.10', 'lib' => '0' } } }; $x; }Git-Repository-Plugin-Log-1.313/t/test.bundle0000644000175000017500000003020712651526407017471 0ustar bookbook# v2 git bundle 989960e0d2f4195927a505447b5e641c41373d7f refs/heads/encoding 4e93b5c9530e543075dc2b2373aa0785acc31a3a refs/heads/master 469cc551a1323d8a0285efa7047d72d99013fd36 refs/heads/mergetags cb9416d5aae2ffdad123328812079a2302030dad refs/heads/slave ba5dcbe54b6bd31a8e0f55a8a6ccab25896b86c6 refs/tags/empty aa8d66f1dfe5a7e640c0d3f5a9321d5d126e384e refs/tags/hello c3664f1dfee4b688b5889dfa5183bb51ca1b509c refs/tags/v1.0.0 a1630447f4e8cc930fe8643c5a8c52ce18e28dec refs/tags/v1.0.1 a8851b9822c62869e75ea2aa04e885d1f849264c refs/tags/v1.0.2 3efaf2f5fddc30a43db4e0506b602c9a563dbf9e refs/tags/v1.0.3 aa92e7ae6180e98b424683bbf3d51f78c0fe3752 refs/tags/v1.1.0 4e93b5c9530e543075dc2b2373aa0785acc31a3a HEAD PACK.xm 0{"wA6OE|$AR"*qa-"!%)z]A RX80e5EM˹V*lc9d 2U 2vlJv}}q~>o$48`Ԫ5/{$@Dxm 0ELXK7$PR"*u9uf>aL9R`slPv9f~VHBdI+CPkE&8M`ٮx(UƠ6`Xpy#q=[^-jHxSKϫF+X&%y`6fGC`/7]E,WݧOU95 ,i.x< 9bK(BV"YO&H30 3!l$ah J_d"OHB0a.P,P0Mw8 LX2gĂi H_dF3:1]^i7~?q4Ñt:nϣܵKy㭹pԽ19{_/ٗA9aR IerbXhG. qD'Q'wAj/kכ {̆ |LdiY/ƁYw#$My݋ 2%FO85x0|WVJhIGg7SP_c`oAJD/D\`DD\L)ڏCbI8|wv'ql ;T}}*ЎJ*U:~?l]aDMH}s h SW9Ӑ $<ӧX}pRbq */:fc>eJUsy|UbbJhC3nX2I5IyY韾}xrce-力rvZ|X-ޯ_s N!4!qo:gZr7Xȧ"!@vɲqlMG6i{; q648tb=*`ʩ,R !=wnf~0,^ŀVmxG[;fgY N-UNfĹU:ivv:_)ئF7 w]ż"ox)6e;EAY%'T@鰓E>FCl>^$/kI_?f'^,NXe۟{UVV! |vqTMN]jyvGcr؎՝RI Aʂ ؽAh6vAF`NC?fI?KV}X%`!@@C" l@6t iA{EL7$/;w¬Ym' C$0xmIj@E}Z&* "ؘHڐ+g 8`Uk)D%9 Ii &o sVBe9mk}Y\v;"s>{6))‚98I0b,E6l!*B,YIE2" !+%D|`II1bXQ$bT0fD8ڵDz@.?U $BzjE޶''`MZAmXC{ܟ~@m?S>JX|-0)x3˜j<0tYϫ̛̲ 9N߀oĺZ?O;ѴjlK>Zފ!^G}a,um}z|I8 J|:yRbקk1#^kݹٴ#⧱nczdز͚ysFA-Q- 0q?OCZfX]+x%:Taxn}fHNt݋kiҦ 9̓^D8h3R ȝ@~:;P`!R}wā^V(˴mMN ?ɸnnGel4kʝyd99Wc:T9̷\}#GfW]à ŵ< `G^a,n3 ^!Ȅ hfU%oѻ#Ӧ*ÿeS-OxQ(5U(15000"$22 %9("5bbl2> y)y F\\M>6ltVA#+Q sb/xmr@+UOjڤE<4}๼OEDM違e:8_΁u<GG鄓;puao0nl]G_ֲwZP3ljjW8p f\ 7hlٱK3ޕ!ݘq`vڌƟ^9ӔdF5MVIJ;J[0֚T(d0\\" JzC]cq>@-Ey ٮ؈-M{QaBe\&չ q~t/oں;~ҋK/i=hS̏ Pl4N>?m V-.>/]*eDē5|=|*~omiW\xێFyܕ5͙h7 `Ƙ6swH*RJ_-B@8"N9x:e/ E$M!l"+MܢC %SXLD)fY)%2zI$BT:[Ai!űpՐTȈx苺1.+GC }ȯI] Kqp <*1%{sGg&%MP)rE9%js9Ogm@?5|_W=ot8PE4悝9rWtp]jp1WHO'-\ wCE953浲\mD~O|(N4ndrY't…R‹VYZ0UH??2$.$y00s#Kdy / +N^$s栦b 5dW[ ۢߺE[rQm`uGqBVҌ#^ZimCﮆ/⴨7 {|!٨rGrLI; 2oεpMl(19@nGX1P@2iU|y*=4ٖDPn/IN+1Rf}n;Lxkhe-)JMUH24H56L47L3JM47323H14HLJ102O2HK26363k8q>jy)y \\?)$IbM..xmK@F^f'C76; ࠿>&L6SUuku-@ 1F9q1F$Ma L ":$!qċ|\gcI)P8"2De}@yoO>kr.!sc,C0̃EO9J"B'RRn]K XR@zWW_5^#(+áZE9ω|H㻅]lyRiDžy>TK;;17QicdѰdڀpClZP ͝nv,npr&ɱ{4}8BOS+ט^ڤiػ-0<0ff2.OQ\C@I~E=t2-Fpm͇\Kˎ&,{[lQe+GΊ1ϬR:%Ͱ%?1|It\F3sؓtDiܼkk%W\!Y3}6&̕W2{z xa`x;r@I27=@# @g-B|$A)s Myߺ(D-B5)DK!0s03Dt 5m މe!:-R X#T, ޾۟~Z\]^`$B!:n= pFRW)s@`>p55dI;vҧ< <.2 eS#YR/La(i8⯤{V_ԣi+VEq&*=do,]NpWUC9m`QN$ h>acX, [^p y)y3s9yD24F@_M:s,M.-1v*>©y)y 1gOO*\ xm 0EY*L^&BAi2BHϯPyKIp29ĨeDţ &8A>0l wsҠJQ|iy  /Ы_DLsG{5u x5 0 ~H7}-mb$|J_4BsϑD4Slm [gD/MXk{ns͜q3C'N1;t. x5 0WA61& "GxcJboK6ԁ5)dJ5NeU`-9ѿC,-Fs)mp:SlG^v6QN%e9]_C.'xmI@+8&bwe46r@{bQnyWғ>I1(#6LDg9A@ $')NdEIO$8IAheI;9ӣ9Ƹl.Y~'ȗ9 Yfh^y6j01[Swp'oѺ?>eNhu@}-Q1Vqu_o1ךgc_b0ڿh_|#Y%CR IJMQĢՌkrQm7^%| EqgoWයW %YBDAa#qbypc\IMsGv ]TAg|xa\iC>PcZd=NjcxE}uo|!kv!hj åp=ފ=Ma;j<ՆGRT\n:&FK=Ǘke#LqOUBMwqŨhZmxhZ`n 6_lwԜ [(xm͒@<Ǥ?⠢raDXXo r!d*>tUQNIr OP2$$$2/H"Da犲<i= {{ZՁBJ;ˉ@x@^?_ۯM:2.%aVksfCKV]o3!dzL{=e0iLݱV٩5b˻nc аZC!˥^lAÊYXk ʹ8 Apcؒ𠌪 ´K+絅 ƀԵ\W'\>PcoaSèkD%V'z9pWפi^@&t r8@Qlʊlј)|it][&wH\E׎lU=ΥLZ esjB vIF;WuAvڏBTN% l# 3w,F{j UǛ6_$8'xmM@+8fР,`|Ku_LT&Us3neb,J:),B",^lhR.ׂ܃!p]2{_?'2'OE(Iy芼J~|nq69O'.-m~rq 7bMQUEQ\!ci6.\ z,[O!~=$Ff %Rd?itvx#Lxp GK~Xeִj]tq_Wvz/M87S&eh\Qt3.晱 LXsʋKjcfEj .)C SHȘJBӛ[=Aգ Jz34XJ*ӣhPY  g>3^C4%ᦈ:}|9Uzl->h2š˗Hl꼖⬫6˯խkMl-_ǔ'xmK@+8&B1lY c0 fÆ*u'BUIEr*AID" \~j+A;?3CI˘czm.1>'r$^d <tXy:30hObv~2V5Gq#o9Viv,=tV:ACl晽 WZ!ay}Y/se OeHwE{;q3F3N;)Jro:\#nG{W v"ݚ*ċ]CfTi`^}VsH.{X0#]5-#h+%r۸y⠵Lznü~5w+Fz5mW+5FppExe3mKn*|Ur;ف[/ۍh~!},m ~iM_˿Ƨ'xmI@+8&bL,cύ`hch3NJ'5.qB,Qe>˄E e* \"')"iK@3ɵ h3nчn*̬>I~%eΟ7$^aU9)l?>N e|g pW17>>|3p-}@DP944d ^m{w;[ Zn.8Փمx=kBL9>>u(i3jk))]DyY+̌F{;jJIBKͪӈuZ[,JJYJx4HVp%IiL-tt>ĞrCG< x=NE{4>M_ xms8GD۰μcF7壥m5v]DgN!۝UK `B UfN$nVifL-XJ$xtf޻6oԭȡR3 x9r_ʼ xx340031QHI+(a ÷=~ O}fܩx340031QrutuMa ׾rK%ǹ !2sRJ*JӿVN 0Jfn7'Tx340031QHI+(aXmMKdxeK_  x340031QHI+(a^3_bM_.i׸Jx340031QHI+(at|m7O]l  x340031QHI+(ahZ&J6ɆLK|/ qx340031QHI+(aNZ};+(ƛ5 x340031QHI+(a:e5KVmCx340031QHI+(a *(,௑^{*[ˊ 8x340031QHI+(axRuhEjMLmYey+q 6xH8xK/- xVMoF W x-{ gckW I"@~|)َe'Ɔ i4"Tj~Xukjhůo?_۪gM,U3k6l}w*YO-0 ==}]|o|7Cv'vv#в̪4,"+ vvxul9ж`\#( lncKOرl˴4Fbj7ܱ=툱jƻnrNOmNvPDMqpOD=L6Ϙ^98JFmo{X:%J`P6}t{p$|2MS#a'VFg=渞Q.~`L? \ '% (CQ{%d͗?~=B?`$ە&{ľ ޲nWڃ݆o&'/3v `9,pI TvI;uK)Nm'>c@/DDΥl 7A_qLJJYK$*sꎮ )#@(.k!pJVݜY. GwNA{~e1[pS ZlP! ^PIK8-'|% =@韊,Y."lKV2dau(l?ĒD'=p.oQ$*znJ5(#5Œ* ޫu.[ʋ6; ƙ;ڋM]c;^Ř >Sp $ES ج4!?QMS&TRXE::8jhM: ?J!U:\#8˅Ȕ-UPA-if",Wq^r4/ uɆ:&UJIi/J4LDZXWt8ЎX!}o&(1G!ӌ |x* &@,|Xg&ގ.E4:ژ G^({lJFot},ذ][щٌLTk-RoTԼJl8sźnq6VTI$Gi쓐H>̓(eljR:IOqs$X"/% o: a$u>}cS΍(")9'A rIi8^QH HtVxG-ɡ)jDq>QyiD)Z ~4xHBxHW8x%+>7xH9 ";xkd\)3xy >xK?"".7ux{8qǍ7.|ܸ [_ !FS| !LGit-Repository-Plugin-Log-1.313/t/bundle.pl0000644000175000017500000004006312651526407017126 0ustar bookbook%commit = ( "0b2d9d33df9eebbbfea07fab53019f63571183c6" => { author => "Example Author 1405523491 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [ "32defe32456a053a9c391cdcf9a4292af6d3c80a" ], subject => "g\303\263\303\260ur dagur (is)", tree => "b090e309a779f2ea76260d10abd027b08fb36362" }, "1f2e387e072680656acac623ea04e1b2b054e8c7" => { author => "Example Author 1405523494 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [ "f6812d818e65423551c0eb7ac899dbea5311eb56" ], subject => "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257 (ja)", tree => "822aed1f11e71b48d14c899d209b0dca92a08ec8" }, "255a1a6e669ab3b04fd53d26c3ffcdfe16d83a3e" => { author => " 1405523483 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [], subject => "hello (en)", tree => "fa85af1dc631f3f8d977aafe0253b1d02eb2c4c7" }, "32defe32456a053a9c391cdcf9a4292af6d3c80a" => { author => "Example Author 1405523488 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [ "6015b6a34038fd16fa8393a066493e6fcc9a174a", "6ba823ece3063b52e1d44cdde497332645fb49e0" ], subject => "Merge branch 'slave'", tree => "a319709ffcce3607d752ca412bd1db7f932cce81" }, "469cc551a1323d8a0285efa7047d72d99013fd36" => { author => "Example Author 1405523505 +0100", body => "# tag 'v1.1.0'\nsigned tag\n\n# gpg: Signature made Wed Jul 16 18:11:23 2014 CEST using RSA key ID 7621C403\n# gpg: Good signature from \"Example Author \"\n\n# tag 'v1.0.1'\n\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257\n\n# gpg: Signature made Wed Jul 16 18:11:23 2014 CEST using RSA key ID 7621C403\n# gpg: Good signature from \"Example Author \"\n", committer => "Example Committer 1405527082 +0100", extra => "", mergetag => [ "object fc862ff3b0b4eb337e6ed714031c6cdeaa42ffd9\ntype commit\ntag v1.1.0\ntagger Example Committer 1405527082 +0100\n\nsigned tag\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQDHNEH/18O60/7Q2ALyrgQ0ArhBvUG\nM/El7f84thgfbwbYeDmg65zMrzy5B+8ny8TCSBgza7d2QICu4QTHk/UesiHftaSA\nauQpj57ky3rnZMEwepCiJmYyeVwHerDaNQm7ldqb3yktnj65dfbyHQ8M5IjeWAC6\nz7pH31gInps15hWTnJzlmkqQWPKHVxMQzSkY4oWUMltLi0YoEtgqtwTwH8heKBFQ\neDGHAjEgAxZanBF0yIN+OKWrPgPF6UFjvrtyxeJ8c5R5t/al1JwMi6ULRIjJ9BA0\nzQct7xpSNz8qncNfmiJHHfnwlHBT95nTvsatO+OZPNpvO9vFmr41QsklYsXrOGQ=\n=VnjD\n-----END PGP SIGNATURE-----", "object 1f2e387e072680656acac623ea04e1b2b054e8c7\ntype commit\ntag v1.0.1\ntagger Example Committer 1405527082 +0100\n\n\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQD70AIAI89r83aW3hwj5x4HXx+xj8p\nT/hdAtdkv86j4M3Wi1eJ6BDwmEa0ZwW+Zsxd8ucal7/pprpI68ZkGNoJdgjrJIKO\nD8MkEl9US2ZhM5xtRAjlGqWcVj9KRW09dSHiI7NBhDDrazdZb2sd9HKFrP+RTFIy\n1OzftuOSZfN05pHfKHEwpE96pfQC/EjcY8EL3cJT8MofQbeIGRAJEopcVC4mDHIk\nkW5UtwlYuof31lfq1pePzwcXbuW0Iu9rgEXM5Fi5UMk7YAqSVyhDd1OBAeLID5Xg\nYSizb5DuL6TuK8d3zCQkZohwIzx/a7noLeY9c7c8IqNEJ0GLRC4bJCISZR9h9p8=\n=pEp9\n-----END PGP SIGNATURE-----" ], parent => [ "32defe32456a053a9c391cdcf9a4292af6d3c80a", "fc862ff3b0b4eb337e6ed714031c6cdeaa42ffd9", "1f2e387e072680656acac623ea04e1b2b054e8c7" ], subject => "Merge tags 'v1.1.0' and 'v1.0.1' into mergetags", tree => "a319709ffcce3607d752ca412bd1db7f932cce81" }, "4e93b5c9530e543075dc2b2373aa0785acc31a3a" => { author => "Example Author 1405523506 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [ "e2a207202a60cec5968c315a3249fdb4831a5d08" ], subject => "add the README", tree => "8c2bcf77a059f11df2933656ddb437bbfad723ed" }, "6015b6a34038fd16fa8393a066493e6fcc9a174a" => { author => "Andr\303\251 1405523484 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [ "255a1a6e669ab3b04fd53d26c3ffcdfe16d83a3e" ], subject => "h\303\251ll\303\262", tree => "a319709ffcce3607d752ca412bd1db7f932cce81" }, "6ba823ece3063b52e1d44cdde497332645fb49e0" => { author => "Example Author 1405523485 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [], subject => "empty tree", tree => "4b825dc642cb6eb9a060e54bf8d69288fbee4904" }, "73dbff4c40d38f3d2b7be0476fd0cc40c2d29d15" => { author => "Example Author 1405523496 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", gpgsig => "-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQDUpIIAIkOUvX3834rFJcF18rEmfue\nzIFNi3C12S/G6APTg6V2WlwuVtJF6tFc4JScwzgFm4bYrb2JWOaIvAhjNlTnfhxf\nC+UTYcoxxYQKtPdyBNH9dafyrAnxo8FMoVpm/eYbj5rq5ZBlxEIXas8AV0VTK4au\nCzjg73Pib0STVbtF8MqW4KxFfucI770pv9Oj7aZX8WFWzpQZiyGJMiAu/c6Ajeob\nkNtgSvr5OweVKWVdG7EwV4tAtck6tLoJHpOh1CUFORPW3IEjcTPGtAVFDVYiKq/Y\n905mbcbhL0ljoB1iBsQ1xFMZWN2aX75xOhMwQakRGp20UiZuKhd4Fjm2421aMzU=\n=3WvP\n-----END PGP SIGNATURE-----", parent => [ "1f2e387e072680656acac623ea04e1b2b054e8c7" ], subject => "ol\303\241 (pt)", tree => "33a90fc1da2f84bfc394fa886a3d70ae534dc03f" }, "7bc08ae3886d74a575cd92c5f3877e481b45bb07" => { author => "Example Author 1405523489 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [ "32defe32456a053a9c391cdcf9a4292af6d3c80a" ], subject => "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257 (ja)", tree => "51827db31da3d816058b613f19c971e5c4fa6f16" }, "989960e0d2f4195927a505447b5e641c41373d7f" => { author => "Example Author 1405523498 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [ "73dbff4c40d38f3d2b7be0476fd0cc40c2d29d15" ], subject => "", tree => "524a684865d9b37e0a7236df14ccde01501f063d" }, c9a1ee109ebce2a8ce1ed4dffaec9c691c4915f0 => { author => "Example Author 1405523503 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", gpgsig => "-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQsAAoJEOX2RRt2IcQDDNwH/1vf113qFEZq04/i6ZN26sTc\ntTLK9n8Y4WbV+tj2MC930SsId1hn75OdFfHE6Lh4ZsMt8sBubCMPaWo1CnCmNcCr\nOWPiLvUj8WI6TC+ZuNCEAzKWVZsyWVn6pnUEQPjy1MOHKpKPFdPQpRi8VGs+dDja\nLR86J1ZuSbqY/4KWAPK9Q0QmYzHna8OlwdSJnY9s5tjyiGr6yDa7pnFd3nBrjbuo\nlDiOadBfEzJCF1jWmPeNPswVyXinPG006ki7zsc/za4ugUyE40Kvl+QGuM/OLJ6+\niOD7q9rror5t1Hr14hSBri9h4kpOP+qW/Ezx7DlnwF3tVB3X3JXsHFgthZW2ex8=\n=UxWl\n-----END PGP SIGNATURE-----", mergetag => [ "object 73dbff4c40d38f3d2b7be0476fd0cc40c2d29d15\ntype commit\ntag v1.0.2\ntagger Example Committer 1405527082 +0100\n\nsigned tag\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQDSgsH/3GGToydJnBf9C3d5gXh8Tfg\nmpobajQ2dbjfZOkQSWXmUbZG0N8GDGZYR0FSXzExJD3whkNCbtnMKPgcryoTOSkI\ntozWoymtu0gHW43LXyHL/t5f3zFbRTLs6be97fJM0On0hK8ZnIKyDx8UvetlRsY7\nFgikiCbnzEzfNasNFprkElGB94btTXCErjhXbJaJ6qlNPfXKS/0qrCVv1WBSBUxR\nFvsUZEb5SH/It1saC3UNAftnPp1eZ4KjRUQC3li3XiGCGX6QWcE61C3A2BKPIApl\nzSyqA4IGz2/jwz+YEFx3DIapMN4u6LC83EC5Hgl+O4GRpjKI1CdgYGQHnwMMUW8=\n=Roel\n-----END PGP SIGNATURE-----" ], parent => [ "fa59af7668ae3358b1e23a47630fbec5f3f1ef50", "73dbff4c40d38f3d2b7be0476fd0cc40c2d29d15" ], subject => "bom dia", tree => "7b8f01341e59251bbf067b1001cdd12f44c36847" }, cb9416d5aae2ffdad123328812079a2302030dad => { author => "Example Author 1405523506 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", gpgsig => "-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQsAAoJEOX2RRt2IcQDTxcH/2nJwnVN0XH/gEbtObhmf3R8\neOcMlYmNZAFS5Yw7H7oVRK6WGcRVs+dWFGCf9vF62nQxU41zICs5Y9ycjb5/VeJc\nb2+mXYjz6f6y3n3LsRKqQHjNnkCB7KCrxrSaCgjhploPCzZNSzlsJv1uZ/A5hBHt\nUC0qm4MPyjXvN4LW/S9j7X9xiNBnqTuC0scuacDk0sPZD4gf5lh41nSYBhIE/CeO\njtlmwnUdwPjnhAXGnat8GoAeOgvIR28b6ZfgdjJWigw/pJi87Uyk7gzwBkiUwD1Z\n9iQM9uBUQSctTiqg4hGLHRwEk+PUPmaitqySnM/D0d2DElRQYMXTUuuDMZB5AZE=\n=FYmK\n-----END PGP SIGNATURE-----", mergetag => [ "object fc862ff3b0b4eb337e6ed714031c6cdeaa42ffd9\ntype commit\ntag v1.1.0\ntagger Example Committer 1405527082 +0100\n\nsigned tag\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQDHNEH/18O60/7Q2ALyrgQ0ArhBvUG\nM/El7f84thgfbwbYeDmg65zMrzy5B+8ny8TCSBgza7d2QICu4QTHk/UesiHftaSA\nauQpj57ky3rnZMEwepCiJmYyeVwHerDaNQm7ldqb3yktnj65dfbyHQ8M5IjeWAC6\nz7pH31gInps15hWTnJzlmkqQWPKHVxMQzSkY4oWUMltLi0YoEtgqtwTwH8heKBFQ\neDGHAjEgAxZanBF0yIN+OKWrPgPF6UFjvrtyxeJ8c5R5t/al1JwMi6ULRIjJ9BA0\nzQct7xpSNz8qncNfmiJHHfnwlHBT95nTvsatO+OZPNpvO9vFmr41QsklYsXrOGQ=\n=VnjD\n-----END PGP SIGNATURE-----", "object 73dbff4c40d38f3d2b7be0476fd0cc40c2d29d15\ntype commit\ntag v1.0.2\ntagger Example Committer 1405527082 +0100\n\nsigned tag\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQDSgsH/3GGToydJnBf9C3d5gXh8Tfg\nmpobajQ2dbjfZOkQSWXmUbZG0N8GDGZYR0FSXzExJD3whkNCbtnMKPgcryoTOSkI\ntozWoymtu0gHW43LXyHL/t5f3zFbRTLs6be97fJM0On0hK8ZnIKyDx8UvetlRsY7\nFgikiCbnzEzfNasNFprkElGB94btTXCErjhXbJaJ6qlNPfXKS/0qrCVv1WBSBUxR\nFvsUZEb5SH/It1saC3UNAftnPp1eZ4KjRUQC3li3XiGCGX6QWcE61C3A2BKPIApl\nzSyqA4IGz2/jwz+YEFx3DIapMN4u6LC83EC5Hgl+O4GRpjKI1CdgYGQHnwMMUW8=\n=Roel\n-----END PGP SIGNATURE-----" ], parent => [ "6ba823ece3063b52e1d44cdde497332645fb49e0", "fc862ff3b0b4eb337e6ed714031c6cdeaa42ffd9", "73dbff4c40d38f3d2b7be0476fd0cc40c2d29d15" ], subject => "buon giorno (it)", tree => "4b825dc642cb6eb9a060e54bf8d69288fbee4904" }, e2a207202a60cec5968c315a3249fdb4831a5d08 => { author => "Example Author 1405523504 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", gpgsig => "-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQsAAoJEOX2RRt2IcQDGfsH/jmgIgir/dqh6GnxqoHQxVCG\nWhQNAVv3fvods/nKX6mV8ZMh6omdFES9m7lWiT2ZKLfYzgyJwxEHSthGTK11gdRa\ngXmJHzdqul+/wjMpcL1LpR0vp3f73ylPsA2MsI0pLFj+wfxgr03VTWqjsxPMt3Z/\nqTvI3BA5B4moV9UDiQsjcKKxIMyRFxSzTX1RkOtkMedzXu/MBWhLJMJlNqWiiSRJ\nkC/J6RUHCKwHJMl/czbtfw9hFin2A6nPDqUXSlicQaeVN3M6Hop7p5B7FRyaG3M6\nC+NMmPofPN4V1DH3XArulyuc1GpfO55PpBzCPzamoRG5dCIiP2i/4eZOPcIqIMw=\n=UDPB\n-----END PGP SIGNATURE-----", mergetag => [ "object 989960e0d2f4195927a505447b5e641c41373d7f\ntype commit\ntag v1.0.3\ntagger Example Committer 1405527082 +0100\n\nsigned tag\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQDwBsH/idcHUPXJ5K23FvyevuV+LcI\nRWcD7RyhQX5r8aYWfVDiu4VLW9IJuEV2wu/5yjI6x3hRBIry8+OR98rQ/ZXOXRP4\nJCVTogIzHv1wfdJzY3N8TyLQgBUyeqWOi+9RxkeLVYNLclEbQrccljfNepp0aLep\novt9MnK6iLMqeoOht2Ys+JCETB7x3qmahAhn4T0H8h2IiCKRXZxSzsVPrGEikpxx\nvQdnGiYK0A8wtslIR8Co+b+oKuPsRyiHHnehUikM1/pCTDS/53m2N4k/VFpxarXB\nJ+1NlhPJJsLCfahA93hjdKh/WR86+u/ODZix0rSC2bFTxRNf7hfiwFH/23NhSrI=\n=dfpU\n-----END PGP SIGNATURE-----" ], parent => [ "c9a1ee109ebce2a8ce1ed4dffaec9c691c4915f0", "989960e0d2f4195927a505447b5e641c41373d7f" ], subject => "buen d\303\255a (es)", tree => "7b8f01341e59251bbf067b1001cdd12f44c36847" }, f2da33588f3c5678fd1d6700b0b7a3b500e285a6 => { author => "Example Author 1405523490 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", gpgsig => "-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQDEuYH/01zbzM4PEOY5EnDkKGc3SjE\niwJi0BmNTeZ7gISm1leMS1alXBeqN/Ex91xW4O0sfDx1TpIPT4T1fY1rMiAEyNZu\nZJOF3zLtwB99b00XELButxkag6y89bPkLYOzHKku6t5FLldUNqMgRW4esrcuh4Fq\n0uPOySLF5ex8TcyRgIDILjyLf94mlaabVMtLWNxSeFkCgv10PjinFCxprEva+q/8\nynbJ7aRUYp5Tvg9b6MAxjQ//+C/1+IHzriXFZb1e0BdR6DfVO6noALwJhHMm8lgm\nPXxKu8RcIR89vpeKqsmqDISREWg5ia/lQTIe+eeuOyQvaqzpAST0LK9V2m44jcU=\n=VTqL\n-----END PGP SIGNATURE-----", parent => [ "7bc08ae3886d74a575cd92c5f3877e481b45bb07" ], subject => "hej (da)", tree => "7b8f01341e59251bbf067b1001cdd12f44c36847" }, f6812d818e65423551c0eb7ac899dbea5311eb56 => { author => "Andr\303\251 1405523492 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", parent => [ "0b2d9d33df9eebbbfea07fab53019f63571183c6" ], subject => "hall\303\263 (is)", tree => "1840015fc84bf133760c966eed4c1b4047ea657a" }, fa59af7668ae3358b1e23a47630fbec5f3f1ef50 => { author => "Example Author 1405523502 +0100", body => "", committer => "Example Committer 1405527082 +0100", extra => "", mergetag => [ "object 1f2e387e072680656acac623ea04e1b2b054e8c7\ntype commit\ntag v1.0.1\ntagger Example Committer 1405527082 +0100\n\n\303\243\302\201\302\223\303\243\302\202\302\223\303\243\302\201\302\253\303\243\302\201\302\241\303\243\302\201\302\257\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQD70AIAI89r83aW3hwj5x4HXx+xj8p\nT/hdAtdkv86j4M3Wi1eJ6BDwmEa0ZwW+Zsxd8ucal7/pprpI68ZkGNoJdgjrJIKO\nD8MkEl9US2ZhM5xtRAjlGqWcVj9KRW09dSHiI7NBhDDrazdZb2sd9HKFrP+RTFIy\n1OzftuOSZfN05pHfKHEwpE96pfQC/EjcY8EL3cJT8MofQbeIGRAJEopcVC4mDHIk\nkW5UtwlYuof31lfq1pePzwcXbuW0Iu9rgEXM5Fi5UMk7YAqSVyhDd1OBAeLID5Xg\nYSizb5DuL6TuK8d3zCQkZohwIzx/a7noLeY9c7c8IqNEJ0GLRC4bJCISZR9h9p8=\n=pEp9\n-----END PGP SIGNATURE-----" ], parent => [ "fc862ff3b0b4eb337e6ed714031c6cdeaa42ffd9", "1f2e387e072680656acac623ea04e1b2b054e8c7" ], subject => "dobr\303\275 den (cs)", tree => "7b8f01341e59251bbf067b1001cdd12f44c36847" }, fc862ff3b0b4eb337e6ed714031c6cdeaa42ffd9 => { author => "Example Author 1405523500 +0100", body => "signed tag\n\n# gpg: Signature made Wed Jul 16 18:11:23 2014 CEST using RSA key ID 7621C403\n# gpg: Good signature from \"Example Author \"\n", committer => "Example Committer 1405527082 +0100", extra => "", mergetag => [ "object f6812d818e65423551c0eb7ac899dbea5311eb56\ntype commit\ntag v1.0.0\ntagger Example Committer 1405527082 +0100\n\nsigned tag\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.12 (GNU/Linux)\n\niQEcBAABAgAGBQJTxqQrAAoJEOX2RRt2IcQD1hwH/3JQsd1XnB4p7LBlR6YwhJzd\n68cvB7pgPMURk9a6LpxvOIhwAwg6BQtzPvMOL4KPrUuymAsQAjjtH6Qfc99O+V+F\nOrGPn5EL7LerUT0NUQjeHRfgX0p73QYQTEf3Ua8wNkiVyxD7paAgIQ19SzRIRk6B\ngGf4Tjn9wxDddRC0AiBwavocsMYiHW1r1LyC27KLeP46xTZGM/oqOs4h5XPqfrtT\npGvLrcE1WqwlhK3vAS6mDObzTfrMWiMR7FDMPPBM0m9yiCW4aBZ0gguUZOi1hq0x\nItzZcHRQ7ougAlfuaj/J9K5zaaaziF71ptb+3OlHnidmGSSTYrHtn/A7ZOSh2MI=\n=+KXN\n-----END PGP SIGNATURE-----" ], parent => [ "f2da33588f3c5678fd1d6700b0b7a3b500e285a6", "f6812d818e65423551c0eb7ac899dbea5311eb56" ], subject => "Merge tag 'v1.0.0'", tree => "7b8f01341e59251bbf067b1001cdd12f44c36847" } ); Git-Repository-Plugin-Log-1.313/t/30-log.t0000644000175000017500000001510112651526407016501 0ustar bookbookuse strict; use warnings; use Test::More; use Git::Repository::Log; # no need for git here my @tests = ( [ [ commit => '2bb91232215d1863c6b8cb3737d8d8ed952f0210', tree => '23a9197db125bb757e80462639cd7a2b288a9473', parent => 'd747608fb582710f1d6885e0a94c585024ae44bc', author => 'Philippe Bruhat (BooK) 1282408639 +0200', committer => 'Philippe Bruhat (BooK) 1282408639 +0200', message => " MANIFEST update\n", extra => << 'EXTRA', 'diff --git a/MANIFEST b/MANIFEST index 86a12a9..4766ee3 100644 --- a/MANIFEST +++ b/MANIFEST @@ -14,5 +14,8 @@ t/10-new_fail.t t/11-create.t t/20-simple.t t/22-backward.t +t/25-mixins.t +t/Git/Repository/Mixin/Hello.pm +t/Git/Repository/Mixin/Hello2.pm t/pod-coverage.t t/pod.t EXTRA ] => { commit => '2bb91232215d1863c6b8cb3737d8d8ed952f0210', tree => '23a9197db125bb757e80462639cd7a2b288a9473', parent => ['d747608fb582710f1d6885e0a94c585024ae44bc'], author => 'Philippe Bruhat (BooK) 1282408639 +0200', author_gmtime => '1282408639', author_localtime => '1282415839', author_tz => '+0200', author_name => 'Philippe Bruhat (BooK)', author_email => 'book@cpan.org', diff_from => undef, committer => 'Philippe Bruhat (BooK) 1282408639 +0200', committer_name => 'Philippe Bruhat (BooK)', committer_email => 'book@cpan.org', committer_gmtime => '1282408639', committer_localtime => '1282415839', committer_tz => '+0200', raw_message => " MANIFEST update\n", message => "MANIFEST update\n", subject => "MANIFEST update", body => '', extra => << 'EXTRA', 'diff --git a/MANIFEST b/MANIFEST index 86a12a9..4766ee3 100644 --- a/MANIFEST +++ b/MANIFEST @@ -14,5 +14,8 @@ t/10-new_fail.t t/11-create.t t/20-simple.t t/22-backward.t +t/25-mixins.t +t/Git/Repository/Mixin/Hello.pm +t/Git/Repository/Mixin/Hello2.pm t/pod-coverage.t t/pod.t EXTRA } ], [ [ commit => 'f4ceeb0b81da0ae70388340f41dd574db585778b', tree => '7a24e56ba5f15011e95dd397969000a87a141ba1', parent => '1c8f8d241bb94f4c10cc6639a23accd53b7ba93e', parent => '9adb8a6926b6a93a6aca057e6d01443f73464afa', author => 'Philippe Bruhat (BooK) 1282050772 -0200', committer => 'Philippe Bruhat (BooK) 1282050772 -0200', message => << 'MESSAGE', Merge branch 'master' into git-log Conflicts: lib/Git/Repository.pm MESSAGE extra => '', ] => { commit => 'f4ceeb0b81da0ae70388340f41dd574db585778b', tree => '7a24e56ba5f15011e95dd397969000a87a141ba1', parent => [ '1c8f8d241bb94f4c10cc6639a23accd53b7ba93e', '9adb8a6926b6a93a6aca057e6d01443f73464afa' ], author => 'Philippe Bruhat (BooK) 1282050772 -0200', author_gmtime => '1282050772', author_localtime => '1282043572', author_tz => '-0200', author_name => 'Philippe Bruhat (BooK)', author_email => 'book@cpan.org', diff_from => undef, committer => 'Philippe Bruhat (BooK) 1282050772 -0200', committer_name => 'Philippe Bruhat (BooK)', committer_email => 'book@cpan.org', committer_gmtime => '1282050772', committer_localtime => '1282043572', committer_tz => '-0200', raw_message => << 'MESSAGE', Merge branch 'master' into git-log Conflicts: lib/Git/Repository.pm MESSAGE message => << 'MESSAGE', Merge branch 'master' into git-log Conflicts: lib/Git/Repository.pm MESSAGE subject => q{Merge branch 'master' into git-log}, body => << 'BODY', Conflicts: lib/Git/Repository.pm BODY extra => '', } ], [ [ commit => '940ca54b6b3ac6a3c03349c8b4515b5536064068', tree => 'fb10bfa47f17e73b8575bbc8b9558453f987ea6f', parent => '3739c7e10ee6bc0b39c776bf43a86ee3f53f3d68', author => 'Aristotle Pagaltzis 1282387388 +0800', committer => 'Philippe Bruhat (BooK) 1282389828 +0800', message => " small POD copyedit\n", extra => '', ] => { commit => '940ca54b6b3ac6a3c03349c8b4515b5536064068', tree => 'fb10bfa47f17e73b8575bbc8b9558453f987ea6f', parent => ['3739c7e10ee6bc0b39c776bf43a86ee3f53f3d68'], author => 'Aristotle Pagaltzis 1282387388 +0800', author_name => 'Aristotle Pagaltzis', author_email => 'pagaltzis@gmx.de', author_gmtime => '1282387388', author_localtime => '1282416188', author_tz => '+0800', diff_from => undef, committer => 'Philippe Bruhat (BooK) 1282389828 +0800', committer_name => 'Philippe Bruhat (BooK)', committer_email => 'book@cpan.org', committer_gmtime => '1282389828', committer_localtime => '1282418628', committer_tz => '+0800', raw_message => " small POD copyedit\n", message => "small POD copyedit\n", subject => "small POD copyedit", body => '', extra => '', }, ] ); my @methods = qw( commit tree parent ); plan tests => 3 * @tests; for my $t (@tests) { my ( $args, $expected ) = @$t; my $got = Git::Repository::Log->new(@$args); isa_ok( $got, 'Git::Repository::Log' ); is_deeply( $got, $expected, "commit $args->[1]" ); my $method = shift @methods; if ( $method eq 'parent' ) { is_deeply( [ $got->$method ], $expected->{$method}, "$method accessor" ); } else { is( $got->$method, $expected->{$method}, "$method accessor" ); } } Git-Repository-Plugin-Log-1.313/t/40-plugin-log.t0000644000175000017500000001160712651526407020005 0ustar bookbookuse strict; use warnings; use lib 't'; use Test::More; use Test::Git; use File::Temp qw( tempdir ); use File::Spec; use Cwd qw( cwd abs_path ); use Git::Repository; has_git('1.5.0.rc1'); my $version = Git::Repository->version; diag "git version $version"; # setup the environment my %env = ( # ensure local configs won't interfere GIT_CONFIG_NOSYSTEM => 1, XDG_CONFIG_HOME => undef, HOME => undef, # no locale LC_ALL => 'C', # author / committer GIT_AUTHOR_NAME => 'Test Author', GIT_AUTHOR_EMAIL => 'test.author@example.com', GIT_COMMITTER_NAME => 'Test Committer', GIT_COMMITTER_EMAIL => 'test.committer@example.com', ); plan tests => my $tests; # first create a new empty repository my $r = test_repository( git => { env => \%env } ); my $dir = $r->work_tree; my $gitdir = $r->git_dir; # extra options to the commit command: # - skip commit hooks that might be included in the template my @opts = qw( --no-verify ); # some test data my %commit = ( 1 => { tree => 'df2b8fc99e1c1d4dbc0a854d9f72157f1d6ea078', parent => [], subject => 'empty file', body => '', extra => '', }, 2 => { tree => '6820ead72140bd33a7a821965a05f9a1e89bf3c8', parent => [], subject => 'one line', body => "of data\n", extra => '', }, ); sub check_commit { my ( $id, $log, %more ) = @_; my $commit = { %{ $commit{$id} }, %more }; is( $log->tree, $commit->{tree}, "commit $id tree" ); is_deeply( [ $log->parent ], $commit->{parent}, "commit $id parent" ); is( $log->subject, $commit->{subject}, "commit $id subject" ); is( $log->body, $commit->{body}, "commit $id body" ); is( $log->extra, $commit->{extra}, "commit $id extra" ); } local $/ = chr rand 128; # no log method yet BEGIN { $tests += 3 } ok( !eval { $r->log('-1') }, 'no log() method' ); # load the log method use_ok( 'Git::Repository', 'Log' ); ok( eval { $r->log('-1') }, 'log() method exists now' ); # create an empty file and commit it BEGIN { $tests += 2 } my $file = File::Spec->catfile( $dir, 'file' ); do { open my $fh, '>', $file; }; $r->run( add => 'file' ); $r->run( commit => @opts, '-m', $commit{1}{subject} ); my @log = $r->log(); is( scalar @log, 1, '1 commit' ); isa_ok( $_, 'Git::Repository::Log' ) for @log; # check some log details BEGIN { $tests += 5 } check_commit( 1 => $log[0] ); push @{ $commit{2}{parent} }, $log[0]->commit; # create another commit BEGIN { $tests += 3 } do { open my $fh, '>', $file; print $fh 'line 1'; }; $r->run( add => 'file' ); $r->run( commit => @opts, '-m', "$commit{2}{subject}\n\n$commit{2}{body}" ); @log = $r->log(); is( scalar @log, 2, '2 commits' ); isa_ok( $_, 'Git::Repository::Log' ) for @log; # check some log details BEGIN { $tests += 5 } check_commit( 2 => $log[0] ); # try as a class method BEGIN { $tests += 8 } my $home = cwd; chdir $dir; @log = Git::Repository->log(); is( scalar @log, 2, '2 commits' ); isa_ok( $_, 'Git::Repository::Log' ) for @log; check_commit( 2 => $log[0] ); chdir $home; # try a command that fails (fatal) BEGIN { $tests += 2 } ok( !eval { @log = $r->log('zlonk') }, q{log('zlonk') failed} ); like( $@, qr/^fatal: ambiguous argument 'zlonk': unknown revision or path not in/, 'unknown revision or path' ); # try a command that returns a git error (usage) BEGIN { $tests += 2 } ok( !eval { @log = $r->log('--bam') }, q{log('--bam') failed} ); like( $@, qr/^fatal: unrecognized argument: --bam at/, 'unknown revision or path' ); # various options combinations my @options; BEGIN { @options = ( [ [qw( -p -- file )], [ <<'DIFF', << 'DIFF'] ], diff --git a/file b/file index e69de29..dcf168c 100644 --- a/file +++ b/file @@ -0,0 +1 @@ +line 1 \ No newline at end of file DIFF diff --git a/file b/file new file mode 100644 index 0000000..e69de29 DIFF [ [qw( file )], [ '', '' ] ], [ [qw( --decorate file )], [ '', '' ], '1.5.2.rc0' ], [ [qw( --pretty=raw )], [ '', '' ] ], ); $tests += 13 * @options; } for my $o (@options) { my ( $args, $extra, $minver ) = @$o; SKIP: { skip "git log @$args needs $minver, we only have $version", 13 if $minver && Git::Repository->version_lt($minver); @log = $r->log(@$args); is( scalar @log, 2, "2 commits for @$args" ); isa_ok( $_, 'Git::Repository::Log' ) for @log; check_commit( 2 => $log[0], extra => $extra->[0] ); check_commit( 1 => $log[1], extra => $extra->[1] ); } } my @badopts; BEGIN { @badopts = ( [qw( --pretty=oneline )], [qw( --graph )], [qw( --format=medium )], [qw( --oneline)], ); $tests += 2 * @badopts; } for my $badopt (@badopts) { ok( !eval { $r->log(@$badopt) }, "bad options: @$badopt" ); like( $@, qr/^log\(\) cannot parse @$badopt/, '.. expected error' ); } Git-Repository-Plugin-Log-1.313/t/author-pod-syntax.t0000644000175000017500000000050312651526407021106 0ustar bookbook#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { require Test::More; Test::More::plan(skip_all => 'these tests are for testing by the author'); } } # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); Git-Repository-Plugin-Log-1.313/t/00-load.t0000644000175000017500000000066712651526407016647 0ustar bookbookuse strict; use warnings; use Test::More; use File::Find; my @modules; find( sub { push @modules, $File::Find::name if /\.pm$/ }, 'lib' ); plan tests => scalar @modules; @modules = reverse sort map { s!/!::!g; s/\.pm$//; s/^lib:://; $_ } @modules; # load in isolation local $ENV{PERL5LIB} = join $Config::Config{path_sep} || ';', @INC; for my $module (@modules) { `$^X -M$module -e1`; is( $? >> 8, 0, "perl -M$module -e1" ); } Git-Repository-Plugin-Log-1.313/META.yml0000644000175000017500000000217712651526407016332 0ustar bookbook--- abstract: 'Add a log() method to Git::Repository' author: - 'Philippe Bruhat (BooK) ' build_requires: Cwd: '0' ExtUtils::MakeMaker: '0' File::Find: '0' File::Spec: '0' File::Temp: '0' Pod::Coverage::TrustPod: '0.100003' Test::CPAN::Meta: '0.25' Test::Git: '0' Test::More: '0' Test::Pod: '1.51' Test::Pod::Coverage: '1.10' lib: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Dist::Zilla version 5.042, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Git-Repository-Plugin-Log requires: Carp: '0' Git::Repository: '1.309' Git::Repository::Command: '0' Git::Repository::Plugin: '0' Scalar::Util: '0' perl: '5.006' strict: '0' warnings: '0' resources: bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Git-Repository-Plugin-Log repository: http://github.com/book/Git-Repository-Plugin-Log.git version: '1.313' x_contributors: - 'Vickenty Fesunov ' - 'Bartosz Jakubski ' - 'Paulo Custodio ' Git-Repository-Plugin-Log-1.313/dist.ini0000644000175000017500000000247412651526407016525 0ustar bookbookname = Git-Repository-Plugin-Log author = Philippe Bruhat (BooK) license = Perl_5 copyright_holder = Philippe Bruhat (BooK) ; copyright_year = 2010-2016 [PkgVersion] [@Filter] -bundle = @Basic -remove = Readme [PruneFiles] filename = setup match = \.patch$ match = mess/.* match = cover_db [Encoding] filename = t/test.bundle encoding = bytes [AutoPrereqs] [Prereqs] Git::Repository = 1.309 [Prereqs / TestRequires] Pod::Coverage::TrustPod = 0.100003 Test::CPAN::Meta = 0.25 Test::Pod = 1.51 Test::Pod::Coverage = 1.10 [Test::ReportPrereqs] [MetaResources] repository.web = http://github.com/book/Git-Repository-Plugin-Log repository.url = http://github.com/book/Git-Repository-Plugin-Log.git repository.type = git bugtracker.web = http://rt.cpan.org/NoAuth/Bugs.html?Dist=Git-Repository-Plugin-Log bugtracker.mailto = bug-git-repository-plugin-log@rt.cpan.org [MetaTests] [PodSyntaxTests] [PodCoverageTests] [NextRelease] format = %v %{EEE MMM d yyyy}d [@Git] changelog = Changes commit_msg = Changes for version %v tag_format = v%v tag_message = %N v%v push_to = origin push_to = github [Git::NextVersion] [Meta::Contributors] contributor = Vickenty Fesunov contributor = Bartosz Jakubski contributor = Paulo Custodio Git-Repository-Plugin-Log-1.313/MANIFEST0000644000175000017500000000066512651526407016212 0ustar bookbook# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.042. Changes LICENSE MANIFEST META.yml Makefile.PL README dist.ini lib/Git/Repository/Log.pm lib/Git/Repository/Log/Iterator.pm lib/Git/Repository/Plugin/Log.pm t/00-load.t t/00-report-prereqs.dd t/00-report-prereqs.t t/30-log.t t/40-plugin-log.t t/41-multiline-log.t t/author-pod-coverage.t t/author-pod-syntax.t t/bundle.pl t/release-distmeta.t t/test.bundle Git-Repository-Plugin-Log-1.313/Makefile.PL0000644000175000017500000000365712651526407017037 0ustar bookbook# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.042. use strict; use warnings; use 5.006; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "Add a log() method to Git::Repository", "AUTHOR" => "Philippe Bruhat (BooK) ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "Git-Repository-Plugin-Log", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.006", "NAME" => "Git::Repository::Plugin::Log", "PREREQ_PM" => { "Carp" => 0, "Git::Repository" => "1.309", "Git::Repository::Command" => 0, "Git::Repository::Plugin" => 0, "Scalar::Util" => 0, "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { "Cwd" => 0, "ExtUtils::MakeMaker" => 0, "File::Find" => 0, "File::Spec" => 0, "File::Temp" => 0, "Pod::Coverage::TrustPod" => "0.100003", "Test::CPAN::Meta" => "0.25", "Test::Git" => 0, "Test::More" => 0, "Test::Pod" => "1.51", "Test::Pod::Coverage" => "1.10", "lib" => 0 }, "VERSION" => "1.313", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "Carp" => 0, "Cwd" => 0, "ExtUtils::MakeMaker" => 0, "File::Find" => 0, "File::Spec" => 0, "File::Temp" => 0, "Git::Repository" => "1.309", "Git::Repository::Command" => 0, "Git::Repository::Plugin" => 0, "Pod::Coverage::TrustPod" => "0.100003", "Scalar::Util" => 0, "Test::CPAN::Meta" => "0.25", "Test::Git" => 0, "Test::More" => 0, "Test::Pod" => "1.51", "Test::Pod::Coverage" => "1.10", "lib" => 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); Git-Repository-Plugin-Log-1.313/lib/0000755000175000017500000000000012651526407015620 5ustar bookbookGit-Repository-Plugin-Log-1.313/lib/Git/0000755000175000017500000000000012651526407016343 5ustar bookbookGit-Repository-Plugin-Log-1.313/lib/Git/Repository/0000755000175000017500000000000012651526407020522 5ustar bookbookGit-Repository-Plugin-Log-1.313/lib/Git/Repository/Log.pm0000644000175000017500000001122012651526407021575 0ustar bookbookpackage Git::Repository::Log; $Git::Repository::Log::VERSION = '1.313'; use strict; use warnings; use 5.006; # a few simple accessors for my $attr ( qw( commit diff_from tree author author_name author_email committer committer_name committer_email author_localtime author_tz author_gmtime committer_localtime committer_tz committer_gmtime raw_message message subject body gpgsig extra ) ) { no strict 'refs'; *$attr = sub { return $_[0]{$attr} }; } for my $attr (qw( parent mergetag )) { no strict 'refs'; *$attr = sub { return @{ $_[0]{$attr} || [] } }; } sub new { my ( $class, @args ) = @_; my $self = bless { parent => [] }, $class; # pick up key/values from the list while ( my ( $key, $value ) = splice @args, 0, 2 ) { if ( $key =~ /^(?:parent|mergetag)$/ ) { push @{ $self->{$key} }, $value; } else { $self->{$key} = $value; } } # special case ($self->{commit}, $self->{diff_from}) = $self->{commit} =~ /^(\S+)(?: \(from (\S+)\))?/; # compute other keys $self->{raw_message} = $self->{message}; $self->{message} =~ s/^ //gm; @{$self}{qw( subject body )} = ( split( /\n/m, $self->{message}, 2 ), '', '' ); $self->{body} =~ s/\A\s//gm; # author and committer details for my $who (qw( author committer )) { $self->{$who} =~ /^(.*) <(.*)> (.*) (([-+])(..)(..))$/; my @keys = ( "${who}_name", "${who}_email", "${who}_gmtime", "${who}_tz" ); @{$self}{@keys} = ( $1, $2, $3, $4 ); $self->{"${who}_localtime"} = $self->{"${who}_gmtime"} + ( $5 eq '-' ? -1 : 1 ) * ( $6 * 3600 + $7 * 60 ); } return $self; } 1; __END__ =pod =head1 NAME Git::Repository::Log - Class representing git log data =head1 SYNOPSIS # load the Log plugin use Git::Repository 'Log'; # get the log for last commit my ($log) = Git::Repository->log( '-1' ); # get the author's email print my $email = $log->author_email; =head1 DESCRIPTION C is a class whose instances represent log items from a B stream. =head1 CONSTRUCTOR This method shouldn't be used directly. L should be the preferred way to create C objects. =head2 new Create a new C instance, using the list of key/values passed as parameters. The supported keys are (from the output of C): =over 4 =item commit The commit id (ignoring the extra information added by I<--decorate>). =item tree The tree id. =item parent The parent list, separated by spaces. =item author The author information. =item committer The committer information. =item message The log message (including the 4-space indent normally output by B). =item gpgsig The commit signature. =item mergetag The mergetag information. =item diff_from The commit from which the diff was taken. This is the extra C information on the commit header that is added by B when the log contains a diff (using the C<-p> or C<--name-status> option). In this case, C may show the same commit several times. =item extra Any extra text that might be added by extra options passed to B (e.g. C<-p> or C<--name-status>). =back Note that since C does not provide the C header (and provides the message properly decoded), this information will not be available via L. =head1 ACCESSORS The following accessors methods are recognized. They all return scalars, except for C, which returns a list. =head2 Commit information =over 4 =item commit =item tree =item parent =back =head2 Author and committer information =over 4 =item author =item committer The original author/committer line =item author_name =item committer_name =item author_email =item committer_email =back =head2 Date information =over 4 =item author_gmtime =item committer_gmtime =item author_localtime =item committer_localtime =item author_tz =item committer_tz =back =head2 Log information =over 4 =item raw_message The log message with the 4-space indent output by B. =item message The unindented version of the log message. =item subject =item body =back =head2 Signature-related information =over 4 =item gpgsig =item mergetag =back =head2 Extra information =over 4 =item extra =back =head1 COPYRIGHT Copyright 2010-2016 Philippe Bruhat (BooK), all rights reserved. =head1 LICENSE This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut Git-Repository-Plugin-Log-1.313/lib/Git/Repository/Plugin/0000755000175000017500000000000012651526407021760 5ustar bookbookGit-Repository-Plugin-Log-1.313/lib/Git/Repository/Plugin/Log.pm0000644000175000017500000000425212651526407023042 0ustar bookbookpackage Git::Repository::Plugin::Log; $Git::Repository::Plugin::Log::VERSION = '1.313'; use warnings; use strict; use 5.006; use Git::Repository::Plugin; our @ISA = qw( Git::Repository::Plugin ); sub _keywords { qw( log ) } use Git::Repository::Log::Iterator; sub log { # skip the invocant when invoked as a class method shift if !ref $_[0]; # get the iterator my $iter = Git::Repository::Log::Iterator->new(@_); # scalar context: return the iterator return $iter if !wantarray; # list context: return all Git::Repository::Log objects my @logs; while ( my $log = $iter->next ) { push @logs, $log; } return @logs; } 1; __END__ =pod =head1 NAME Git::Repository::Plugin::Log - Add a log() method to Git::Repository =head1 SYNOPSIS # load the plugin use Git::Repository 'Log'; my $r = Git::Repository->new(); # get all log objects my @logs = $r->log(qw( --since=yesterday )); # get an iterator my $iter = $r->log(qw( --since=yesterday )); while ( my $log = $iter->next() ) { ...; } =head1 DESCRIPTION This module adds a new method to L. =head1 METHOD =head2 log # iterator my $iter = $r->log( @args ); # all Git::Repository::Log objects obtained from the log my @logs = $r->log( @args ); Run C with the given arguments. In scalar context, returns a L object, which can return L objects on demand. In list context, returns the full list L objects. Note that this can be very memory-intensive. See L's documentation for details about how parameters are handled. =head1 ACKNOWLEDGEMENTS Many thanks to Aristotle Pagaltzis who requested a C method in the first place, and for very interesting conversations on the topic. =head1 SEE ALSO L, L, L. =head1 COPYRIGHT Copyright 2010-2016 Philippe Bruhat (BooK), all rights reserved. =head1 LICENSE This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut Git-Repository-Plugin-Log-1.313/lib/Git/Repository/Log/0000755000175000017500000000000012651526407021243 5ustar bookbookGit-Repository-Plugin-Log-1.313/lib/Git/Repository/Log/Iterator.pm0000644000175000017500000001174212651526407023377 0ustar bookbookpackage Git::Repository::Log::Iterator; $Git::Repository::Log::Iterator::VERSION = '1.313'; use strict; use warnings; use 5.006; use Carp; use Scalar::Util qw( blessed ); use Git::Repository; use Git::Repository::Command; use Git::Repository::Log; sub new { my ( $class, @cmd ) = @_; # pick up unsupported log options my @badopts = do { my $options = 1; grep {/^--(?:(?:pretty|format)=(?!raw).*|graph|oneline)$/} grep { $options = 0 if $_ eq '--'; $options } @cmd; }; croak "log() cannot parse @badopts. " . 'Use run( log => ... ) to parse the output yourself' if @badopts; # note: there is no --color option to git log before 1.5.3.3 my ($r) = grep blessed $_ && $_->isa('Git::Repository'), @cmd; $r ||= 'Git::Repository'; # no Git::Repository object given unshift @cmd, '--no-color' if $r->version_ge('1.5.3.3'); # enforce the format @cmd = ( 'log', '--pretty=raw', @cmd ); # run the command (@cmd may hold a Git::Repository instance) my $cmd = Git::Repository::Command->new(@cmd); bless { cmd => $cmd, fh => $cmd->stdout }, $class; } sub new_from_fh { my ( $class, $fh ) = @_; bless { fh => $fh }, $class; } sub new_from_file { my ( $class, $file ) = @_; open my $fh, '<', $file or die "Can't open $file: $!"; bless { fh => $fh }, $class; } sub next { my ($self) = @_; my $fh = $self->{fh}; # get records my @records = defined $self->{record} ? ( delete $self->{record} ) : (); { local $/ = "\n\n"; while (<$fh>) { $self->{record} = $_, last if /\Acommit / && @records; push @records, $_; } } # EOF if ( !@records ) { if ( $self->{cmd} ) { # might catch some git errors $self->{cmd}->final_output(); } else { # just close the filehandle $self->{fh}->close; } return; } # the first two records are always the same, with --pretty=raw local $/ = "\n"; my ( $header, $message, $extra ) = ( @records, '', '' ); chomp $header; my @headers = map { chomp; split / /, $_, 2 } split /^(?=\S)/m, $header; s/\n /\n/g for @headers; chomp( $message, $extra ) if exists $self->{record}; # create the log object return Git::Repository::Log->new( @headers, message => $message, extra => $extra, ); } 1; __END__ =pod =head1 NAME Git::Repository::Log::Iterator - Split a git log stream into records =head1 SYNOPSIS use Git::Repository::Log::Iterator; # use a default Git::Repository context my $iter = Git::Repository::Log::Iterator->new('HEAD~10..'); # or provide an existing instance my $iter = Git::Repository::Log::Iterator->new( $r, 'HEAD~10..' ); # get the next log record while ( my $log = $iter->next ) { ...; } =head1 DESCRIPTION C initiates a B command from a list of paramaters and parses its output to produce L objects represening each log item. =head1 METHODS =head2 new my $iter = Git::Repository::Log::Iterator->new( @args ); Create a new B stream from the parameter list in C<@args> and return a iterator on it. C will happily accept any parameters, but note that C expects the output to look like that of C<--pretty=raw>, and so will force the the C<--pretty> option (in case C is defined in the Git configuration). It will also forcibly remove colored output (using C<--color=never>). Extra output (like patches) will be stored in the C parameter of the L object. Decorations will be lost. When unsupported options are recognized in the parameter list, C will C with a message advising to use C<< run( 'log' => ... ) >> to parse the output yourself. The object is really a blessed hash reference, with only two keys: =over 4 =item cmd The L object running the actual B command. It might not be defined in some cases (see below L and L). =item fh The filehandle from which the output of B is actually read. This is the only attribute needed to run the L method. =back =head2 new_from_fh This constructor makes it possible to provide the filehandle directly. The C key is not defined when using this constructor. =head2 new_from_file This constructor makes it possible to provide a filename that will be Ced to produce a filehandle to read the log stream from. The C key is not defined when using this constructor. =head2 next my $log = $iter->next; Return the next log item as a L object, or nothing if the stream has ended. =head1 COPYRIGHT Copyright 2010-2016 Philippe Bruhat (BooK), all rights reserved. =head1 LICENSE This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut Git-Repository-Plugin-Log-1.313/README0000644000175000017500000000167112651526407015737 0ustar bookbookGit-Repository-Plugin-Log Git::Repository::Plugin::Log adds a log() method to Git::Repository, which will return Git::Repository::Log objects representing the commit information provided by `git log`. SUPPORT AND DOCUMENTATION After installing, you can find documentation for this module with the perldoc command. perldoc Git::Repository::Plugin::Log You can also look for information at: RT, CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=Git-Repository-Plugin-Log AnnoCPAN, Annotated CPAN documentation http://annocpan.org/dist/Git-Repository-Plugin-Log CPAN Ratings http://cpanratings.perl.org/d/Git-Repository-Plugin-Log Search CPAN http://search.cpan.org/dist/Git-Repository-Plugin-Log COPYRIGHT AND LICENCE Copyright (C) 2010-2013 Philippe Bruhat (BooK) This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.