Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

0.1

  • Loading branch information...
commit 95c5b8a8120dcb60752f7b9910b682ab6027a470 0 parents
@creaktive authored
6 .gitignore
@@ -0,0 +1,6 @@
+.build/*
+Dist-Zilla-Plugin-MojibakeTests-*/*
+blib/*
+*.gz
+Makefile
+pm_to_blib
1  Changes
@@ -0,0 +1 @@
+0.1 - first release
36 README.pod
@@ -0,0 +1,36 @@
+=pod
+
+=head1 NAME
+
+Dist::Zilla::Plugin::MojibakeTests - Release tests for source encoding
+
+=head1 VERSION
+
+version 0.1
+
+=head1 SYNOPSIS
+
+In F<dist.ini>:
+
+ [MojibakeTests]
+
+=head1 DESCRIPTION
+
+This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the following file:
+
+ xt/release/mojibake.t - a standard Test::Mojibake test
+
+=for test_synopsis 1;
+__END__
+
+=head1 AUTHOR
+
+Stanislaw Pusep <stas@sysd.org>
+
+=head1 COPYRIGHT AND LICENSE
+
+This software is copyright (c) 2011 by Stanislaw Pusep.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
30 dist.ini
@@ -0,0 +1,30 @@
+name = Dist-Zilla-Plugin-MojibakeTests
+author = Stanislaw Pusep <stas@sysd.org>
+license = Perl_5
+copyright_holder = Stanislaw Pusep
+copyright_year = 2011
+
+[@Basic]
+[@Git]
+
+[CompileTests]
+[CriticTests]
+[KwaliteeTests]
+[PodCoverageTests]
+[PodSyntaxTests]
+[PodWeaver]
+[VersionFromModule]
+
+[ReadmeAnyFromPod / text.build ]
+filename = README
+type = text
+
+[ReadmeAnyFromPod / pod.root ]
+filename = README.pod
+type = pod
+
+[CopyFilesFromBuild]
+move = README.pod
+
+[Prereqs]
+Test::Mojibake = 0
48 lib/Dist/Zilla/Plugin/MojibakeTests.pm
@@ -0,0 +1,48 @@
+#!/usr/bin/perl
+package Dist::Zilla::Plugin::MojibakeTests;
+# ABSTRACT: Release tests for source encoding
+
+use strict;
+use utf8;
+use warnings 'all';
+
+our $VERSION = '0.1';
+
+use 5.008;
+use Moose;
+extends 'Dist::Zilla::Plugin::InlineFiles';
+
+__PACKAGE__->meta->make_immutable;
+no Moose;
+1;
+
+=pod
+
+=head1 SYNOPSIS
+
+In F<dist.ini>:
+
+ [MojibakeTests]
+
+=head1 DESCRIPTION
+
+This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the following file:
+
+ xt/release/mojibake.t - a standard Test::Mojibake test
+
+=for test_synopsis 1;
+__END__
+
+=cut
+
+__DATA__
+___[ xt/release/mojibake.t ]___
+#!perl
+
+use Test::More;
+
+eval 'use Test::Mojibake';
+plan skip_all => 'Test::Mojibake required for source encoding testing'
+ if $@;
+
+all_files_encoding_ok();
14 t/00-load.t
@@ -0,0 +1,14 @@
+#!perl -T
+use strict;
+
+use Test::More tests => 3;
+
+BEGIN {
+ use_ok('Test::Builder');
+ use_ok('Test::Mojibake');
+ use_ok('Dist::Zilla::Plugin::MojibakeTests');
+}
+
+diag("Testing Dist::Zilla::Plugin::MojibakeTests $Dist::Zilla::Plugin::MojibakeTests::VERSION, Perl $], $^X");
+diag("Using Test::Mojibake $Test::Mojibake::VERSION");
+diag("Using Test::Builder $Test::Builder::VERSION");
Please sign in to comment.
Something went wrong with that request. Please try again.