Browse files

Update generated files

  • Loading branch information...
1 parent 773602a commit d8c165a00a9014c972bef91dee227725e8c6e6a9 @autarch committed May 18, 2016
Showing with 261 additions and 16 deletions.
  1. +1 −0 .mailmap
  2. +131 −0 CONTRIBUTING.md
  3. +1 −1 LICENSE
  4. +87 −0 README.md
  5. +10 −5 cpanfile
  6. +9 −0 perlcriticrc
  7. +22 −10 tidyall.ini
View
1 .mailmap
@@ -0,0 +1 @@
+Dave Rolsky <autarch@urth.org> <devnull@localhost>
View
131 CONTRIBUTING.md
@@ -0,0 +1,131 @@
+# CONTRIBUTING
+
+Thank you for considering contributing to this distribution. This file
+contains instructions that will help you work with the source code.
+
+Please note that if you have any questions or difficulties, you can reach the
+maintainer(s) through the bug queue described later in this document
+(preferred), or by emailing the releaser directly. You are not required to
+follow any of the steps in this document to submit a patch or bug report;
+these are just recommendations, intended to help you (and help us help you
+faster).
+
+
+The distribution is managed with
+[Dist::Zilla](https://metacpan.org/release/Dist-Zilla).
+
+However, you can still compile and test the code with the `Makefile.PL` or
+`Build.PL` in the repository:
+
+ perl Makefile.PL
+ make
+ make test
+
+or
+ perl Build.PL
+ ./Build
+ ./Build test
+
+As well as:
+
+ $ prove -bvr t
+
+or
+
+ $ perl -Mblib t/some_test_file.t
+
+You may need to satisfy some dependencies. The easiest way to satisfy
+dependencies is to install the last release. This is available at
+https://metacpan.org/release/Database-Migrator-Pg
+
+If you use cpanminus, you can do it without downloading the tarball first:
+
+ $ cpanm --reinstall --installdeps --with-recommends Database::Migrator::Pg
+
+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 --missing`
+
+or
+
+ $ dzil authordeps --missing | cpanm
+
+They may also be additional requirements not needed by the dzil build which
+are needed for tests or other development:
+
+ $ cpan `dzil listdeps --author --missing`
+
+or
+
+ $ dzil listdeps --author --missing | cpanm
+
+Or, you can use the 'dzil stale' command to install all requirements at once:
+
+ $ cpan Dist::Zilla::App::Command::stale
+ $ cpan `dzil stale --all`
+
+or
+
+ $ cpanm Dist::Zilla::App::Command::stale
+ $ dzil stale --all | cpanm
+
+You can also do this via cpanm directly:
+
+ $ cpanm --reinstall --installdeps --with-develop --with-recommends Database::Migrator::Pg
+
+Once installed, here are some dzil commands you might try:
+
+ $ dzil build
+ $ dzil test
+ $ dzil test --release
+ $ dzil xtest
+ $ dzil listdeps --json
+ $ dzil build --notgz
+
+You can learn more about Dist::Zilla at http://dzil.org/.
+
+The code for this distribution is [hosted at GitHub](https://github.com/autarch/Database-Migrator-Pg).
+
+You can submit code changes by forking the repository, pushing your code
+changes to your clone, and then submitting a pull request. Detailed
+instructions for doing that is available here:
+
+https://help.github.com/articles/creating-a-pull-request
+
+If you have found a bug, but do not have an accompanying patch to fix it, you
+can submit an issue report [via the web](http://rt.cpan.org/Public/Dist/Display.html?Name=Database-Migrator-Pg)
+or [via email](bug-database-migrator-pg@rt.cpan.org.
+This is a good place to send your questions about the usage of this distribution.
+
+## Travis
+
+All pull requests for this distribution will be automatically tested by
+[Travis](https://travis-ci.org/) and the build status will be reported on the
+pull request page. If your build fails, please take a look at the output.
+
+## Tidyall
+
+This distribution uses
+[Code::TidyAll](https://metacpan.org/release/Code-TidyAll) to enforce a
+uniform coding style. This is tested as part of the author testing suite. You
+can install and run tidyall by running the following commands:
+
+ $ cpanm Code::TidyAll
+ $ tidyall -a
+
+Please run this before committing your changes and address any issues it
+brings up.
+
+## Contributor Names
+
+If you send me a patch or pull request, your name and email address will be
+included in the documentation as a contributor (using the attribution on the
+commit or patch), unless you specifically request for it not to be. If you
+wish to be listed under a different name or address, you should submit a pull
+request to the .mailmap file to contain the correct mapping.
+
+This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.009 from a
+template file originating in Dist-Zilla-PluginBundle-DROLSKY-0.53.
View
2 LICENSE
@@ -1,4 +1,4 @@
-This software is Copyright (c) 2015 by MaxMind, Inc..
+This software is Copyright (c) 2016 by MaxMind, Inc.
This is free software, licensed under:
View
87 README.md
@@ -0,0 +1,87 @@
+# NAME
+
+Database::Migrator::Pg - Database::Migrator implementation for Postgres
+
+# VERSION
+
+version 0.06
+
+# SYNOPSIS
+
+ package MyApp::Migrator;
+
+ use Moose;
+
+ extends 'Database::Migrator::Pg';
+
+ has '+database' => (
+ required => 0,
+ default => 'MyApp',
+ );
+
+# DESCRIPTION
+
+This module provides a [Database::Migrator](https://metacpan.org/pod/Database::Migrator) implementation for Postgres. See
+[Database::Migrator](https://metacpan.org/pod/Database::Migrator) and [Database::Migrator::Core](https://metacpan.org/pod/Database::Migrator::Core) for more documentation.
+
+# ATTRIBUTES
+
+This class adds several attributes in addition to those implemented by
+[Database::Migrator::Core](https://metacpan.org/pod/Database::Migrator::Core). All of these attributes are optional.
+
+- encoding
+
+ The encoding of the database. This is only used when creating a new
+ database.
+
+- locale
+
+ The locale of the database. This is only used when creating a new
+ database.
+
+- lc\_collate
+
+ The LC\_COLLATE setting for the database. This is only used when creating a new
+ database.
+
+- lc\_ctype
+
+ The LC\_CTYPE setting for the database. This is only used when creating a new
+ database.
+
+- owner
+
+ The owner of the database. This is only used when creating a new
+ database.
+
+- tablespace
+
+ The tablespace for the database. This is only used when creating a new
+ database.
+
+- template
+
+ The template for the database. This is only used when creating a new database.
+
+# SUPPORT
+
+Please submit bugs to the CPAN RT system at
+http://rt.cpan.org/NoAuth/Bugs.html?Dist=Database-Migrator-Pg or via email at
+bug-database-migrator-pg@rt.cpan.org.
+
+Bugs may be submitted through [the RT bug tracker](http://rt.cpan.org/Public/Dist/Display.html?Name=Database-Migrator-Pg)
+(or [bug-database-migrator-pg@rt.cpan.org](mailto:bug-database-migrator-pg@rt.cpan.org)).
+
+I am also usually active on IRC as 'drolsky' on `irc://irc.perl.org`.
+
+# AUTHOR
+
+Dave Rolsky &lt;autarch@urth.org>
+
+# COPYRIGHT AND LICENCE
+
+This software is Copyright (c) 2016 by MaxMind, Inc.
+
+This is free software, licensed under:
+
+ The Artistic License 2.0 (GPL Compatible)
View
15 cpanfile
@@ -1,7 +1,6 @@
requires "Database::Migrator" => "0.07";
requires "Database::Migrator::Core" => "0";
requires "Database::Migrator::Types" => "0";
-requires "File::Slurp" => "0";
requires "Moose" => "0";
requires "Pg::CLI" => "0.11";
requires "Pg::CLI::createdb" => "0";
@@ -26,18 +25,22 @@ on 'configure' => sub {
};
on 'develop' => sub {
- requires "Code::TidyAll" => "0.24";
requires "DBD::Pg" => "v3.0.0";
requires "File::Spec" => "0";
requires "IO::Handle" => "0";
requires "IPC::Open3" => "0";
- requires "Perl::Critic" => "1.123";
- requires "Perl::Tidy" => "20140711";
+ requires "Perl::Critic" => "1.126";
+ requires "Perl::Tidy" => "20160302";
requires "Pod::Coverage::TrustPod" => "0";
+ requires "Pod::Wordlist" => "0";
requires "Test::CPAN::Changes" => "0.19";
+ requires "Test::CPAN::Meta::JSON" => "0.16";
+ requires "Test::CleanNamespaces" => "0.15";
requires "Test::Code::TidyAll" => "0.24";
+ requires "Test::Database::Migrator" => "0";
requires "Test::EOL" => "0";
- requires "Test::More" => "0.88";
+ requires "Test::Mojibake" => "0";
+ requires "Test::More" => "0.96";
requires "Test::NoTabs" => "0";
requires "Test::Pod" => "1.41";
requires "Test::Pod::Coverage" => "1.08";
@@ -46,4 +49,6 @@ on 'develop' => sub {
requires "Test::Spelling" => "0.12";
requires "Test::Synopsis" => "0";
requires "Test::Version" => "1";
+ requires "blib" => "1.01";
+ requires "perl" => "5.006";
};
View
9 perlcriticrc
@@ -1,6 +1,7 @@
severity = 3
verbose = 11
theme = core + pbp + bugs + maintenance + cosmetic + complexity + security + tests + moose
+program-extensions = pl psgi t
exclude = Subroutines::ProhibitCallsToUndeclaredSubs
@@ -44,6 +45,9 @@ add_packages = Carp Test::Builder
[-Subroutines::RequireFinalReturn]
+# This incorrectly thinks signatures are prototypes.
+[-Subroutines::ProhibitSubroutinePrototypes]
+
[-ErrorHandling::RequireCarping]
# No need for /xsm everywhere
@@ -56,3 +60,8 @@ add_packages = Carp Test::Builder
# "use v5.14" is more readable than "use 5.014"
[-ValuesAndExpressions::ProhibitVersionStrings]
+
+# Explicitly returning undef is a _good_ thing in many cases, since it
+# prevents very common errors when using a sub in list context to construct a
+# hash and ending up with a missing value or key.
+[-Subroutines::ProhibitExplicitReturnUndef]
View
32 tidyall.ini
@@ -1,19 +1,31 @@
-[PerlTidy]
+[PerlCritic]
select = **/*.{pl,pm,t,psgi}
+ignore = .build/**/*
+ignore = Database-Migrator-Pg-*/**/*
+ignore = blib/**/*
ignore = t/00-*
ignore = t/author-*
ignore = t/release-*
-ignore = blib/**/*
-ignore = .build/**/*
-ignore = Database-Migrator-Pg-*/**/*
-argv = --profile=$ROOT/perltidyrc
+ignore = xt/**/*
+argv = --profile=$ROOT/perlcriticrc
-[PerlCritic]
+[PerlCritic non-auto-generated xt]
+select = xt/author/create-options.t
+select = xt/author/live-test.t
+argv = --profile=$ROOT/perlcriticrc
+
+[PerlTidy]
select = **/*.{pl,pm,t,psgi}
+ignore = .build/**/*
+ignore = Database-Migrator-Pg-*/**/*
+ignore = blib/**/*
ignore = t/00-*
ignore = t/author-*
ignore = t/release-*
-ignore = blib/**/*
-ignore = .build/**/*
-ignore = Database-Migrator-Pg-*/**/*
-argv = --profile $ROOT/perlcriticrc --program-extensions .pl --program-extensions .t --program-extensions .psgi
+ignore = xt/**/*
+argv = --profile=$ROOT/perltidyrc
+
+[PerlTidy non-auto-generated xt]
+select = xt/author/create-options.t
+select = xt/author/live-test.t
+argv = --profile=$ROOT/perltidyrc

0 comments on commit d8c165a

Please sign in to comment.