Commit 5ee6cea1 authored by Nicholas Bamber's avatar Nicholas Bamber

[svn-upgrade] new version libsoftware-license-perl (0.103000)

parent 109484a2
Revision history for Software-License
0.103000 2011-03-31 22:31:03 America/New_York
improve method dependency chains (thanks, Flavio Poletti)
add Custom license to stick the whole license in a file
-- still probably a bit experiemental -- thanks, Flavio Poletti
0.102341 2010-12-11 10:22:56 America/New_York
add note to Artistic 2 that it's GPL compatible
......
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
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) 2010 by Ricardo Signes.
This software is Copyright (c) 2011 by Ricardo Signes.
This is free software, licensed under:
......@@ -270,7 +270,7 @@ That's all there is to it!
--- The Artistic License 1.0 ---
This software is Copyright (c) 2010 by Ricardo Signes.
This software is Copyright (c) 2011 by Ricardo Signes.
This is free software, licensed under:
......
......@@ -14,6 +14,7 @@ lib/Software/License/Artistic_1_0.pm
lib/Software/License/Artistic_2_0.pm
lib/Software/License/BSD.pm
lib/Software/License/CC0_1_0.pm
lib/Software/License/Custom.pm
lib/Software/License/FreeBSD.pm
lib/Software/License/GFDL_1_2.pm
lib/Software/License/GPL_1.pm
......@@ -35,6 +36,8 @@ lib/Software/License/Zlib.pm
lib/Software/LicenseUtils.pm
t/basic.t
t/bsd-url.t
t/custom-license
t/custom.t
t/meta-names.t
t/release-pod-syntax.t
t/round-trip.t
......
......@@ -4,7 +4,7 @@
"Ricardo Signes <rjbs@cpan.org>"
],
"dynamic_config" : 0,
"generated_by" : "Dist::Zilla version 4.102345, CPAN::Meta::Converter version 2.102400",
"generated_by" : "Dist::Zilla version 4.200005, CPAN::Meta::Converter version 2.110580",
"license" : [
"perl_5"
],
......@@ -21,7 +21,9 @@
},
"runtime" : {
"requires" : {
"Carp" : 0,
"Data::Section" : 0,
"English" : 0,
"Sub::Install" : 0,
"Text::Template" : 0,
"perl" : "5.006"
......@@ -40,118 +42,123 @@
"url" : "git://git.codesimply.com/Software-License.git"
}
},
"version" : "0.102341",
"version" : "0.103000",
"x_Dist_Zilla" : {
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@RJBS/CheckPrereqsIndexed",
"version" : "0.002"
},
{
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@RJBS/@Basic/GatherDir",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Basic/PruneCruft",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Basic/ManifestSkip",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Basic/MetaYAML",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Basic/License",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Basic/Readme",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@RJBS/@Basic/ExtraTests",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Basic/ExecDir",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Basic/ShareDir",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@RJBS/@Basic/MakeMaker",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Basic/Manifest",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Basic/TestRelease",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Basic/ConfirmRelease",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Basic/UploadToCPAN",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@RJBS/Git::NextVersion",
"version" : "1.102810"
"version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::Repository",
"name" : "@RJBS/Repository",
"version" : "0.14"
"version" : "0.17"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
......@@ -162,7 +169,7 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
......@@ -172,42 +179,42 @@
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
"version" : "1.102810"
"version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
"version" : "1.102810"
"version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
"version" : "1.102810"
"version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
"version" : "1.102810"
"version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
"version" : "4.102345"
"version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
"version" : "4.102345"
"version" : "4.200005"
}
],
"zilla" : {
......@@ -215,7 +222,7 @@
"config" : {
"is_trial" : 0
},
"version" : "4.102345"
"version" : "4.200005"
}
}
}
......
......@@ -7,110 +7,116 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: 6.31
dynamic_config: 0
generated_by: 'Dist::Zilla version 4.102345, CPAN::Meta::Converter version 2.102400'
generated_by: 'Dist::Zilla version 4.200005, CPAN::Meta::Converter version 2.110580'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: Software-License
requires:
Carp: 0
Data::Section: 0
English: 0
Sub::Install: 0
Text::Template: 0
perl: 5.006
resources:
repository: git://git.codesimply.com/Software-License.git
version: 0.102341
version: 0.103000
x_Dist_Zilla:
plugins:
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
version: 0.002
-
class: Dist::Zilla::Plugin::GatherDir
name: '@RJBS/@Basic/GatherDir'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Basic/PruneCruft'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Basic/ManifestSkip'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Basic/MetaYAML'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Basic/License'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Basic/Readme'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@RJBS/@Basic/ExtraTests'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Basic/ExecDir'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Basic/ShareDir'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@RJBS/@Basic/MakeMaker'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Basic/Manifest'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Basic/TestRelease'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Basic/ConfirmRelease'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Basic/UploadToCPAN'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@RJBS/Git::NextVersion'
version: 1.102810
version: 1.110500
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::Repository
name: '@RJBS/Repository'
version: 0.14
version: 0.17
-
class: Dist::Zilla::Plugin::Prereqs
config:
......@@ -118,7 +124,7 @@ x_Dist_Zilla:
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@RJBS/PodWeaver'
......@@ -126,37 +132,37 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
version: 1.102810
version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
version: 1.102810
version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
version: 1.102810
version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
version: 1.102810
version: 1.110500
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
version: 4.102345
version: 4.200005
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
version: 4.102345
version: 4.200005
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
version: 4.102345
version: 4.200005
......@@ -22,11 +22,13 @@ my %WriteMakefileArgs = (
'LICENSE' => 'perl',
'NAME' => 'Software::License',
'PREREQ_PM' => {
'Carp' => '0',
'Data::Section' => '0',
'English' => '0',
'Sub::Install' => '0',
'Text::Template' => '0'
},
'VERSION' => '0.102341',
'VERSION' => '0.103000',
'test' => {
'TESTS' => 't/*.t'
}
......
This archive contains the distribution Software-License,
version 0.102341:
version 0.103000:
packages that provide templated software licenses
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -3,7 +3,7 @@ use warnings;
use 5.006; # warnings
package Software::License;
BEGIN {
$Software::License::VERSION = '0.102341';
$Software::License::VERSION = '0.103000';
}
# ABSTRACT: packages that provide templated software licenses
......@@ -33,7 +33,7 @@ sub license { shift->_fill_in('LICENSE') }
sub fulltext {
my ($self) = @_;
return join "\n", $self->notice, $self->_fill_in('LICENSE')
return join "\n", $self->notice, $self->license;
}
......@@ -90,7 +90,7 @@ Software::License - packages that provide templated software licenses
=head1 VERSION
version 0.102341
version 0.103000
=head1 SYNOPSIS
......@@ -285,7 +285,7 @@ Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package Software::License::AGPL_3;
BEGIN {
$Software::License::AGPL_3::VERSION = '0.102341';
$Software::License::AGPL_3::VERSION = '0.103000';
}
use base 'Software::License';
# ABSTRACT: GNU Affero General Public License, Version 3
......@@ -24,7 +24,7 @@ Software::License::AGPL_3 - GNU Affero General Public License, Version 3
=head1 VERSION
version 0.102341
version 0.103000
=head1 AUTHOR
......@@ -32,7 +32,7 @@ Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package Software::License::Apache_1_1;
BEGIN {
$Software::License::Apache_1_1::VERSION = '0.102341';
$Software::License::Apache_1_1::VERSION = '0.103000';
}
use base 'Software::License';
# ABSTRACT: The Apache Software License, Version 1.1
......@@ -23,7 +23,7 @@ Software::License::Apache_1_1 - The Apache Software License, Version 1.1
=head1 VERSION
version 0.102341
version 0.103000
=head1 AUTHOR
......@@ -31,7 +31,7 @@ Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package Software::License::Apache_2_0;
BEGIN {
$Software::License::Apache_2_0::VERSION = '0.102341';
$Software::License::Apache_2_0::VERSION = '0.103000';
}
use base 'Software::License';
# ABSTRACT: The Apache License, Version 2.0
......@@ -23,7 +23,7 @@ Software::License::Apache_2_0 - The Apache License, Version 2.0
=head1 VERSION
version 0.102341
version 0.103000
=head1 AUTHOR
......@@ -31,7 +31,7 @@ Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package Software::License::Artistic_1_0;
BEGIN {
$Software::License::Artistic_1_0::VERSION = '0.102341';
$Software::License::Artistic_1_0::VERSION = '0.103000';
}
use base 'Software::License';
# ABSTRACT: The Artistic License
......@@ -39,7 +39,7 @@ Software::License::Artistic_1_0 - The Artistic License
=head1 VERSION
version 0.102341
version 0.103000
=head1 OPTIONS
......@@ -68,7 +68,7 @@ Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package Software::License::Artistic_2_0;
BEGIN {
$Software::License::Artistic_2_0::VERSION = '0.102341';
$Software::License::Artistic_2_0::VERSION = '0.103000';
}
use base 'Software::License';
# ABSTRACT: The Artistic License 2.0
......@@ -23,7 +23,7 @@ Software::License::Artistic_2_0 - The Artistic License 2.0
=head1 VERSION
version 0.102341
version 0.103000
=head1 AUTHOR
......@@ -31,7 +31,7 @@ Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package Software::License::BSD;
BEGIN {
$Software::License::BSD::VERSION = '0.102341';
$Software::License::BSD::VERSION = '0.103000';
}
use base 'Software::License';
# ABSTRACT: The (three-clause) BSD License
......@@ -23,7 +23,7 @@ Software::License::BSD - The (three-clause) BSD License
=head1 VERSION
version 0.102341
version 0.103000
=head1 AUTHOR
......@@ -31,7 +31,7 @@ Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
......@@ -2,7 +2,7 @@ use strict;
use warnings;
package Software::License::CC0_1_0;
BEGIN {
$Software::License::CC0_1_0::VERSION = '0.102341';
$Software::License::CC0_1_0::VERSION = '0.103000';
}
use base 'Software::License';
# ABSTRACT: the "public domain"-like CC0 license, version 1.0
......@@ -25,7 +25,7 @@ Software::License::CC0_1_0 - the "public domain"-like CC0 license, version 1.0
=head1 VERSION
version 0.102341
version 0.103000
=head1 WARNING
......@@ -44,7 +44,7 @@ Ricardo Signes <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
......
package Software::License::Custom;
BEGIN {
$Software::License::Custom::VERSION = '0.103000';
}
use strict;
use warnings;
use Carp;
use English qw( -no_match_vars );
use base 'Software::License';
# ABSTRACT: custom license handler
sub new {
my ($class, $arg) = @_;
my $filename = delete $arg->{filename};
my $self = $class->SUPER::new($arg);
$self->load_sections_from($filename) if defined $filename;