Commit 4502780b authored by gregor herrmann's avatar gregor herrmann

Imported Upstream version 1.101243

parent 8a0720d6
Revision history for String-Flogger
1.101243 2013-01-31 11:42:28 America/New_York
use horrible hack to avoid dying when a data structure to log
contains an object
1.101242 2012-03-26 08:20:22 America/New_York
make ->flog({...}) act like ->flog([ '%s', {...} ])
(thanks, Randy Stauner)
......
This software is copyright (c) 2012 by Ricardo SIGNES <rjbs@cpan.org>.
This software is copyright (c) 2013 by Ricardo SIGNES <rjbs@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......@@ -12,7 +12,7 @@ b) the "Artistic License"
--- The GNU General Public License, Version 1, February 1989 ---
This software is Copyright (c) 2012 by Ricardo SIGNES <rjbs@cpan.org>.
This software is Copyright (c) 2013 by Ricardo SIGNES <rjbs@cpan.org>.
This is free software, licensed under:
......@@ -272,7 +272,7 @@ That's all there is to it!
--- The Artistic License 1.0 ---
This software is Copyright (c) 2012 by Ricardo SIGNES <rjbs@cpan.org>.
This software is Copyright (c) 2013 by Ricardo SIGNES <rjbs@cpan.org>.
This is free software, licensed under:
......
......@@ -7,6 +7,9 @@ Makefile.PL
README
dist.ini
lib/String/Flogger.pm
t/00-compile.t
t/000-report-versions-tiny.t
t/basic.t
t/release-pod-syntax.t
t/synopsis.t
xt/release/changes_has_content.t
xt/release/pod-syntax.t
......@@ -4,7 +4,7 @@
"Ricardo SIGNES <rjbs@cpan.org>"
],
"dynamic_config" : 0,
"generated_by" : "Dist::Zilla version 4.300010, CPAN::Meta::Converter version 2.120630",
"generated_by" : "Dist::Zilla version 4.300030, CPAN::Meta::Converter version 2.120921",
"license" : [
"perl_5"
],
......@@ -19,6 +19,12 @@
"ExtUtils::MakeMaker" : "6.30"
}
},
"develop" : {
"requires" : {
"Test::Pod" : "1.41",
"version" : "0.9901"
}
},
"runtime" : {
"requires" : {
"JSON" : "0",
......@@ -32,12 +38,17 @@
},
"test" : {
"requires" : {
"File::Find" : "0",
"File::Temp" : "0",
"Test::More" : "0.96"
}
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/rjbs/string-flogger/issues"
},
"homepage" : "https://github.com/rjbs/string-flogger",
"repository" : {
"type" : "git",
......@@ -45,123 +56,136 @@
"web" : "https://github.com/rjbs/string-flogger"
}
},
"version" : "1.101242",
"version" : "1.101243",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.017008"
},
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::Git::GatherDir",
"name" : "@RJBS/Git::GatherDir",
"version" : "2.007"
},
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@RJBS/CheckPrereqsIndexed",
"version" : "0.007"
"version" : "0.008"
},
{
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@RJBS/@Basic/GatherDir",
"version" : "4.300010"
"class" : "Dist::Zilla::Plugin::CheckExtraTests",
"name" : "@RJBS/CheckExtraTests",
"version" : "0.008"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Basic/PruneCruft",
"version" : "4.300010"
"name" : "@RJBS/@Filter/PruneCruft",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Basic/ManifestSkip",
"version" : "4.300010"
"name" : "@RJBS/@Filter/ManifestSkip",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Basic/MetaYAML",
"version" : "4.300010"
"name" : "@RJBS/@Filter/MetaYAML",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Basic/License",
"version" : "4.300010"
"name" : "@RJBS/@Filter/License",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Basic/Readme",
"version" : "4.300010"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@RJBS/@Basic/ExtraTests",
"version" : "4.300010"
"name" : "@RJBS/@Filter/Readme",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Basic/ExecDir",
"version" : "4.300010"
"name" : "@RJBS/@Filter/ExecDir",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Basic/ShareDir",
"version" : "4.300010"
"name" : "@RJBS/@Filter/ShareDir",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@RJBS/@Basic/MakeMaker",
"version" : "4.300010"
"name" : "@RJBS/@Filter/MakeMaker",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Basic/Manifest",
"version" : "4.300010"
"name" : "@RJBS/@Filter/Manifest",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Basic/TestRelease",
"version" : "4.300010"
"name" : "@RJBS/@Filter/TestRelease",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Basic/ConfirmRelease",
"version" : "4.300010"
"name" : "@RJBS/@Filter/ConfirmRelease",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Basic/UploadToCPAN",
"version" : "4.300010"
"name" : "@RJBS/@Filter/UploadToCPAN",
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@RJBS/Git::NextVersion",
"version" : "1.120370"
"version" : "2.007"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
"name" : "@RJBS/Test::ChangesHasContent",
"version" : "0.006"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::Test::Compile",
"name" : "@RJBS/Test::Compile",
"version" : "1.112820"
},
{
"class" : "Dist::Zilla::Plugin::Repository",
"name" : "@RJBS/Repository",
"version" : "0.18"
"class" : "Dist::Zilla::Plugin::ReportVersions::Tiny",
"name" : "@RJBS/ReportVersions::Tiny",
"version" : "1.08"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
......@@ -172,7 +196,7 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
......@@ -187,52 +211,52 @@
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
"version" : "1.120370"
"version" : "2.007"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
"version" : "1.120370"
"version" : "2.007"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
"version" : "1.120370"
"version" : "2.007"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
"version" : "1.120370"
"version" : "2.007"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
"version" : "4.300010"
"version" : "4.300030"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
"version" : "4.300010"
"version" : "4.300030"
}
],
"zilla" : {
......@@ -240,7 +264,7 @@
"config" : {
"is_trial" : "0"
},
"version" : "4.300010"
"version" : "4.300030"
}
}
}
......
......@@ -3,11 +3,13 @@ abstract: 'string munging for loggers'
author:
- 'Ricardo SIGNES <rjbs@cpan.org>'
build_requires:
File::Find: 0
File::Temp: 0
Test::More: 0.96
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
generated_by: 'Dist::Zilla version 4.300010, CPAN::Meta::Converter version 2.120630'
generated_by: 'Dist::Zilla version 4.300030, CPAN::Meta::Converter version 2.120921'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
......@@ -22,103 +24,114 @@ requires:
strict: 0
warnings: 0
resources:
bugtracker: https://github.com/rjbs/string-flogger/issues
homepage: https://github.com/rjbs/string-flogger
repository: https://github.com/rjbs/string-flogger.git
version: 1.101242
version: 1.101243
x_Dist_Zilla:
perl:
version: 5.017008
plugins:
-
class: Dist::Zilla::Plugin::Git::GatherDir
name: '@RJBS/Git::GatherDir'
version: 2.007
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
version: 0.007
version: 0.008
-
class: Dist::Zilla::Plugin::GatherDir
name: '@RJBS/@Basic/GatherDir'
version: 4.300010
class: Dist::Zilla::Plugin::CheckExtraTests
name: '@RJBS/CheckExtraTests'
version: 0.008
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Basic/PruneCruft'
version: 4.300010
name: '@RJBS/@Filter/PruneCruft'
version: 4.300030
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Basic/ManifestSkip'
version: 4.300010
name: '@RJBS/@Filter/ManifestSkip'
version: 4.300030
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Basic/MetaYAML'
version: 4.300010
name: '@RJBS/@Filter/MetaYAML'
version: 4.300030
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Basic/License'
version: 4.300010
name: '@RJBS/@Filter/License'
version: 4.300030
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Basic/Readme'
version: 4.300010
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@RJBS/@Basic/ExtraTests'
version: 4.300010
name: '@RJBS/@Filter/Readme'
version: 4.300030
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Basic/ExecDir'
version: 4.300010
name: '@RJBS/@Filter/ExecDir'
version: 4.300030
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Basic/ShareDir'
version: 4.300010
name: '@RJBS/@Filter/ShareDir'
version: 4.300030
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@RJBS/@Basic/MakeMaker'
version: 4.300010
name: '@RJBS/@Filter/MakeMaker'
version: 4.300030
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Basic/Manifest'
version: 4.300010
name: '@RJBS/@Filter/Manifest'
version: 4.300030
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Basic/TestRelease'
version: 4.300010
name: '@RJBS/@Filter/TestRelease'
version: 4.300030
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Basic/ConfirmRelease'
version: 4.300010
name: '@RJBS/@Filter/ConfirmRelease'
version: 4.300030
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Basic/UploadToCPAN'
version: 4.300010
name: '@RJBS/@Filter/UploadToCPAN'
version: 4.300030
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@RJBS/Git::NextVersion'
version: 1.120370
version: 2.007
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::Test::ChangesHasContent
name: '@RJBS/Test::ChangesHasContent'
version: 0.006
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::Test::Compile
name: '@RJBS/Test::Compile'
version: 1.112820
-
class: Dist::Zilla::Plugin::Repository
name: '@RJBS/Repository'
version: 0.18
class: Dist::Zilla::Plugin::ReportVersions::Tiny
name: '@RJBS/ReportVersions::Tiny'
version: 1.08
-
class: Dist::Zilla::Plugin::Prereqs
config:
......@@ -126,7 +139,7 @@ x_Dist_Zilla:
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@RJBS/PodWeaver'
......@@ -138,45 +151,45 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
version: 1.120370
version: 2.007
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
version: 1.120370
version: 2.007
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
version: 1.120370
version: 2.007
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
version: 1.120370
version: 2.007
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
version: 4.300010
version: 4.300030
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
version: 4.300010
version: 4.300030
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
version: 4.300010
version: 4.300030
......@@ -12,6 +12,8 @@ my %WriteMakefileArgs = (
"ABSTRACT" => "string munging for loggers",
"AUTHOR" => "Ricardo SIGNES <rjbs\@cpan.org>",
"BUILD_REQUIRES" => {
"File::Find" => 0,
"File::Temp" => 0,
"Test::More" => "0.96"
},
"CONFIGURE_REQUIRES" => {
......@@ -30,7 +32,7 @@ my %WriteMakefileArgs = (
"strict" => 0,
"warnings" => 0
},
"VERSION" => "1.101242",
"VERSION" => "1.101243",
"test" => {
"TESTS" => "t/*.t"
}
......
This archive contains the distribution String-Flogger,
version 1.101242:
version 1.101243:
string munging for loggers
This software is copyright (c) 2012 by Ricardo SIGNES <rjbs@cpan.org>.
This software is copyright (c) 2013 by Ricardo SIGNES <rjbs@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -5,3 +5,4 @@ copyright_holder = Ricardo SIGNES <rjbs@cpan.org>
[@RJBS]
version = 1
github_issues = 1
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package String::Flogger;
{
$String::Flogger::VERSION = '1.101242';
$String::Flogger::VERSION = '1.101243';
}
# ABSTRACT: string munging for loggers
......@@ -39,6 +39,11 @@ sub _stringify_ref {
->space_after(1)
->convert_blessed(1);
# This is horrible. Just horrible. I wish I could do this with a callback
# passed to JSON: https://rt.cpan.org/Ticket/Display.html?id=54321
# -- rjbs, 2013-01-31
local *UNIVERSAL::TO_JSON = sub { "obj($_[0])" };
return '{{' . $JSON->encode($ref) . '}}'
}
......@@ -69,6 +74,7 @@ sub format_string {
1;
__END__
=pod
=head1 NAME
......@@ -77,7 +83,7 @@ String::Flogger - string munging for loggers
=head1 VERSION
version 1.101242
version 1.101243
=head1 SYNOPSIS
......@@ -129,10 +135,9 @@ Ricardo SIGNES <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES <rjbs@cpan.org>.
This software is copyright (c) 2013 by Ricardo SIGNES <rjbs@cpan.org>.
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
#!perl
use strict;
use warnings;
use Test::More;
use File::Find;
use File::Temp qw{ tempdir };
my @modules;
find(
sub {
return if $File::Find::name !~ /\.pm\z/;
my $found = $File::Find::name;
$found =~ s{^lib/}{};
$found =~ s{[/\\]}{::}g;
$found =~ s/\.pm$//;
# nothing to skip
push @modules, $found;
},
'lib',
);
sub _find_scripts {
my $dir = shift @_;
my @found_scripts = ();
find(
sub {
return unless -f;
my $found = $File::Find::name;
# nothing to skip
open my $FH, '<', $_ or do {
note( "Unable to open $found in ( $! ), skipping" );
return;
};
my $shebang = <$FH>;
return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
push @found_scripts, $found;
},
$dir,
);
return @found_scripts;
}
my @scripts;
do { push @scripts, _find_scripts($_) if -d $_ }
for qw{ bin script scripts };
my $plan = scalar(@modules) + scalar(@scripts);
$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
{
# fake home for cpan-testers
# no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" )
for sort @modules;
SKIP: {
eval "use Test::Script 1.05; 1;";
skip "Test::Script needed to test script compilation", scalar(@scripts) if $@;
foreach my $file ( @scripts ) {
my $script = $file;
$script =~ s!.*/!!;
script_compiles( $file, "$script script compiles" );
}
}
}
use strict;
use warnings;
use Test::More 0.88;
# This is a relatively nice way to avoid Test::NoWarnings breaking our
# expectations by adding extra tests, without using no_plan. It also helps
# avoid any other test module that feels introducing random tests, or even
# test plans, is a nice idea.
our $success = 0;
END { $success && done_testing; }
# List our own version used to generate this
my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n";
eval { # no excuses!
# report our Perl details
my $want = "any version";
$v .= "perl: $] (wanted $want) on $^O from $^X\n\n";