Commit 7d42cef1 authored by Damyan Ivanov's avatar Damyan Ivanov

New upstream version 1.14

parent 4e33758f
README.PATCHING
Thank you for considering contributing to this distribution. This file
contains instructions that will help you work with the source code.
The distribution is managed with Dist::Zilla. This means than many of the
usual files you might expect are not in the repository, but are generated
at release time (e.g. Makefile.PL).
However, you can run tests directly using the 'prove' tool:
$ prove -l
$ prove -lv t/some_test_file.t
For most distributions, 'prove' is entirely sufficent for you to test any
patches you have.
You may need to satisfy some dependencies. See the included META.json
file for a list. If you install App::mymeta_requires from CPAN, it's easy
to satisfy any that you are missing by piping the output to your favorite
CPAN client:
$ mymeta-requires | cpanm
$ cpan `mymeta-requires`
Likewise, much of the documentation Pod is generated at release time.
Depending on the distribution, some documentation may be written in a Pod
dialect called WikiDoc. (See Pod::WikiDoc on CPAN.) If you would like to
submit a documentation edit, please limit yourself to the documentation you
see.
If you see typos or documentation issues in the generated docs, please
email or open a bug ticket instead of patching.
Dist::Zilla is a very powerful authoring tool, but requires a number of
author-specific plugins. If you would like to use it for contributing,
install it from CPAN, then run one of the following commands, depending on
your CPAN client:
$ cpan `dzil authordeps`
$ dzil authordeps | cpanm
Once installed, here are some dzil commands you might try:
$ dzil build
$ dzil test
$ dzil xtest
You can learn more about Dist::Zilla at http://dzil.org/
## HOW TO CONTRIBUTE
Thank you for considering contributing to this distribution. This file
contains instructions that will help you work with the source code.
The distribution is managed with Dist::Zilla. This means that many of the
usual files you might expect are not in the repository, but are generated at
release time, as is much of the documentation. Some generated files are
kept in the repository as a convenience (e.g. Makefile.PL or cpanfile).
Generally, **you do not need Dist::Zilla to contribute patches**. You do need
Dist::Zilla to create a tarball. See below for guidance.
### Getting dependencies
If you have App::cpanminus 1.6 or later installed, you can use `cpanm` to
satisfy dependencies like this:
$ cpanm --installdeps .
Otherwise, look for either a `Makefile.PL` or `cpanfile` file for
a list of dependencies to satisfy.
### Running tests
You can run tests directly using the `prove` tool:
$ prove -l
$ prove -lv t/some_test_file.t
For most of my distributions, `prove` is entirely sufficient for you to test any
patches you have. I use `prove` for 99% of my testing during development.
### Code style and tidying
Please try to match any existing coding style. If there is a `.perltidyrc`
file, please install Perl::Tidy and use perltidy before submitting patches.
If there is a `tidyall.ini` file, you can also install Code::TidyAll and run
`tidyall` on a file or `tidyall -a` to tidy all files.
### Patching documentation
Much of the documentation Pod is generated at release time. Some is
generated boilerplate; other documentation is built from pseudo-POD
directives in the source like C<=method> or C<=func>.
If you would like to submit a documentation edit, please limit yourself to
the documentation you see.
If you see typos or documentation issues in the generated docs, please
email or open a bug ticket instead of patching.
### Where to send patches and pull requests
If you found this distribution on Github, sending a pull-request is the
best way to contribute.
If a pull-request isn't possible, a bug ticket with a patch file is the
next best option.
As a last resort, an email to the author(s) is acceptable.
## Installing and using Dist::Zilla
Dist::Zilla is not required for contributing, but if you'd like to learn
more, this section will get you up to speed.
Dist::Zilla is a very powerful authoring tool, optimized for maintaining a
large number of distributions with a high degree of automation, but it has a
large dependency chain, a bit of a learning curve and requires a number of
author-specific plugins.
To install it from CPAN, I recommend one of the following approaches for
the quickest installation:
# using CPAN.pm, but bypassing non-functional pod tests
$ cpan TAP::Harness::Restricted
$ PERL_MM_USE_DEFAULT=1 HARNESS_CLASS=TAP::Harness::Restricted cpan Dist::Zilla
# using cpanm, bypassing *all* tests
$ cpanm -n Dist::Zilla
In either case, it's probably going to take about 10 minutes. Go for a walk,
go get a cup of your favorite beverage, take a bathroom break, or whatever.
When you get back, Dist::Zilla should be ready for you.
Then you need to install any plugins specific to this distribution:
$ cpan `dzil authordeps`
$ dzil authordeps | cpanm
Once installed, here are some dzil commands you might try:
$ dzil build
$ dzil test
$ dzil xtest
You can learn more about Dist::Zilla at http://dzil.org/
Revision history for Perl module Class::InsideOut
1.14 2017-04-02 13:52:18-04:00 America/New_York
Fixed:
- Passes tests when '.' is not in @INC.
1.13 2013-04-25 13:59:42 America/New_York
Added:
......
CONTRIBUTING
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.009.
CONTRIBUTING.mkdn
Changes
LICENSE
MANIFEST
......@@ -7,13 +8,14 @@ META.yml
Makefile.PL
README
Todo
cpanfile
dist.ini
examples/README
lib/Class/InsideOut.pm
lib/Class/InsideOut/Manual/About.pod
lib/Class/InsideOut/Manual/Advanced.pod
perlcritic.rc
t/00-compile.t
t/00-report-prereqs.dd
t/00-report-prereqs.t
t/01_load.t
t/02_register.t
......@@ -64,11 +66,12 @@ t/Object/Trivial.pm
t/Object/WithNew.pm
t/Object/WithNew/Inherited.pm
t/data/testdata.txt
xt/author/00-compile.t
xt/author/critic.t
xt/author/pod-coverage.t
xt/author/pod-spell.t
xt/author/pod-syntax.t
xt/author/portability.t
xt/author/test-version.t
xt/release/distmeta.t
xt/release/minimum-version.t
xt/release/pod-coverage.t
xt/release/pod-syntax.t
xt/release/portability.t
xt/release/test-version.t
......@@ -4,21 +4,21 @@
"David Golden <dagolden@cpan.org>"
],
"dynamic_config" : 0,
"generated_by" : "Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.130880",
"generated_by" : "Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010",
"license" : [
"apache_2_0"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : "2"
"version" : 2
},
"name" : "Class-InsideOut",
"no_index" : {
"directory" : [
"t",
"xt",
"corpus",
"examples",
"corpus"
"t",
"xt"
],
"package" : [
"DB"
......@@ -27,15 +27,35 @@
"prereqs" : {
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "6.30"
"ExtUtils::MakeMaker" : "6.17",
"perl" : "5.006"
}
},
"develop" : {
"requires" : {
"Dist::Zilla" : "5",
"Dist::Zilla::Plugin::ReleaseStatus::FromVersion" : "0",
"Dist::Zilla::Plugin::RemovePrereqs" : "0",
"Dist::Zilla::PluginBundle::DAGOLDEN" : "0.072",
"English" : "0",
"File::Spec" : "0",
"File::Temp" : "0",
"IO::Handle" : "0",
"IPC::Open3" : "0",
"Pod::Coverage::TrustPod" : "0",
"Pod::Wordlist" : "0",
"Software::License::Apache_2_0" : "0",
"Test::CPAN::Meta" : "0",
"Test::MinimumVersion" : "0",
"Test::More" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08"
"Test::Pod::Coverage" : "1.08",
"Test::Portability::Files" : "0",
"Test::Spelling" : "0.12",
"Test::Version" : "1",
"blib" : "1.01",
"perl" : "5.006",
"warnings" : "0"
}
},
"runtime" : {
......@@ -52,18 +72,18 @@
}
},
"test" : {
"recommends" : {
"CPAN::Meta" : "2.120900"
},
"requires" : {
"Config" : "0",
"DynaLoader" : "0",
"ExtUtils::MakeMaker" : "0",
"File::Find" : "0",
"File::Spec" : "0",
"File::Spec::Functions" : "0",
"File::Temp" : "0",
"IO::File" : "0",
"List::Util" : "0",
"Test::More" : "0.45",
"XSLoader" : "0",
"lib" : "0",
"perl" : "5.008",
"threads" : "0",
"warnings" : "0"
}
......@@ -72,7 +92,7 @@
"provides" : {
"Class::InsideOut" : {
"file" : "lib/Class/InsideOut.pm",
"version" : "1.13"
"version" : "1.14"
}
},
"release_status" : "stable",
......@@ -80,17 +100,19 @@
"bugtracker" : {
"web" : "https://github.com/dagolden/class-insideout/issues"
},
"homepage" : "https://metacpan.org/release/Class-InsideOut",
"homepage" : "https://github.com/dagolden/class-insideout",
"repository" : {
"type" : "git",
"url" : "git://github.com/dagolden/class-insideout.git",
"url" : "https://github.com/dagolden/class-insideout.git",
"web" : "https://github.com/dagolden/class-insideout"
}
},
"version" : "1.13",
"version" : "1.14",
"x_authority" : "cpan:DAGOLDEN",
"x_contributors" : [
"Karen Etheridge <ether@cpan.org>",
"Toby Inkster <tonyink@cpan.org>"
]
],
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0225"
}
......@@ -3,55 +3,55 @@ abstract: 'a safe, simple inside-out object construction kit'
author:
- 'David Golden <dagolden@cpan.org>'
build_requires:
Config: 0
DynaLoader: 0
ExtUtils::MakeMaker: 0
File::Find: 0
File::Spec: 0
File::Spec::Functions: 0
File::Temp: 0
IO::File: 0
List::Util: 0
Test::More: 0.45
XSLoader: 0
threads: 0
warnings: 0
DynaLoader: '0'
ExtUtils::MakeMaker: '0'
File::Spec: '0'
IO::File: '0'
Test::More: '0.45'
XSLoader: '0'
lib: '0'
perl: '5.008'
threads: '0'
warnings: '0'
configure_requires:
ExtUtils::MakeMaker: 6.30
ExtUtils::MakeMaker: '6.17'
perl: '5.006'
dynamic_config: 0
generated_by: 'Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.130880'
generated_by: 'Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010'
license: apache
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
version: '1.4'
name: Class-InsideOut
no_index:
directory:
- corpus
- examples
- t
- xt
- examples
- corpus
package:
- DB
provides:
Class::InsideOut:
file: lib/Class/InsideOut.pm
version: 1.13
version: '1.14'
requires:
Carp: 0
Class::ISA: 0
Exporter: 0
Scalar::Util: 1.09
Storable: 0
overload: 0
perl: 5.008
strict: 0
vars: 0
Carp: '0'
Class::ISA: '0'
Exporter: '0'
Scalar::Util: '1.09'
Storable: '0'
overload: '0'
perl: '5.008'
strict: '0'
vars: '0'
resources:
bugtracker: https://github.com/dagolden/class-insideout/issues
homepage: https://metacpan.org/release/Class-InsideOut
repository: git://github.com/dagolden/class-insideout.git
version: 1.13
homepage: https://github.com/dagolden/class-insideout
repository: https://github.com/dagolden/class-insideout.git
version: '1.14'
x_authority: cpan:DAGOLDEN
x_contributors:
- 'Karen Etheridge <ether@cpan.org>'
- 'Toby Inkster <tonyink@cpan.org>'
x_serialization_backend: 'YAML::Tiny version 1.69'
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.009.
use strict;
use warnings;
use 5.008;
use ExtUtils::MakeMaker 6.30;
use ExtUtils::MakeMaker 6.17;
my %WriteMakefileArgs = (
"ABSTRACT" => "a safe, simple inside-out object construction kit",
"AUTHOR" => "David Golden <dagolden\@cpan.org>",
"BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
"ExtUtils::MakeMaker" => "6.17"
},
"DISTNAME" => "Class-InsideOut",
"EXE_FILES" => [],
"LICENSE" => "apache",
"MIN_PERL_VERSION" => "5.008",
"NAME" => "Class::InsideOut",
"PREREQ_PM" => {
"Carp" => 0,
......@@ -30,57 +27,51 @@ my %WriteMakefileArgs = (
"vars" => 0
},
"TEST_REQUIRES" => {
"Config" => 0,
"DynaLoader" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Find" => 0,
"File::Spec" => 0,
"File::Spec::Functions" => 0,
"File::Temp" => 0,
"IO::File" => 0,
"List::Util" => 0,
"Test::More" => "0.45",
"XSLoader" => 0,
"lib" => 0,
"threads" => 0,
"warnings" => 0
},
"VERSION" => "1.13",
"VERSION" => "1.14",
"test" => {
"TESTS" => "t/*.t"
}
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
my $br = $WriteMakefileArgs{BUILD_REQUIRES};
for my $mod ( keys %$tr ) {
if ( exists $br->{$mod} ) {
$br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
}
else {
$br->{$mod} = $tr->{$mod};
}
}
}
my %FallbackPrereqs = (
"Carp" => 0,
"Class::ISA" => 0,
"DynaLoader" => 0,
"Exporter" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"IO::File" => 0,
"Scalar::Util" => "1.09",
"Storable" => 0,
"Test::More" => "0.45",
"XSLoader" => 0,
"lib" => 0,
"overload" => 0,
"strict" => 0,
"threads" => 0,
"vars" => 0,
"warnings" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
for my $mod ( keys %$br ) {
if ( exists $pp->{$mod} ) {
$pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
}
else {
$pp->{$mod} = $br->{$mod};
}
}
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
......@@ -2,7 +2,7 @@ NAME
Class::InsideOut - a safe, simple inside-out object construction kit
VERSION
version 1.13
version 1.14
SYNOPSIS
package My::Class;
......@@ -389,7 +389,7 @@ SUPPORT
<https://github.com/dagolden/class-insideout>
git clone git://github.com/dagolden/class-insideout.git
git clone https://github.com/dagolden/class-insideout.git
AUTHOR
David Golden <dagolden@cpan.org>
......
requires "Carp" => "0";
requires "Class::ISA" => "0";
requires "Exporter" => "0";
requires "Scalar::Util" => "1.09";
requires "Storable" => "0";
requires "overload" => "0";
requires "perl" => "5.008";
requires "strict" => "0";
requires "vars" => "0";
on 'test' => sub {
requires "DynaLoader" => "0";
requires "ExtUtils::MakeMaker" => "0";
requires "File::Spec" => "0";
requires "IO::File" => "0";
requires "Test::More" => "0.45";
requires "XSLoader" => "0";
requires "lib" => "0";
requires "perl" => "5.008";
requires "threads" => "0";
requires "warnings" => "0";
};
on 'test' => sub {
recommends "CPAN::Meta" => "2.120900";
};
on 'configure' => sub {
requires "ExtUtils::MakeMaker" => "6.17";
requires "perl" => "5.006";
};
on 'develop' => sub {
requires "Dist::Zilla" => "5";
requires "Dist::Zilla::Plugin::ReleaseStatus::FromVersion" => "0";
requires "Dist::Zilla::Plugin::RemovePrereqs" => "0";
requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.072";
requires "English" => "0";
requires "File::Spec" => "0";
requires "File::Temp" => "0";
requires "IO::Handle" => "0";
requires "IPC::Open3" => "0";
requires "Pod::Coverage::TrustPod" => "0";
requires "Pod::Wordlist" => "0";
requires "Software::License::Apache_2_0" => "0";
requires "Test::CPAN::Meta" => "0";
requires "Test::MinimumVersion" => "0";
requires "Test::More" => "0";
requires "Test::Pod" => "1.41";
requires "Test::Pod::Coverage" => "1.08";
requires "Test::Portability::Files" => "0";
requires "Test::Spelling" => "0.12";
requires "Test::Version" => "1";
requires "blib" => "1.01";
requires "perl" => "5.006";
requires "warnings" => "0";
};
......@@ -5,9 +5,7 @@ copyright_holder = David A. Golden
copyright_year = 2006
[@DAGOLDEN]
:version = 0.038
AutoMetaResources.bugtracker.rt = 0
AutoMetaResources.bugtracker.github = user:dagolden
:version = 0.072
stopwords = Etheridge
stopwords = Inkster
stopwords = Perlmonks
......@@ -24,5 +22,8 @@ stopwords = readonly
stopwords = rethrown
stopwords = xdg
[ReleaseStatus::FromVersion]
testing = second_decimal_odd
[RemovePrereqs]
remove = Types::Standard
package Class::InsideOut;
use strict;
# ABSTRACT: a safe, simple inside-out object construction kit
our $VERSION = '1.13'; # VERSION
our $VERSION = '1.14';
use vars qw/@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS/;
......@@ -560,7 +561,7 @@ __END__
=pod
=encoding utf-8
=encoding UTF-8
=head1 NAME
......@@ -568,7 +569,7 @@ Class::InsideOut - a safe, simple inside-out object construction kit
=head1 VERSION
version 1.13
version 1.14
=head1 SYNOPSIS
......@@ -1018,7 +1019,7 @@ public review and contribution under the terms of the license.
L<https://github.com/dagolden/class-insideout>
git clone git://github.com/dagolden/class-insideout.git
git clone https://github.com/dagolden/class-insideout.git
=head1 AUTHOR
......@@ -1026,6 +1027,8 @@ David Golden <dagolden@cpan.org>
=head1 CONTRIBUTORS
=for stopwords Karen Etheridge Toby Inkster
=over 4
=item *
......
......@@ -5,7 +5,7 @@ __END__
=pod
=encoding utf-8
=encoding UTF-8
=head1 NAME
......@@ -13,7 +13,7 @@ Class::InsideOut::Manual::About - guide to this and other implementations of the
=head1 VERSION
version 1.13
version 1.14
=head1 DESCRIPTION
......@@ -213,20 +213,6 @@ L<Class::InsideOut::Manual::Advanced>
David Golden <dagolden@cpan.org>
=head1 CONTRIBUTORS
=over 4
=item *
Karen Etheridge <ether@cpan.org>
=item *
Toby Inkster <tonyink@cpan.org>
=back
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2006 by David A. Golden.
......
......@@ -5,7 +5,7 @@ __END__
=pod
=encoding utf-8
=encoding UTF-8
=head1 NAME
......@@ -13,7 +13,7 @@ Class::InsideOut::Manual::Advanced - guide to advanced usage
=head1 VERSION
version 1.13
version 1.14
=head1 DESCRIPTION
......@@ -235,20 +235,6 @@ L<Class::InsideOut::Manual::About>
David Golden <dagolden@cpan.org>
=head1 CONTRIBUTORS
=over 4
=item *
Karen Etheridge <ether@cpan.org>
=item *
Toby Inkster <tonyink@cpan.org>
=back
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2006 by David A. Golden.
......
......@@ -7,6 +7,9 @@ allow = $@ $!
[TestingAndDebugging::ProhibitNoStrict]
allow = refs
[Variables::ProhibitEvilVariables]
variables = $DB::single
# Turn these off
[-BuiltinFunctions::ProhibitStringyEval]
[-ControlStructures::ProhibitPostfixControls]
......
#!perl
use strict;
use warnings;
use Test::More;
use File::Find;