Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switching to ShipIt to do releases

    - Dist::Zilla was taking more time to setup than I spent writing the
      module
  • Loading branch information...
commit acb2c3c7b42e7d4e00015f6c59e78ca1eb461144 1 parent aa2c8ad
@mvgrimes authored
View
4 .gitignore
@@ -1,4 +1,5 @@
.build/
+_build/
.*.swp
tags
errors.err
@@ -7,3 +8,6 @@ errors.err
.DS_Store
.cache
Log-Any-*
+Build
+MYMETA.json
+MYMETA.yml
View
10 .shipit
@@ -0,0 +1,10 @@
+# auto-generated shipit config file.
+steps = FindVersion, ChangeVersion, CheckChangeLog, Manifest, DistTest, Commit, Tag, MakeDist, DistClean,
+#UploadCPAN
+
+# svn.tagpattern = MyProj-%v
+# svn.tagpattern = http://code.example.com/svn/tags/MyProj-%v
+
+# CheckChangeLog.files = ChangeLog, MyProj.CHANGES
+
+# git.push_to = origin
View
29 Build.PL
@@ -0,0 +1,29 @@
+use Module::Build;
+
+my $build = Module::Build->new(
+ module_name => 'Log::Any::Adapter::Catalyst',
+ license => 'perl',
+ create_readme => 1,
+ requires => {
+ 'perl' => '5.008',
+ 'Log::Any::Adapter' => 0,
+ 'Carp' => 0,
+ },
+ build_requires => {
+ 'Test::More' => 0.87,
+ 'File::Basename' => 0,
+ 'File::Spec' => 0,
+ },
+ configure_requires => { 'Module::Build' => '0.36', },
+
+ meta_merge => {
+ resources => {
+ bugtracker =>
+ 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Log-Any-Adapter-Catalyst',
+ repository => 'http://github.com/mvgrimes/log-any-catalyst'
+ }
+ },
+);
+
+$build->create_build_script;
+
View
146 dist.ini
@@ -1,146 +0,0 @@
-name = Log-Any-Adapter-Catalyst
-author = Mark Grimes <mgrimes@cpan.org>
-license = Perl_5
-copyright_holder = Mark Grimes <mgrimes@cpan.org>
-
-; version provider
-[Git::NextVersion] ; get version from last release tag
-version_regexp = ^release-(.+)$
-first_version = 0.10
-
-; choose files to include
-[GatherDir] ; everything under top dir
-[PruneCruft] ; default stuff to skip
-[ManifestSkip] ; if -f MANIFEST.SKIP, skip those, too
-
-; file modifications
-[OurPkgVersion] ; add our $VERSION = where # VERSION is found
-[Prepender] ; prepend a copyright statement to all files
-; [PodWeaver] ; generate Pod
-
-; generated files
-[License] ; boilerplate license
-[ReadmeFromPod] ; from Pod (runs after PodWeaver)
-[ChangelogFromGit] ; Adds entry to Changes
-; [Changes::Git] ; My Adds entry to Changes
-
-; t tests
-[CompileTests] ; make sure .pm files all compile
-fake_home = 1 ; fakes $ENV{HOME} just in case
-
-; xt tests
-[MetaTests] ; xt/release/meta-yaml.t
-[PodSyntaxTests] ; xt/release/pod-syntax.t
-; [PodSpellingTests]
-[PodCoverageTests] ; xt/release/pod-coverage.t
-[PortabilityTests] ; xt/release/portability.t (of file name)
-[KwaliteeTests] ; checks everything including local::lib in ./local
-[CriticTests] ; strictures is broken by dzil PackageVerson
-
-; metadata
-[AutoPrereqs] ; find prereqs from code
-[Authority]
-authority = 'cpan:MGRIMES'
-do_metadata = 1
-[MinimumPerl] ; determine minimum perl version
-
-[Repository] ; set 'repository' in META
-git_remote = origin ; - remote to choose
-github_http = 0 ; - for github, use git:// not http://
-
-; overrides [Repository] if repository is on github
-[GithubMeta]
-remote = origin ; better than [Repository]; sets homepage, too
-
-[MetaNoIndex] ; sets 'no_index' in META
-directory = t
-directory = xt
-directory = examples
-directory = corpus
-package = DB ; just in case
-
-[Bugtracker] ; defaults to RT
-
-[MetaProvides::Package] ; add 'provides' to META files
-meta_noindex = 1 ; respect prior no_index directives
-
-[MetaYAML] ; generate META.yml (v1.4)
-[MetaJSON] ; generate META.json (v2)
-
-; build system
-[ExecDir] ; include 'bin/*' as executables
-[ShareDir] ; include 'share/' for File::ShareDir
-; [MakeMaker] ; create Makefile.PL
-[ModuleBuild] ; create Build.PL
-
-; manifest (after all generated files)
-[Manifest] ; create MANIFEST
-
-; before release
-[Git::Check] ; ensure all files checked in
-[CheckPrereqsIndexed] ; ensure prereqs are on CPAN
-[CheckChangesHasContent] ; ensure Changes has been updated
-[CheckExtraTests] ; ensure xt/ tests pass
-[TestRelease] ; ensure t/ tests pass
-[ConfirmRelease] ; prompt before uploading
-
-; releaser
-[UploadToCPAN] ; uploads to CPAN
-
-; after release
-[Git::Commit / Commit_Dirty_Files] ; commit Changes (as released)
-
-[Git::Tag] ; tag repo with custom tag
-tag_format = release-%v
-
-; NextRelease acts *during* pre-release to write $VERSION and
-; timestamp to Changes and *after* release to add a new {{$NEXT}}
-; section, so to act at the right time after release, it must actually
-; come after Commit_Dirty_Files but before Commit_Changes in the
-; dist.ini. It will still act during pre-release as usual
-
-[NextRelease]
-
-[Git::Commit / Commit_Changes] ; commit Changes (for new dev)
-
-[Git::Push] ; push repo to remote
-push_to = origin
-
-[ArchiveRelease]
-directory = ~/src/modules/RELEASED
-
-
-
-; [@Git]
-; [Git::NextVersion]
-; first_version = 0.1
-;
-; [@Basic]
-;
-; [AutoPrereqs]
-; [Authority]
-; authority = 'cpan:MGRIMES'
-; do_metadata = 1
-; [CheckChangesHasContent]
-; [MinimumPerl]
-; [PkgVersion]
-; [PodWeaver]
-; [Bugtracker]
-; [Homepage]
-; [MetaConfig]
-; [MetaJSON]
-; [GithubMeta]
-; [Repository]
-; github_http = 0
-; [InstallGuide]
-; [ReadmeFromPod]
-; [ExtraTests]
-; [PodCoverageTests]
-; [PodSyntaxTests]
-; [EOLTests]
-; [Test::Compile]
-; [Test::Kwalitee]
-; [Twitter]
-; [ArchiveRelease]
-; [InstallRelease]
-; [NextRelease]
View
19 lib/Log/Any/Adapter/Catalyst.pm
@@ -5,9 +5,7 @@ use warnings;
use Carp;
use base qw(Log::Any::Adapter::Base);
-# ABSTRACT: Enable error and status logging in Catalyst Models via Log::Any
-
-# VERSION
+our $VERSION = '0.10';
sub init {
my ($self) = @_;
@@ -39,6 +37,10 @@ __END__
=pod
+=head1 NAME
+
+Log::Any::Adapter::Catalyst - Enable error and status logging in Catalyst Models via Log::Any
+
=head1 SYNOPSIS
In a Catalyst Model, View, etc (anywhere you don't have C<$c>):
@@ -78,4 +80,15 @@ Log levels are translated from L<Log::Any> to L<Catalyst::Log> as follows:
L<Log::Any|Log::Any>, L<Log::Any::Adapter|Log::Any::Adapter>,
L<Catalyst|Catalyst>, L<Catalyst::Log|Catalyst::Log>
+=head1 AUTHOR
+
+Mark Grimes
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright (C) 2011 Mark Grimes, all rights reserved.
+
+This program is free software; you can redistribute it and/or modify it under
+the same terms as Perl itself.
+
=cut
View
4 xt/95-prereq.t
@@ -0,0 +1,4 @@
+use Test::More;
+eval "use Test::Prereq::Build";
+plan skip_all => "Test::Prereq::Build required to test dependencies" if $@;
+prereq_ok();
View
14 xt/96-kwalitee.t
@@ -0,0 +1,14 @@
+use strict;
+use warnings;
+use Test::More;
+
+plan( skip_all => 'Author test. Set TEST_AUTHOR to a true value to run.' )
+ unless $ENV{TEST_AUTHOR};
+
+eval {
+ require Test::Kwalitee;
+ Test::Kwalitee->import( tests => [qw( -no_symlinks )] );
+ unlink 'Debian_CPANTS.txt' if -e 'Debian_CPANTS.txt';
+};
+plan( skip_all => 'Test::Kwalitee not installed; skipping' ) if $@;
+
View
15 xt/97-critic.t
@@ -0,0 +1,15 @@
+use strict;
+use warnings;
+use Test::More;
+use File::Spec;
+
+plan( skip_all => 'Author test. Set TEST_AUTHOR to a true value to run.' )
+ unless $ENV{TEST_AUTHOR};
+
+eval { require Test::Perl::Critic; };
+plan( skip_all => ' Test::Perl::Critic required to criticise code ' ) if $@;
+
+my $rcfile = File::Spec->catfile( 'xt', 'perlcriticrc' );
+Test::Perl::Critic->import( -profile => $rcfile, -severity => 3 );
+all_critic_ok();
+
View
13 xt/98-pod.t
@@ -0,0 +1,13 @@
+use strict;
+use warnings;
+use Test::More;
+
+plan( skip_all => 'Author test. Set TEST_AUTHOR to a true value to run.' )
+ unless $ENV{TEST_AUTHOR};
+
+eval "use Test::Pod 1.00";
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+
+all_pod_files_ok();
+
+
View
4 xt/perlcriticrc
@@ -0,0 +1,4 @@
+# [-CodeLayout::ProhibitHardTabs]
+[RegularExpressions::RequireExtendedFormatting]
+minimum_regex_length_to_complain_about = 5
+

0 comments on commit acb2c3c

Please sign in to comment.
Something went wrong with that request. Please try again.