Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to Dist::Zilla #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES → Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{$NEXT}}

0.50 Fri 6 Aug 17:52:26 BST 2021
* Fix number of tests to skip
(Michal Josef Špaček)
Expand Down
9 changes: 0 additions & 9 deletions MANIFEST

This file was deleted.

55 changes: 0 additions & 55 deletions Makefile.PL

This file was deleted.

36 changes: 0 additions & 36 deletions README

This file was deleted.

40 changes: 40 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name = Term-UI
author = Chris Williams chris@bingosnet.co.uk
license = Perl_5
copyright_holder = Chris Williams
copyright_year = 2021

version = 0.50

[@Basic]

[AutoPrereqs]
[PodSyntaxTests]
[PodCoverageTests]

[PkgVersion]
die_on_existing_version = 1

[PruneFiles]
match = ^dist.ini
match = ^to_do.txt
match = ~$
match = ^todo.org

;[ModuleBuild]

[NextRelease]
time_zone = UTC

[PodVersion]

[MetaJSON]

[Test::Kwalitee]
;skiptest = has_license_in_source_file

[MinimumPerl]

[MetaProvides::Package]

[DualLife]
5 changes: 4 additions & 1 deletion lib/Term/UI.pm
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package Term::UI;
$Term::UI::VERSION = '0.50';


use if $] > 5.017, 'deprecate';

use strict;
use utf8;
use warnings;

use Carp;
Expand All @@ -20,6 +21,8 @@ push @Term::ReadLine::Stub::ISA, __PACKAGE__
unless grep { $_ eq __PACKAGE__ } @Term::ReadLine::Stub::ISA;


=encoding utf8

=pod

=head1 NAME
Expand Down
11 changes: 10 additions & 1 deletion lib/Term/UI/History.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package Term::UI::History;
$Term::UI::History::VERSION = '0.50';


use strict;
use utf8;
use warnings;

use parent
Expand All @@ -16,6 +17,8 @@ our @EXPORT = qw[ history ];

my $log = Log::Message->new();

=encoding utf8

=pod

=head1 NAME
Expand Down Expand Up @@ -68,6 +71,12 @@ sub history {
);
}

=head2 history_as_string()

Retrieve the entire session as a printable string.

=cut

sub history_as_string {
my $class = shift;

Expand Down
7 changes: 1 addition & 6 deletions t/00_load.t
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#!/usr/bin/env perl

use strict;
use utf8;
use warnings;

BEGIN {
chdir 't' if -d 't';
use File::Spec;
use lib File::Spec->catdir( qw[.. lib] );
}

use Test::More 'tests' => 1;

my $Class = 'Term::UI';
Expand Down
7 changes: 1 addition & 6 deletions t/01_history.t
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#!/usr/bin/env perl

use strict;
use utf8;
use warnings;

BEGIN {
chdir 't' if -d 't';
use File::Spec;
use lib File::Spec->catdir( qw[.. lib] );
}

use Test::More 'no_plan';

my $Class = 'Term::UI::History';
Expand Down
6 changes: 4 additions & 2 deletions t/02_ui.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
### Term::UI test suite ###

use strict;
use utf8;
use warnings;

use lib qw[../lib lib];
use Test::More 'tests' => 23;
use Test::More;
use Term::ReadLine ();

use_ok( 'Term::UI' );
Expand Down Expand Up @@ -194,3 +194,5 @@ my $tmpl = {
}

} # End SKIP block

done_testing();