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
17 changes: 16 additions & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ Test::More = 0.92 ; done_testing
;; -- Sets of additional tests we want to do as part of release
[Test::Perl::Critic]
[MetaTests]
[Test::Compile]
[Test::EOF]
[Test::NoTabs]
finder = :InstallModules
[Test::Portability]
[Test::PodSpelling]
stopword = TT
stopword = renderer
stopword = MultiForms
stopword = CSRF
stopword = formfu
stopword = Moritz ; we need these because there is ...
stopword = Onken ; no contributor list yet
[Test::NoBreakpoints]
[Test::UnusedVars]
;; [PodCoverageTests] ; Currently we comprehensively fail these
[OurPkgVersion]
[PodVersion]
Expand Down Expand Up @@ -65,4 +80,4 @@ allow_dirty = README.pod
allow_dirty = Changes
commit_msg = v%v%t - %d%n%n%c
tag_format = v%v%t ; see Git::Tag
tag_message = v%v%t - %d ; see Git::Tag
tag_message = v%v%t - %d ; see Git::Tag
10 changes: 5 additions & 5 deletions lib/Catalyst/Controller/HTML/FormFu.pm
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,10 @@ equivalent to C<< $c->uri_for( 'URI', \@ARGS ) >>. At this time, there is no
way to pass query values equivalent to
C<< $c->uri_for( 'URI', \@ARGS, \%QUERY_VALUES ) >>.

The second codeword that is being replaced is C<__path_to( @DIRS )__>. Any
The second code word that is being replaced is C<__path_to( @DIRS )__>. Any
instance is replaced with the result of passing the C<DIRS> arguments to
L<Catalyst/path_to>.
Don't use qoutationmarks as they would become part of the path.
Don't use quotation marks as they would become part of the path.

Default value: 1

Expand All @@ -633,7 +633,7 @@ Default value: C<false>.

If set to a true value the action for the form will be set to the currently
called action path.
The action path includes concurrent to action name additioal parameters which
The action path includes concurrent to action name additional parameters which
were code inside the path.

Default value: C<false>.
Expand Down Expand Up @@ -682,7 +682,7 @@ Default value: C<context>

If you're using a L10N / I18N plugin such as L<Catalyst::Plugin::I18N> which
provides a C<languages> method that returns a list of valid languages to use
for the currect request - and you want to use formfu's built-in I18N packages,
for the correct request - and you want to use formfu's built-in I18N packages,
then setting L</languages_from_context>

=head2 localize_from_context
Expand Down Expand Up @@ -735,7 +735,7 @@ rendering the form.

=head1 GITHUB REPOSITORY

This module's sourcecode is maintained in a git repository at
This module's source code is maintained in a git repository at
L<git://github.com/fireartist/Catalyst-Controller-HTML-FormFu.git>

The project page is L<https://github.com/fireartist/Catalyst-Controller-HTML-FormFu>
Expand Down
4 changes: 2 additions & 2 deletions lib/Catalyst/Helper/HTML/FormFu.pm
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ Catalyst::Helper::HTML::FormFu - Helper to deploy HTML::FormFu template files.
As of version 0.02000, L<HTML::FormFu> doesn't use the TT template files by
default - it uses in internal rendering engine.

If you don't want to customise the generated markup, you don't need to use
If you don't want to customize the generated markup, you don't need to use
L<Catalyst::Helper::HTML::FormFu> at all.

If you want to customise the generated markup, you'll need a
If you want to customize the generated markup, you'll need a
local copy of the template files. To create the files in the default
C<root/formfu> directory, run:

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormFu/Constraint/RequestToken.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Moose;
extends 'HTML::FormFu::Constraint';

sub BUILD {
my ( $self, $args ) = @_;
my ( $self ) = @_;

$self->message($self->parent->message);

Expand Down
2 changes: 0 additions & 2 deletions lib/HTML/FormFu/Element/RequestToken.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ sub verify_token {
croak "verify_token() can only be called if form has been submitted"
if !$form->submitted;

my $field_name = $self->name;

my $c = $self->form->stash->{ $self->context };

for ( @{ $c->session->{ $self->session_key } || [] } ) {
Expand Down
2 changes: 0 additions & 2 deletions lib/HTML/FormFu/Plugin/RequestToken.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ sub process {

return if $self->form->get_all_element( { name => $self->field_name } );

my $c = $self->form->stash->{'context'};

$self->form->elements( [ {
type => 'RequestToken',
name => $self->field_name,
Expand Down
2 changes: 1 addition & 1 deletion t/01basic-token.t
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ ok( $res = $mech->submit_form( fields => { 'basic_form' => 1, '_token' => $token

is( $mech->content, 'VALID', 'form is valid' );

done_testing;
done_testing;
2 changes: 1 addition & 1 deletion t/03instancepercontext.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ eval {

ok(!$@, 'lives ok');

done_testing;
done_testing;
2 changes: 1 addition & 1 deletion t/elements/requesttoken.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ sub new { return bless({}, shift) }

sub session { return {} }

}
}