Skip to content
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
7 changes: 7 additions & 0 deletions .stopwords
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
404s
0x
1x
AUTOHANDLERS
Adminstrator
ApacheModPerl
ApacheModPerl2
ApacheReload
Autohandlers
Bekman
Expand All @@ -26,6 +30,7 @@ Kumar
LFU
LogLevel
MSIE
MD5
MailingLists
Mallah
MasonAllowGlobals
Expand Down Expand Up @@ -97,8 +102,10 @@ Subcomponents
Subrequests
TIEHASH
USR
USR1
UserDir
Vivek
Win32
ala
apachectl
apachehandler
Expand Down
3 changes: 1 addition & 2 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ license = Perl_5
copyright_year = 1998
copyright_holder = Jonathan Swartz

version = 1.56

[FileFinder::Filter / SkipApacheHandler]
finder = :InstallModules
skip = lib/HTML/Mason/ApacheHandler.pm
Expand All @@ -27,6 +25,7 @@ stopwords_file = .stopwords
-remove = Test::Pod::No404s
-remove = Test::Portability
-remove = Test::Synopsis
-remove = Test::CleanNamespaces

[MetaNoIndex]
directory = eg
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package HTML::Mason;
# Copyright (c) 1998-2005 by Jonathan Swartz. All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.

$HTML::Mason::VERSION = '1.56';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be a lot simpler to write these all as our $VERSION = ...

use 5.006;

use HTML::Mason::Interp;
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Apache/Request.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# under the same terms as Perl itself.

package HTML::Mason::Apache::Request;

$HTML::Mason::Apache::Request::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/CGIHandler.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package HTML::Mason::CGIHandler;

$HTML::Mason::CGIHandler::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Cache/BaseCache.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# under the same terms as Perl itself.

package HTML::Mason::Cache::BaseCache;

$HTML::Mason::Cache::BaseCache::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Compiler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# under the same terms as Perl itself.

package HTML::Mason::Compiler;

$HTML::Mason::Compiler::VERSION = '1.56';
use strict;
use warnings;
use Data::Dumper;
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Compiler/ToObject.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# it under the same terms as Perl itself.

package HTML::Mason::Compiler::ToObject;

$HTML::Mason::Compiler::ToObject::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Component.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# under the same terms as Perl itself.

package HTML::Mason::Component;

$HTML::Mason::Component::VERSION = '1.56';
use strict;
use warnings;
use File::Spec;
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Component/FileBased.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# it under the same terms as Perl itself.

package HTML::Mason::Component::FileBased;

$HTML::Mason::Component::FileBased::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Component/Subcomponent.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# it under the same terms as Perl itself.

package HTML::Mason::Component::Subcomponent;

$HTML::Mason::Component::Subcomponent::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/ComponentSource.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# under the same terms as Perl itself.

package HTML::Mason::ComponentSource;

$HTML::Mason::ComponentSource::VERSION = '1.56';
use strict;
use warnings;
use File::Basename;
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Escapes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#

package HTML::Mason::Escapes;

$HTML::Mason::Escapes::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Exceptions.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package HTML::Mason::Exceptions;

$HTML::Mason::Exceptions::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/FakeApache.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package HTML::Mason::FakeApache;

$HTML::Mason::FakeApache::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Handler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#

package HTML::Mason::Handler;

$HTML::Mason::Handler::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Interp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# under the same terms as Perl itself.

package HTML::Mason::Interp;

$HTML::Mason::Interp::VERSION = '1.56';
use strict;
use warnings;

Expand Down
4 changes: 1 addition & 3 deletions lib/HTML/Mason/Lexer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# under the same terms as Perl itself.

package HTML::Mason::Lexer;

$HTML::Mason::Lexer::VERSION = '1.56';
use strict;
use warnings;

Expand Down Expand Up @@ -391,8 +391,6 @@ sub match_substitute
%> # Closing tag
}xcigs )
{
$self->{current}{lines} += tr/\n// foreach grep defined, ($1, $2);

$self->{current}{compiler}->substitution( substitution => $1,
escape => $3 );
return 1;
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/MethodMaker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# under the same terms as Perl itself.

package HTML::Mason::MethodMaker;

$HTML::Mason::MethodMaker::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Params.pod
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ The class to use when creating a lexer. Defaults to L<HTML::Mason::Lexer|HTML::M
=back

The maximum recursion depth for the component stack, for the request
stack, and for the inheritance stack. An error is signalled if the
stack, and for the inheritance stack. An error is signaled if the
maximum is exceeded. Default is 32.


Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Plugin.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package HTML::Mason::Plugin;

$HTML::Mason::Plugin::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Plugin/Context.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package HTML::Mason::Plugin::Context;

$HTML::Mason::Plugin::Context::VERSION = '1.56';
use strict;
use warnings;

Expand Down
4 changes: 2 additions & 2 deletions lib/HTML/Mason/Request.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#

package HTML::Mason::Request;

$HTML::Mason::Request::VERSION = '1.56';
use strict;
use warnings;

Expand Down Expand Up @@ -1752,7 +1752,7 @@ want to turn this off as a performance boost.
=item max_recurse

The maximum recursion depth for the component stack, for the request
stack, and for the inheritance stack. An error is signalled if the
stack, and for the inheritance stack. An error is signaled if the
maximum is exceeded. Default is 32.

=item out_method
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Resolver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# under the same terms as Perl itself.

package HTML::Mason::Resolver;

$HTML::Mason::Resolver::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Resolver/File.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# it under the same terms as Perl itself.

package HTML::Mason::Resolver::File;

$HTML::Mason::Resolver::File::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Resolver/Null.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# it under the same terms as Perl itself.

package HTML::Mason::Resolver::Null;

$HTML::Mason::Resolver::Null::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Tests.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package HTML::Mason::Tests;

$HTML::Mason::Tests::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Tools.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#

package HTML::Mason::Tools;

$HTML::Mason::Tools::VERSION = '1.56';
use strict;
use warnings;

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/Mason/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#

package HTML::Mason::Utils;

$HTML::Mason::Utils::VERSION = '1.56';
use HTML::Mason::Tools qw(compress_path);
use strict;
use warnings;
Expand Down
14 changes: 14 additions & 0 deletions t/06-compiler.t
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,20 @@ EOF
expect_error => qr/really #4 .* line 4/,
);

#------------------------------------------------------------

$group->add_test( name => 'line_nums_multi-line_substitution_block',
description => 'be sure line numbers aren\'t inflated by block size',
component => <<'EOF',
<% do {

die "I'm at #3";

} %>
EOF
expect_error => qr/at #3 .* line 3/,
);

#------------------------------------------------------------

$group->add_test( name => 'attr_block_zero',
Expand Down