Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Update meta information for release.
Browse files Browse the repository at this point in the history
Version 0.08.

We've moved to Github.
  • Loading branch information
schwern committed Dec 2, 2015
1 parent 2a377e9 commit 4233d43
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 37 deletions.
10 changes: 7 additions & 3 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ my $build = Module::Build->new(

recursive_test_files => 1,

configure_requires => {
"Module::Build" => '0.36'
},

requires => {
"base" => 0,
},
Expand All @@ -24,9 +28,9 @@ my $build = Module::Build->new(

meta_merge => {
resources => {
homepage => "http://search.cpan.org/dist/mixin",
bugtracker => "https://rt.cpan.org/Public/Dist/Display.html?Name=mixin",
repository => "http://github.com/schwern/mixin",
homepage => "https://github.com/evalEmpire/mixin",
bugtracker => "https://github.com/evalEmpire/mixin/issues",
repository => "https://github.com/evalEmpire/mixin",
},
keywords => [qw(mixin inheritance devel)],
}
Expand Down
28 changes: 15 additions & 13 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This software is copyright (c) 2010 by Michael G Schwern E<lt>[email protected]<gt>.
This software is copyright (c) 2015 by Michael G Schwern E<lt>[email protected]<gt>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Expand All @@ -12,21 +12,22 @@ b) the "Artistic License"

--- The GNU General Public License, Version 1, February 1989 ---

This software is Copyright (c) 2010 by Michael G Schwern E<lt>[email protected]<gt>.
This software is Copyright (c) 2015 by Michael G Schwern E<lt>[email protected]<gt>.

This is free software, licensed under:

The GNU General Public License, Version 1, February 1989

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 Street, Fifth Floor, Boston, MA 02110-1335, USA
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
Preamble

The license agreements of most software companies try to keep users
at the mercy of those companies. By contrast, our General Public
Expand Down Expand Up @@ -67,7 +68,7 @@ authors' reputations.
The precise terms and conditions for copying, distribution and
modification follow.

GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License Agreement applies to any program or other work which
Expand Down Expand Up @@ -185,7 +186,7 @@ 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
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
Expand All @@ -207,9 +208,9 @@ 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
END OF TERMS AND CONDITIONS

Appendix: How to Apply These Terms to Your New Programs
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
Expand All @@ -235,8 +236,9 @@ the exclusion of warranty; and each file should have at least 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
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.

Expand Down Expand Up @@ -270,7 +272,7 @@ That's all there is to it!

--- The Artistic License 1.0 ---

This software is Copyright (c) 2010 by Michael G Schwern E<lt>[email protected]<gt>.
This software is Copyright (c) 2015 by Michael G Schwern E<lt>[email protected]<gt>.

This is free software, licensed under:

Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ t/universal.t
README
LICENSE
META.yml
META.json
64 changes: 64 additions & 0 deletions META.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"abstract" : "Mix-in inheritance, an alternative to multiple inheritance",
"author" : [
"Michael G Schwern E<lt>[email protected]<gt>"
],
"dynamic_config" : 1,
"generated_by" : "Module::Build version 0.4214",
"keywords" : [
"mixin",
"inheritance",
"devel"
],
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : "2"
},
"name" : "mixin",
"prereqs" : {
"build" : {
"requires" : {
"Test::More" : "0.4",
"Test::NoWarnings" : "0"
}
},
"configure" : {
"requires" : {
"Module::Build" : "0.36"
}
},
"runtime" : {
"requires" : {
"base" : "0"
}
}
},
"provides" : {
"mixin" : {
"file" : "lib/mixin.pm",
"version" : "0.08"
},
"mixin::with" : {
"file" : "lib/mixin/with.pm",
"version" : "0.07"
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/evalEmpire/mixin/issues"
},
"homepage" : "https://github.com/evalEmpire/mixin",
"license" : [
"http://dev.perl.org/licenses/"
],
"repository" : {
"url" : "https://github.com/evalEmpire/mixin"
}
},
"version" : "0.08",
"x_serialization_backend" : "JSON::PP version 2.27203"
}
26 changes: 14 additions & 12 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,34 @@ abstract: 'Mix-in inheritance, an alternative to multiple inheritance'
author:
- 'Michael G Schwern E<lt>[email protected]<gt>'
build_requires:
Test::More: 0.4
Test::NoWarnings: 0
Test::More: '0.4'
Test::NoWarnings: '0'
configure_requires:
Module::Build: 0.36
generated_by: 'Module::Build version 0.3601'
Module::Build: '0.36'
dynamic_config: 1
generated_by: 'Module::Build version 0.4214, CPAN::Meta::Converter version 2.150005'
keywords:
- mixin
- inheritance
- devel
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
version: '1.4'
name: mixin
provides:
mixin:
file: lib/mixin.pm
version: 0.07
version: '0.08'
mixin::with:
file: lib/mixin/with.pm
version: 0.07
version: '0.07'
requires:
base: 0
base: '0'
resources:
bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=mixin
homepage: http://search.cpan.org/dist/mixin
bugtracker: https://github.com/evalEmpire/mixin/issues
homepage: https://github.com/evalEmpire/mixin
license: http://dev.perl.org/licenses/
repository: http://github.com/schwern/mixin
version: 0.07
repository: https://github.com/evalEmpire/mixin
version: '0.08'
x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
18 changes: 11 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ SYNOPSIS
$small_retriever->fetch('ball'); # Get your own stinking ball

DESCRIPTION
NOTE You probably want to look into the similar but superior concept of
traits/roles instead. See "SEE ALSO" for suggested modules.

Mixin inheritance is an alternative to the usual multiple-inheritance
and solves the problem of knowing which parent will be called. It also
solves a number of tricky problems like diamond inheritence.
Expand Down Expand Up @@ -56,7 +59,7 @@ DESCRIPTION

Mixins, Inheritance and SUPER
A class which uses a mixin *does not* inherit from it. However, through
some clever trickery, `SUPER' continues to work. Here's an example.
some clever trickery, "SUPER" continues to work. Here's an example.

{
package Parent;
Expand Down Expand Up @@ -86,7 +89,7 @@ DESCRIPTION

print join " ", Child->foo; # Parent Middle Child

This will print `Parent Middle Child'. You'll note that this is the same
This will print "Parent Middle Child". You'll note that this is the same
result if Child inherited from Middle and Middle from Parent. Its also
the same result if Child multiply inherited from Middle and Parent but
*NOT* if it inherited from Parent then Middle. The advantage of mixins
Expand All @@ -103,17 +106,18 @@ AUTHOR
Michael G Schwern <[email protected]>

LICENSE
Copyright 2002-2010 by Michael G Schwern
Copyright 2002-2015 by Michael G Schwern

This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

http://dev.perl.org/licenses/
<http://dev.perl.org/licenses/>

SEE ALSO
Class::Trait - mixin.pm is a gateway drug to traits

Class::C3 - another band-aid on multiple inheritance
Role::Tiny - A stand alone implementation of traits/roles, like mixins
but better.

Moose::Role - Moose's implementation of traits/roles.

mro and Class::C3 make multiple inheritance work more sensibly.

4 changes: 2 additions & 2 deletions lib/mixin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
no strict 'refs';
use vars qw($VERSION);
$VERSION = '0.07';
$VERSION = '0.08';


=head1 NAME
Expand Down Expand Up @@ -207,7 +207,7 @@ Michael G Schwern E<lt>[email protected]<gt>
=head1 LICENSE
Copyright 2002-2010 by Michael G Schwern
Copyright 2002-2015 by Michael G Schwern
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Expand Down

0 comments on commit 4233d43

Please sign in to comment.