Pod-Constants-0.19/0000755000175000017500000000000012737015363013530 5ustar mariusmariusPod-Constants-0.19/lib/0000755000175000017500000000000012737015363014276 5ustar mariusmariusPod-Constants-0.19/lib/Pod/0000755000175000017500000000000012737015363015020 5ustar mariusmariusPod-Constants-0.19/lib/Pod/Constants.pm0000644000175000017500000003160212737014763017337 0ustar mariusmariuspackage Pod::Constants; use 5.006002; use strict; use warnings; use base qw(Pod::Parser Exporter); use Carp; our $VERSION = 0.19; # An ugly hack to go from caller() to the relevant parser state # variable my %parsers; sub end_input { #my ($parser, $command, $paragraph, $line_num) = (@_); my $parser = shift; return unless $parser->{active}; print "Found end of $parser->{active}\n" if $parser->{DEBUG}; my $whereto = $parser->{wanted_pod_tags}->{$parser->{active}}; print "\$_ will be set to:\n---\n$parser->{paragraphs}\n---\n" if $parser->{DEBUG}; $parser->{paragraphs} =~ s/^\s*|\s*$//gs if $parser->{trimmed_tags}->{$parser->{active}}; if (ref $whereto eq 'CODE') { print "calling sub\n" if $parser->{DEBUG}; local ($_) = $parser->{paragraphs}; $whereto->(); print "done\n" if $parser->{DEBUG}; } elsif (ref $whereto eq 'SCALAR') { print "inserting into scalar\n" if $parser->{DEBUG}; $$whereto = $parser->{paragraphs}; } elsif (ref $whereto eq 'ARRAY') { print "inserting into array\n" if $parser->{DEBUG}; @$whereto = split /\n/, $parser->{paragraphs}; } elsif (ref $whereto eq 'HASH') { print "inserting into hash\n" if $parser->{DEBUG}; # Oh, sorry, should I be in LISP101? %$whereto = ( map { map { s/^\s*|\s*$//g; $_ } split /=>/ } grep m/^ ( (?:[^=]|=[^>])+ ) # scan up to "=>" => ( (?:[^=]|=[^>])+ =? )# don't allow more "=>"'s $/x, split /\n/, $parser->{paragraphs},); } else { die $whereto } $parser->{active} = undef; } # Pod::Parser overloaded command sub command { my ($parser, $command, $paragraph, $line_num) = @_; $paragraph =~ s/(?:\r\n|\n\r)/\n/g; print "Got command =$command, value=$paragraph\n" if $parser->{DEBUG}; $parser->end_input() if $parser->{active}; my ($lookup); # first check for a catch-all for this command type if ( exists $parser->{wanted_pod_tags}->{"*$command"} ) { $parser->{paragraphs} = $paragraph; $parser->{active} = "*$command"; } elsif ($command =~ m/^(head\d+|item|(for|begin))$/) { if ( $2 ) { # if it's a "for" or "begin" section, the title is the # first word only ($lookup, $parser->{paragraphs}) = $paragraph =~ m/^\s*(\S*)\s*(.*)/s; } else { # otherwise, it's up to the end of the line ($lookup, $parser->{paragraphs}) = $paragraph =~ m/^\s*(\S[^\n]*?)\s*\n(.*)$/s; } # Look for a match by name if (defined $lookup && exists $parser->{wanted_pod_tags}->{$lookup}) { print "Found $lookup\n" if ($parser->{DEBUG}); $parser->{active} = $lookup; } elsif ($parser->{DEBUG}) { local $^W = 0; print "Ignoring =$command $paragraph (lookup = $lookup)\n" } } else { # nothing print "Ignoring =$command (not known)\n" if $parser->{DEBUG}; } } # Pod::Parser overloaded verbatim sub verbatim { my ($parser, $paragraph, $line_num) = @_; $paragraph =~ s/(?:\r\n|\n\r)/\n/g; my $status = $parser->{active} ? 'using' : 'ignoring'; print "Got paragraph: $paragraph ($status)\n" if $parser->{DEBUG}; $parser->{paragraphs} .= $paragraph if defined $parser->{active} } # Pod::Parser overloaded textblock sub textblock { goto \&verbatim } sub import { my $class = shift; # if no args, just return return unless (@_); # try to guess the source file of the caller my $source_file; if (caller ne 'main') { (my $module = caller.'.pm') =~ s|::|/|g; $source_file = $INC{$module}; } $source_file ||= $0; croak "Cannot find source file (guessed $source_file) for package ".caller unless -f $source_file; # nasty tricks with the stack so we don't have to be silly with # caller() unshift @_, $source_file; goto \&import_from_file; } sub import_from_file { my $filename = shift; my $parser = __PACKAGE__->new(); $parser->{wanted_pod_tags} = {}; $parser->{trimmed_tags} = {}; $parser->{trim_next} = 0; $parser->{DEBUG} = 0; $parser->{active} = undef; $parsers{caller()} = $parser; $parser->add_hook(@_); print "Pod::Parser: DEBUG: Opening $filename for reading\n" if $parser->{DEBUG}; open my $fh, '<', $filename or croak "cannot open $filename for reading; $!"; $parser->parse_from_filehandle($fh, \*STDOUT); close $fh; } sub add_hook { my $parser; if (eval { $_[0]->isa(__PACKAGE__) }) { $parser = shift; } else { $parser = $parsers{caller()} or croak 'add_hook called, but don\'t know what for - caller = '.caller; } while (my ($pod_tag, $var) = splice @_, 0, 2) { #print "$pod_tag: $var\n"; if (lc($pod_tag) eq '-trim') { $parser->{trim_next} = $var; } elsif ( lc($pod_tag) eq '-debug' ) { $parser->{DEBUG} = $var; } elsif (lc($pod_tag) eq '-usage') { # an idea for later - automatic "usage" #%wanted_pod_tags{@tags} } else { if ((ref $var) =~ /^(?:SCALAR|CODE|ARRAY|HASH)$/) { print "Will look for $pod_tag.\n" if $parser->{DEBUG}; $parser->{wanted_pod_tags}->{$pod_tag} = $var; $parser->{trimmed_tags}->{$pod_tag} = 1 if $parser->{trim_next}; } else { croak "Sorry - need a reference to import POD sections into, not the scalar value $var" } } } } sub delete_hook { my $parser; if (eval { $_[0]->isa(__PACKAGE__) }) { $parser = shift; } else { $parser = $parsers{caller()} or croak 'delete_hook called, but don\'t know what for - caller = '.caller; } while ( my $label = shift ) { delete $parser->{wanted_pod_tags}->{$label}; delete $parser->{trimmed_tags}->{$label}; } } 1; __END__ =encoding utf-8 =head1 NAME Pod::Constants - Include constants from POD =head1 SYNOPSIS our ($myvar, $VERSION, @myarray, $html, %myhash); use Pod::Constants -trim => 1, 'Pod Section Name' => \$myvar, 'Version' => sub { eval }, 'Some list' => \@myarray, html => \$html, 'Some hash' => \%myhash; =head2 Pod Section Name This string will be loaded into $myvar =head2 Version # This is an example of using a closure. $_ is set to the # contents of the paragraph. In this example, "eval" is # used to execute this code at run time. $VERSION = 0.19; =head2 Some list Each line from this section of the file will be placed into a separate array element. For example, this is $myarray[2]. =head2 Some hash This text will not go into the hash, because it doesn't look like a definition list. key1 => Some value (this will go into the hash) var2 => Some Other value (so will this) wtf = This won't make it in. =head2 %myhash's value after the above: ( key1 => "Some value (this will go into the hash)", var2 => "Some Other value (so will this)" ) =begin html

