package Dist::Zilla::Plugin::Test::Rinci;

our $DATE = '2018-11-22'; # DATE
our $VERSION = '0.040'; # VERSION

use Moose;
with 'Dist::Zilla::Role::FileGatherer';
with 'Dist::Zilla::Role::PrereqSource';
with 'Dist::Zilla::Role::Rinci::CheckDefinesMeta';

use namespace::autoclean;

# Register the release test prereq as a "develop requires"
# so it will be listed in "dzil listdeps --author"
sub register_prereqs {
    my ($self) = @_;

    return unless $self->check_dist_defines_rinci_meta;

            type  => 'requires',
            phase => 'develop',
        'Test::Rinci' => '0.151',

sub gather_files {
    my ($self) = @_;

    return unless $self->check_dist_defines_rinci_meta;

    my $filename = "xt/release/rinci.t";
    my $filecontent = <<'_';

# This file was automatically generated by Dist::Zilla::Plugin::Test::Rinci.

use Test::More;

eval "use Test::Rinci 0.01";
plan skip_all => "Test::Rinci 0.01 required for testing Rinci metadata"
  if $@;


    $self->log(["Adding %s ...", $filename]);
    require Dist::Zilla::File::InMemory;
            name => $filename,
            content => $filecontent,

# ABSTRACT: A release test for Rinci metadata



=encoding UTF-8

=head1 NAME

Dist::Zilla::Plugin::Test::Rinci - A release test for Rinci metadata

=head1 VERSION

This document describes version 0.040 of Dist::Zilla::Plugin::Test::Rinci (from Perl distribution Dist-Zilla-Plugin-Test-Rinci), released on 2018-11-22.


This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the
following files:

  xt/release/rinci.t - a standard Rinci metadata test

This test uses L<Test::Rinci> to check your Rinci metadata.

=for Pod::Coverage .+


Please visit the project's homepage at L<>.

=head1 SOURCE

Source repository is at L<>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired

=head1 AUTHOR

perlancar <>


This software is copyright (c) 2018, 2015, 2012 by

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