Skip to content

Commit 4328bde

Browse files
authored
Merge pull request #26 from cxw42/vnext
v0.500.2
2 parents b684fd6 + 8caed23 commit 4328bde

14 files changed

+66
-31
lines changed

Changes

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
Revision history for Text-PerlPP
2+
(Note: GH = GitHub issue; # = RT issue)
3+
4+
0.500.2 2018/05/27
5+
Fixes to installation package
6+
7+
0.500.1 2018/05/26
8+
Changed code to OOP interface.
9+
Updated tests to run more cleanly and more quickly (GH 24; #125326).
10+
Version numbers are now in decimal rather than dotted, so this is
11+
actually version "0.500001".
212

313
0.4.0 2018/05/15
414
You can omit `?>` at EOF (#15).
5-
Error messages are reported closer to the source line number (#14).
15+
Error messages are reported closer to the source line number (GH 14).
616

717
0.3.2 2018/05/14
8-
Fixes to run on Perl 5.10.1 (#19).
9-
Added documentation (#20).
18+
Fixes to run on Perl 5.10.1 (GH 19).
19+
Added documentation (GH 20).
1020

1121
0.3.1 2018/05/11
1222
First CPAN version, released on an unsuspecting world.

Makefile.PL

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,25 @@ WriteMakefile(
5050
},
5151
BUILD_REQUIRES => {
5252
'App::FatPacker' => '0',
53+
'parent' => '0',
5354
},
5455
TEST_REQUIRES => {
5556
'Capture::Tiny' => '0',
5657
'Carp' => '0',
5758
'Config' => '0',
59+
'constant' => '0',
60+
'Cwd' => '0',
61+
'Exporter' => '0',
5862
'File::Spec' => '0',
63+
'Getopt::Long' => '2.5',
64+
'Import::Into' => '0',
5965
'IPC::Run3' => '0',
66+
'List::Util' => '1.33', # for any()
67+
'Pod::Usage' => '0',
6068
'rlib' => '0',
69+
'Text::Diff' => '0', # for t/03-idempotency.t
6170
'Test::More' => '0',
6271
'Text::ParseWords' => '0',
63-
'Text::Diff' => '0', # for t/03-idempotency.t
6472
},
6573
PREREQ_PM => {
6674
'Getopt::Long' => '2.5', # Per issue #17

lib/Text/PerlPP.pm

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ package Text::PerlPP;
55

66
# Semantic versioning, packed per Perl rules. Must always be at least one
77
# digit left of the decimal, and six digits right of the decimal.
8-
our $VERSION = '0.500001';
8+
our $VERSION = '0.500002';
99

1010
use 5.010001;
1111
use strict;
1212
use warnings;
1313

1414
use Getopt::Long 2.5 qw(GetOptionsFromArray);
1515
use Pod::Usage;
16-
use Data::Dumper;
1716

1817
# === Constants ===========================================================
1918

@@ -131,9 +130,6 @@ sub StartOB {
131130
if ( scalar @{$self->{OutputBuffers}} == 0 ) {
132131
$| = 1; # flush contents of STDOUT
133132
open( $self->{RootSTDOUT}, ">&STDOUT" ) or die $!; # dup filehandle
134-
#$self->{RootSTDOUT} = $fh;
135-
#undef $fh;
136-
#say STDERR "stdout in startob ", Dumper($self->{RootSTDOUT});
137133
}
138134
unshift( @{$self->{OutputBuffers}}, [ $mode, "", $lineno ] );
139135
close( STDOUT ); # must be closed before redirecting it to a variable
@@ -777,12 +773,7 @@ sub _parse_command_line {
777773
# Map the option names from GetOptions back to the internal names we use,
778774
# e.g., $hrOptsOut->{EVAL} from $hrOptsOut->{e}.
779775
my %revmap = map { $CMDLINE_OPTS{$_}->[0] => $_ } keys %CMDLINE_OPTS;
780-
#say "revmap ", Dumper(\%revmap);
781-
#say "hrOptsOut ", Dumper($hrOptsOut);
782776
for my $optname (keys %$hrOptsOut) {
783-
#say "\nOptname $optname";
784-
#say "Value $hrOptsOut->{$optname}";
785-
#say "Revmap $revmap{$optname}";
786777
$hrOptsOut->{ $revmap{$optname} } = $hrOptsOut->{ $optname };
787778
}
788779

t/00-load.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use 5.010;
33
use strict;
44
use warnings;
55
use Test::More;
6-
use rlib './lib';
6+
use rlib 'lib';
77

88
BEGIN {
99
if($ENV{PERLPP_NOUSE} || 0) {

t/01-capture.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!perl
22
# Some basic tests for perlpp
3-
use rlib './lib';
3+
use rlib 'lib';
44
use PerlPPTest;
55

66
if($ENV{PERLPP_NOUSE} || 0) {

t/02-basic.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22
# Some basic tests for perlpp
3-
use rlib './lib';
3+
use rlib 'lib';
44
use PerlPPTest;
55

66
use IPC::Run3;

t/02-readme.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22
# Tests from perlpp's README.md and bin/perlpp's POD.
3-
use rlib './lib';
3+
use rlib 'lib';
44
use PerlPPTest;
55

66
my @testcases=( # In the order they are given in README.md

t/03-cmdline.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22
# Tests of perlpp command-line options
3-
use rlib './lib';
3+
use rlib 'lib';
44
use PerlPPTest;
55
use TestcaseList;
66

t/03-idempotency.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env perl
22
# Test running perlpp on itself - nothing should change.
3-
use rlib './lib';
3+
use rlib 'lib';
44
use PerlPPTest;
55
use Text::Diff;
66
use File::Spec;
7-
use Data::Dumper;
7+
#use Data::Dumper;
88
plan tests => 1;
99

1010
my $fn = File::Spec->rel2abs($INC{'Text/PerlPP.pm'});

t/04-include.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env perl
22
# Tests of :include, :macro Include, :immediate ProcessFile
3-
use rlib './lib';
3+
use rlib 'lib';
44
use PerlPPTest;
55

66
(my $whereami = __FILE__) =~ s/04-include\.t$//;

0 commit comments

Comments
 (0)