This text will be in $html

=cut =head1 DESCRIPTION This module allows you to specify those constants that should be documented in your POD, and pull them out a run time in a fairly arbitrary fashion. Pod::Constants uses Pod::Parser to do the parsing of the source file. It has to open the source file it is called from, and does so directly either by lookup in %INC or by assuming it is $0 if the caller is "main" (or it can't find %INC{caller()}) =head2 ARBITARY DECISIONS I have made this code only allow the "Pod Section Name" to match `headN', `item', `for' and `begin' POD sections. If you have a good reason why you think it should match other POD sections, drop me a line and if I'm convinced I'll put it in the standard version. For `for' and `begin' sections, only the first word is counted as being a part of the specifier, as opposed to `headN' and `item', where the entire rest of the line counts. =head1 FUNCTIONS =head2 import(@args) This function is called when we are "use"'d. It determines the source file by inspecting the value of caller() or $0. The form of @args is HOOK => $where. $where may be a scalar reference, in which case the contents of the POD section called "HOOK" will be loaded into $where. $where may be an array reference, in which case the contents of the array will be the contents of the POD section called "HOOK", split into lines. $where may be a hash reference, in which case any lines with a "=>" symbol present will have everything on the left have side of the => operator as keys and everything on the right as values. You do not need to quote either, nor have trailing commas at the end of the lines. $where may be a code reference (sub { }), in which case the sub is called when the hook is encountered. $_ is set to the value of the POD paragraph. You may also specify the behaviour of whitespace trimming; by default, no trimming is done except on the HOOK names. Setting "-trim => 1" turns on a package "global" (until the next time import is called) that will trim the $_ sent for processing by the hook processing function (be it a given function, or the built-in array/hash splitters) for leading and trailing whitespace. The name of HOOK is matched against any "=head1", "=head2", "=item", "=for", "=begin" value. If you specify the special hooknames "*item", "*head1", etc, then you will get a function that is run for every Note that the supplied functions for array and hash splitting are exactly equivalent to fairly simple Perl blocks: Array: HOOK => sub { @array = split /\n/, $_ } Hash: HOOK => sub { %hash = (map { map { s/^\s+|\s+$//g; $_ } split /=>/, $_ } (grep m/^ ( (?:[^=]|=[^>])+ ) # scan up to "=>" => ( (?:[^=]|=[^>])+ =? )# don't allow more "=>"'s $/x, split /\n/, $_)); } Well, they're simple if you can grok map, a regular expression like that and a functional programming style. If you can't I'm sure it is probably voodoo to you. Here's the procedural equivalent: HOOK => sub { for my $line (split /\n/, $_) { my ($key, $value, $junk) = split /=>/, $line; next if $junk; $key =~ s/^\s+|\s+$//g $value =~ s/^\s+|\s+$//g $hash{$key} = $value; } }, =head2 import_from_file($filename, @args) Very similar to straight "import", but you specify the source filename explicitly. =head2 add_hook(NAME => value) This function adds another hook, it is useful for dynamic updating of parsing through the document. For an example, please see t/01-constants.t in the source distribution. More detailed examples will be added in a later release. =head2 delete_hook(@list) Deletes the named hooks. Companion function to add_hook =head2 CLOSURES AS DESTINATIONS If the given value is a ref CODE, then that function is called, with $_ set to the value of the paragraph. This can be very useful for applying your own custom mutations to the POD to change it from human readable text into something your program can use. After I added this function, I just kept on thinking of cool uses for it. The nice, succinct code you can make with it is one of Pod::Constant's strongest features. Below are some examples. =head1 EXAMPLES =head2 Module Makefile.PL maintenance Tired of keeping those module Makefile.PL's up to date? Note: This method seems to break dh-make-perl. =head2 Example Makefile.PL eval "use Pod::Constants"; ($Pod::Constants::VERSION >= 0.11) or die < sub { ($VERSION) = m/(\d+\.\d+)/ }, 'DEPENDENCIES' => ($PREREQ_PM = { }), -trim => 1, 'NAME' => sub { $ABSTRACT=$_; ($NAME) = m/(\S+)/ }, 'AUTHOR' => \$AUTHOR, ); WriteMakefile ( 'NAME' => $NAME, 'PREREQ_PM' => $PREREQ_PM, 'VERSION' => $VERSION, ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT => $ABSTRACT, AUTHOR => $AUTHOR) : ()), ); =head2 Corresponding Module =head1 NAME MyTestModule - Demonstrate Pod::Constant's Makefile.PL usefulness =head2 MODULE RELEASE This is release 1.05 of this module. =head2 DEPENDENCIES The following modules are required to make this module: Some::Module => 0.02 =head2 AUTHOR Ima Twat =cut our $VERSION; use Pod::Constants -trim => 1, 'MODULE RELEASE' => sub { ($VERSION) = m/(\d+\.\d+) or die }; =head1 AUTHOR Sam Vilain, Maintained by Marius Gavrilescu, since July 2015 =head1 COPYRIGHT AND LICENSE Copyright (C) 2001, 2002, 2007 Sam Vilain. All Rights Reserved. Copyright (C) 2015-2016 by Marius Gavrilescu . This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License, version 2. See the LICENSE file in the root of this distribution for a copy of the Perl Artistic License, version 2. =head1 BUGS/TODO I keep thinking it would be nice to be able to import an =item list into an array or something, eg for a program argument list. But I'm not too sure how it would be all that useful in practice; you'd end up putting the function names for callbacks in the pod or something (perhaps not all that bad). Would this be useful? Pod::Constants::import(Foo::SECTION => \$myvar); Debug output is not very readable =cut Pod-Constants-0.19/MANIFEST0000644000175000017500000000057112737015363014664 0ustar mariusmariusChanges lib/Pod/Constants.pm LICENSE Makefile.PL MANIFEST README t/01-constants.t t/cheese.pl t/Cheese.pm t/ReEntrancyTest.pm META.yml Module YAML meta-data (added by MakeMaker) META.json Module JSON meta-data (added by MakeMaker) SIGNATURE Public-key signature (added by MakeMaker) Pod-Constants-0.19/Makefile.PL0000644000175000017500000000103212736775562015513 0ustar mariusmariususe ExtUtils::MakeMaker; WriteMakefile( NAME => 'Pod::Constants', VERSION_FROM => 'lib/Pod/Constants.pm', ABSTRACT_FROM => 'lib/Pod/Constants.pm', AUTHOR => ['Sam Vilain ', 'Marius Gavrilescu '], MIN_PERL_VERSION => '5.6.2', LICENSE => 'artistic_2', SIGN => 1, PREREQ_PM => { qw/Pod::Parser 1.13/, }, META_ADD => { dynamic_config => 0, resources => { repository => 'https://git.ieval.ro/?p=pod-constants.git', }, } ); Pod-Constants-0.19/Changes0000644000175000017500000000326412737015253015026 0ustar mariusmariusRevision history for Perl extension Pod::Constants. 0.19 2016-07-05T23:39+03:00 - Fix license in README and add LICENSE file (RT #115861) - Shorten README 0.18 2015-07-19T16:25+03:00 - New maintainer - Relicense from Artistic-2+ OR GPL-3+ to plain Artistic-2 - Apply spelling patch from gregoa @ Debian (RT #72452) - Add a test for delete_hook [Refactoring] - Move POD after __END__ - Use warnings and our instead of vars - Simplify tests - Don't use Pod::Constants in Pod::Constants - Make perlcritic a bit happier [Packaging fixes] - Remove extraneous files - Move module to lib/ - Write a modern Makefile.PL (RT #80631) - Rewrite Changes in CPAN::Changes::Spec format 0.17 2015-03-10 - Drop ugly hack to get FULLPERL (RT #61780) 0.16 2007-10-21T21:55:59+13:00 - Lots of boring release engineering. Imported to git, etc. - Removed the debian/ directory. - Updated the license (now not just Artistic) 0.15 2002-04-08T19:43:38+01:00 - Really fixed lack of re-entrancy, added test script for same 0.14 2002-04-08T17:34:35+01:00 - Fixed lack of re-entrancy - Fixed CR/LF handling properly 0.13 2002-01-23T16:55:59Z - Fixed regular expression bug affecting perl versions <= 5.005. 0.12 2001-12-10T16:21:54Z - Added add_hook and delete_hook function - more details on man page 0.11 2001-11-20T18:24:34Z - Corrected man page, added section on automatic Makefile.PL generation 0.10 2001-11-10T01:14:00Z - Added support for importing data into hashes, arrays, and processing with closures. - not released to world at large (man page incorrect) 0.02 2001-11-02T04:15:54Z - now handles "perl -c Module.pm" properly 0.01 2001-10-15T19:39:20Z - original version. scalars only. Pod-Constants-0.19/README0000644000175000017500000000154612737015157014417 0ustar mariusmariusPod::Constants version 0.19 =========================== Pod::Constants allows you to extract data from your POD at run-time, meaning you can do things like declare constants in POD and not have to update two places at once every time you make a change. INSTALLATION To install this module type the following: perl Makefile.PL make make test make install DEPENDENCIES Pod::Parser, 1.13 or better. That is to say, I haven't tested it on any earlier version. COPYRIGHT AND LICENCE Copyright (C) 2001, 2002, 2007 Sam Vilain. All Rights Reserved. Copyright (C) 2015-2016 by Marius Gavrilescu . This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License, version 2. See the LICENSE file in the root of this distribution for a copy of the Perl Artistic License, version 2. Pod-Constants-0.19/t/0000755000175000017500000000000012737015363013773 5ustar mariusmariusPod-Constants-0.19/t/01-constants.t0000644000175000017500000000677012736775562016441 0ustar mariusmarius#!/usr/bin/perl use strict; use warnings; use lib 't'; use File::Temp qw/tempfile/; use Test::More tests => 20; our ($section_1, $section_2, $section_3, $section_4, %options); sub handle_item { my ($options, $description) = m/^(.*?)\n\n(.*)/s; my (@options, $longest); $longest = ""; for my $option ($options =~ m/\G((?:-\w|--\w+))(?:,\s*)?/g) { push @options, $option; $longest = $option if length $option > length $longest } $longest =~ s/^-*//; $options{$longest} = { options => \@options, description => $description, }; } sub run_parser { Pod::Constants->import( section_1 => \$section_1, -trim => 1, section_2 => \$section_2, section_3 => sub { tr/[a-z]/[A-Z]/; $section_3 = $_ }, section_4 => sub { eval }, 'GUI parameters' => sub { Pod::Constants::delete_hook('*item') }, 'command line parameters' => sub { Pod::Constants::add_hook('*item' => \&handle_item) }); } use_ok('Pod::Constants'); run_parser; ok $Pod::Constants::VERSION, "Pod::Constants sets its own VERSION"; # to avoid a warning if ( 0 ) { $Cheese::foo = $ReEntrancyTest::wohoo = $Cheese::quux; } eval 'use Cheese'; is($section_1, "Down with Pants!\n\n", "no trim from main"); is($section_2, "42", "with trim from main"); is($section_3, "CLANK_EST", "sub"); is($section_4, "touche", "eval"); is($Cheese::foo, "detcepxe", "From module"); is($ReEntrancyTest::wohoo, "Re-entrancy works!", "From module"); is($Cheese::quux, "Blah.", "From module(2)"); like(`$^X -c t/Cheese.pm 2>&1`, qr/syntax OK/, "perl -c module"); like(`$^X -c t/cheese.pl 2>&1`, qr/syntax OK/, "perl -c script"); # test the examples on the man page :) package Pod::Constants; Pod::Constants->import (SYNOPSIS => sub { $main::section_1 = join "\n", map { s/^ //; $_ } split /\n/, $_ }); package main; # why define your test results when you can read them in from POD? $section_1 =~ s/myhash\)/myhash, %myhash2)/; $section_1 =~ s/myhash;/myhash, "%myhash\'s value after the above:" => sub { %myhash2 = eval };/; my ($fh, $file) = tempfile 'pod-constants-testXXXX', TMPDIR => 1, UNLINK => 1; print $fh <<"EOF"; package TestManPage; $section_1; 1 EOF close $fh; $INC{'TestManPage.pm'} = $file; require $file; is $TestManPage::myvar, 'This string will be loaded into $myvar',"man page example 1"; is $TestManPage::VERSION, $Pod::Constants::VERSION, "man page example 2"; ok $TestManPage::VERSION, "man page example 2 cross-check"; is $TestManPage::myarray[2], 'For example, this is $myarray[2].', "man page example 3"; my $ok = 0; while (my ($k, $v) = each %TestManPage::myhash) { if (exists $TestManPage::myhash2{$k}) { $ok ++ }; if ($v eq $TestManPage::myhash2{$k}) { $ok ++ }; } is $ok, 4, "man page example 4"; is scalar keys %TestManPage::myhash, 2, "man page example 4 cross-check"; is $TestManPage::html, '

This text will be in $html

', "man page example 5"; # supress warnings $TestManPage::myvar = $TestManPage::html = undef; @TestManPage::myarray = (); is $options{foo}->{options}->[0], "-f", "Pod::Constants::add_hook"; ok !exists $options{gtk}, 'Pod::Constants::remove_hook'; =head2 section_1 Down with Pants! =head2 section_2 42 =head2 section_3 clank_est =head2 section_4 $section_4 = "touche" =cut =head1 command line parameters the following command line parameters are supported =item -f, --foo This does something cool. =item -h, --help This also does something pretty cool. =head1 GUI parameters the following GUI parameters are supported =item -g, --gtk Use a GTK+ look-and-feel =item -q, --qt Use a Qt look-and-feel =cut Pod-Constants-0.19/t/ReEntrancyTest.pm0000644000175000017500000000025312736775562017260 0ustar mariusmariuspackage ReEntrancyTest; use strict; use warnings; our $wohoo; use Pod::Constants -debug => 1, -trim => 1, foobar => \$wohoo; =head1 foobar Re-entrancy works! =cut 1; Pod-Constants-0.19/t/Cheese.pm0000644000175000017500000000051212736775562015540 0ustar mariusmariuspackage Cheese; use strict; use warnings; our ($foo, $quux); sub handle_bar { print "GOT HERE\n"; eval 'use ReEntrancyTest'; print "GOT HERE TOO. \$\@ is `$@'\n"; } use Pod::Constants -debug => 1, -trim => 1, foo => \$foo, bar => \&handle_bar, quux => \$quux; =head1 foo detcepxe =head1 bar =head2 quux Blah. =cut 1; Pod-Constants-0.19/t/cheese.pl0000644000175000017500000000016312736775562015601 0ustar mariusmariususe strict; use warnings; our $foo; use Pod::Constants -trim => 1, foo => \$foo; =head1 foo detcepxe =cut 1; Pod-Constants-0.19/LICENSE0000644000175000017500000002071412736776340014551 0ustar mariusmariusArtistic License 2.0 Copyright (c) 2000-2006, The Perl Foundation. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software. You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement. Definitions "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package. "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures. "You" and "your" means any person who would like to copy, distribute, or modify the Package. "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version. "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization. "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees. "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder. "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder. "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future. "Source" form means the source code, documentation source, and configuration files for the Package. "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form. Permission for Use and Modification Without Distribution (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version. Permissions for Redistribution of the Standard Version (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package. (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License. Distribution of Modified Versions of the Package as Source (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following: (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version. (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version. (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under (i) the Original License or (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed. Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license. (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version. Aggregating or Linking the Package (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation. (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package. Items That are Not Considered Part of a Modified Version (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license. General Provisions (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Pod-Constants-0.19/META.yml0000644000175000017500000000126012737015363015000 0ustar mariusmarius--- abstract: 'Include constants from POD' author: - 'Sam Vilain ' - 'Marius Gavrilescu ' build_requires: ExtUtils::MakeMaker: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'ExtUtils::MakeMaker version 7.1001, CPAN::Meta::Converter version 2.150005' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Pod-Constants no_index: directory: - t - inc requires: Pod::Parser: '1.13' perl: '5.006002' resources: repository: https://git.ieval.ro/?p=pod-constants.git version: 0.19 x_serialization_backend: 'CPAN::Meta::YAML version 0.018' Pod-Constants-0.19/META.json0000644000175000017500000000215412737015363015153 0ustar mariusmarius{ "abstract" : "Include constants from POD", "author" : [ "Sam Vilain ", "Marius Gavrilescu " ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 7.1001, CPAN::Meta::Converter version 2.150005", "license" : [ "artistic_2" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Pod-Constants", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Pod::Parser" : "1.13", "perl" : "5.006002" } } }, "release_status" : "stable", "resources" : { "repository" : { "url" : "https://git.ieval.ro/?p=pod-constants.git" } }, "version" : 0.19, "x_serialization_backend" : "JSON::PP version 2.27300" } Pod-Constants-0.19/SIGNATURE0000644000175000017500000000400412737015363015012 0ustar mariusmariusThis file contains message digests of all files listed in MANIFEST, signed via the Module::Signature module, version 0.80. To verify the content in this distribution, first make sure you have Module::Signature installed, then type: % cpansign -v It will check each file's integrity, as well as the signature's validity. If "==> Signature verified OK! <==" is not displayed, the distribution may already have been compromised, and you should not run its Makefile.PL or Build.PL. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 SHA1 e563a7924512719c2e50a84b7530456ce27b9925 Changes SHA1 3dba87fdd2fcb5c3cc93f325c7d938f24e976af1 LICENSE SHA1 3943ceff484fc4d2c42b74a2cfb846a2b0cea38d MANIFEST SHA1 751c679d0b6e3919bbb0585ad479d44275ec9b0b META.json SHA1 e07f94caca70e85d68b0fa2c8d6fe306fcf0712d META.yml SHA1 bb361567958c2640ef696fe1653a7a2473106cc1 Makefile.PL SHA1 983803d908fb541523c860546b884df95b91587c README SHA1 d2df14f059a4a2d3ca1fc8a5870e3ebbb3c3b42c lib/Pod/Constants.pm SHA1 2abf0122aae5a7dbf65c8b0ea19ceb0188cdadb0 t/01-constants.t SHA1 abbcb128b38cc71f3b14af2fc27eae0ecdb8ed08 t/Cheese.pm SHA1 96922df29d248ea8e0802c0dc66a21fb9f924101 t/ReEntrancyTest.pm SHA1 50c15fa93feff80bdce09aa350965a2e86476591 t/cheese.pl -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXfBrzAAoJEMoENb5ewbNiVtMP/AzsTM733xZoX7auThjh8wik Fm8twE/2/Yf3L8pGN/PslEfF2SnNLZjX4AK0QndoSL/e75xAmZIeg9qMtdcct/tu gtf9qMql2drpMoKZz+or45+HWasTr6W+Z1/6GRePpXmrkWDR8zS20lvIAsoJ5FTu +9rAsUXS9nc8vHZyeLFJMf9fMUURSynj9AkynQJBQ6dY7qjndifV/W8e81ZiuCj3 Lp7v0ND96/YkSPA9Mmt7PJw8bODWicnpjcEES595BW2Vz3nKGAKfiIBLPhDYFWdM AHyq0feoukeDm8dyfzl4k8ys249CG6zv0pikRCsDn+2BvPaDa8NP2gqVK7t07N+y /hetjX8NSAI2+t1BoAWTqk3lSkuonbbmsx6c+pxs2zB92YX5jjYpUj3UOXBDDpJ9 uuHF16adyuEoSrjPm3brL6Sj+f6AB/TSt6aFLUklqe+pHiShyuH97jdGSbJ6P02c VAiTrqQZ6tjOXPX6F+EpoMY90SotCycsh775wBpgAxKj9DoexJ3+xMx1uVlYp5LK hS/B6W6mISqJnapRmf3fuAfFjStHCNN1GxQpBpsWknOZSpR+FCfRqzepflow9Cwz NVM/4yu9RDhwcILpbs3wrKoU68u5QQzvAW/lLuyUWqYbTWO77kiUxG/cq/cl5/px GUmz009+zI7oGh1XjKJA =dsO0 -----END PGP SIGNATURE-----