Canary-Stability-2013/0000755000000000000000000000000013457314767013337 5ustar rootrootCanary-Stability-2013/README0000644000000000000000000000262213457314767014221 0ustar rootrootNAME Canary::Stability - canary to check perl compatibility for schmorp's modules SYNOPSIS # in Makefile.PL use Canary::Stability DISTNAME => 2001, MINIMUM_PERL_VERSION; DESCRIPTION This module is used by Schmorp's modules during configuration stage to test the installed perl for compatibility with his modules. It's not, at this stage, meant as a tool for other module authors, although in principle nothing prevents them from subscribing to the same ideas. See the Makefile.PL in Coro or AnyEvent for usage examples. ENVIRONMENT VARIABLES "PERL_CANARY_STABILITY_NOPROMPT=1" Do not prompt the user on alert messages. "PERL_CANARY_STABILITY_COLOUR=0" Disable use of colour. "PERL_CANARY_STABILITY_COLOUR=1" Force use of colour. "PERL_CANARY_STABILITY_DISABLE=1" Disable this modules functionality completely. "AUTOMATED_TESTING=1" When this variable is set to a true value and the perl minimum version requirement is not met, the module will exit, which should skip testing under automated testing environments. This is done to avoid false failure or success reports when the chances of success are already quite low and the failures are not supported by the author. AUTHOR Marc Lehmann http://software.schmorp.de/pkg/Canary-Stability.html Canary-Stability-2013/Makefile.PL0000644000000000000000000000047512533606063015302 0ustar rootrootuse ExtUtils::MakeMaker; WriteMakefile( dist => { PREOP => 'pod2text Stability.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', }, NAME => "Canary::Stability", VERSION_FROM => "Stability.pm", ); Canary-Stability-2013/COPYING0000644000000000000000000000007611664557732014374 0ustar rootrootThis module is licensed under the same terms as perl itself. Canary-Stability-2013/t/0000755000000000000000000000000013457314767013602 5ustar rootrootCanary-Stability-2013/t/00_load.t0000644000000000000000000000020213457314751015170 0ustar rootrootBEGIN { $| = 1; print "1..1\n"; } END {print "not ok 1\n" unless $loaded;} use Canary::Stability (); $loaded = 1; print "ok 1\n"; Canary-Stability-2013/Stability.pm0000644000000000000000000001545213457314120015627 0ustar rootroot=head1 NAME Canary::Stability - canary to check perl compatibility for schmorp's modules =head1 SYNOPSIS # in Makefile.PL use Canary::Stability DISTNAME => 2001, MINIMUM_PERL_VERSION; =head1 DESCRIPTION This module is used by Schmorp's modules during configuration stage to test the installed perl for compatibility with his modules. It's not, at this stage, meant as a tool for other module authors, although in principle nothing prevents them from subscribing to the same ideas. See the F in L or L for usage examples. =cut package Canary::Stability; BEGIN { $VERSION = 2013; } sub sgr { # we just assume ANSI almost everywhere # red 31, yellow 33, green 32 local $| = 1; $ENV{PERL_CANARY_STABILITY_COLOUR} ne 0 and ((-t STDOUT and length $ENV{TERM}) or $ENV{PERL_CANARY_STABILITY_COLOUR}) and print "\e[$_[0]m"; } sub import { my (undef, $distname, $minvers, $minperl) = @_; $ENV{PERL_CANARY_STABILITY_DISABLE} and return; $minperl ||= 5.008002; print < $VERSION) { sgr 33; print < Do not prompt the user on alert messages. =item C Disable use of colour. =item C Force use of colour. =item C Disable this modules functionality completely. =item C When this variable is set to a true value and the perl minimum version requirement is not met, the module will exit, which should skip testing under automated testing environments. This is done to avoid false failure or success reports when the chances of success are already quite low and the failures are not supported by the author. =back =head1 AUTHOR Marc Lehmann http://software.schmorp.de/pkg/Canary-Stability.html =cut 1 Canary-Stability-2013/Changes0000644000000000000000000000246113457314762014630 0ustar rootrootRevision history for Perl extension Canary::Stability 2013 Mon Apr 22 12:38:45 CEST 2019 - carbon-dioxide levels hit 400ppm first time in recorded history. - during AUTOMATED_TESTING, turn minimum version recommendations into hard requirements to avoid false positives in unsupported perl versions. - added dummy testsuite. 2012 Sun Sep 25 01:45:56 CEST 2016 - another year where the UNFCCC had to adjust their predictions in the worse direction. - do not print the big intro blob in yellow. 2011 Sun Mar 13 04:41:48 CET 2016 - the year the terrorists won and the free world sacrificed the free. - added more explanatory blurb, based on ideas by Kent Fredric. - colour wasn't reset in time to catch further Makefile.PL output in some cases. 2006 Tue Jan 31 01:00:00 UTC 2006 - the year when things were in good shape still. - the compatibility version test for 5.22 was wrong and errornously takes 5.20.1+ as unsupported. - fix urls. 2001 Tue Jul 3 02:18:41 CEST 2001 - the year where perl was still accomodating enough to inspire module authors to do cool stuff, as opposed to abusing policy to stifle criticism. 1996 Wed Jun 5 09:34:41 GFT 1996 - ariane 5 destructed due to a software compatibility problem. Canary-Stability-2013/MANIFEST0000644000000000000000000000035513457314767014473 0ustar rootrootREADME Changes MANIFEST COPYING Makefile.PL Stability.pm t/00_load.t META.yml Module YAML meta-data (added by MakeMaker) META.json Module JSON meta-data (added by MakeMaker) Canary-Stability-2013/META.yml0000644000000000000000000000074513457314767014616 0ustar rootroot--- abstract: unknown author: - unknown build_requires: ExtUtils::MakeMaker: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010' license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Canary-Stability no_index: directory: - t - inc version: '2013' x_serialization_backend: 'CPAN::Meta::YAML version 0.012' Canary-Stability-2013/META.json0000644000000000000000000000143713457314767014765 0ustar rootroot{ "abstract" : "unknown", "author" : [ "unknown" ], "dynamic_config" : 1, "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010", "license" : [ "unknown" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Canary-Stability", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } } }, "release_status" : "stable", "version" : "2013", "x_serialization_backend" : "JSON::PP version 2.27300" }