[SCM] Mojolicious::Plugin::BasicAuth branch, master, updated. debian/0.06-1-10-g0f635f1
gregor herrmann
gregoa at debian.org
Sat Jun 22 15:42:05 UTC 2013
The following commit has been merged in the master branch:
commit 27008830814765b8ec08ec7b76bb4b7b79515adb
Author: gregor herrmann <gregoa at debian.org>
Date: Sat Jun 22 17:34:26 2013 +0200
Imported Upstream version 0.07
diff --git a/Changes b/Changes
index 59a594a..d916c39 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+0.07 2013-05-20
+ - render_text -> render(text) for Mojolicious 4.0 (reneeb)
+
0.06 2011-10-29
- Allow : in passwords (Kirill Miazine)
diff --git a/LICENSE b/LICENSE
index 2d93ca6..5f9ebc2 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-This software is copyright (c) 2011 by Glen Hinkle.
+This software is copyright (c) 2013 by Glen Hinkle.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@ b) the "Artistic License"
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2011 by Glen Hinkle.
+This software is Copyright (c) 2013 by Glen Hinkle.
This is free software, licensed under:
@@ -22,7 +22,7 @@ This is free software, licensed under:
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -272,7 +272,7 @@ That's all there is to it!
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2011 by Glen Hinkle.
+This software is Copyright (c) 2013 by Glen Hinkle.
This is free software, licensed under:
diff --git a/META.yml b/META.yml
index d826171..57f0726 100644
--- a/META.yml
+++ b/META.yml
@@ -6,7 +6,7 @@ build_requires: {}
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300002, CPAN::Meta::Converter version 2.112621'
+generated_by: 'Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.120921'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -14,4 +14,4 @@ meta-spec:
name: Mojolicious-Plugin-BasicAuth
requires:
Mojolicious: 1.4
-version: 0.06
+version: 0.07
diff --git a/Makefile.PL b/Makefile.PL
index 4502adc..baf8e72 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -22,13 +22,27 @@ my %WriteMakefileArgs = (
"PREREQ_PM" => {
"Mojolicious" => "1.4"
},
- "VERSION" => "0.06",
+ "TEST_REQUIRES" => {},
+ "VERSION" => "0.07",
"test" => {
"TESTS" => "t/*.t"
}
);
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
+ my $br = $WriteMakefileArgs{BUILD_REQUIRES};
+ for my $mod ( keys %$tr ) {
+ if ( exists $br->{$mod} ) {
+ $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
+ }
+ else {
+ $br->{$mod} = $tr->{$mod};
+ }
+ }
+}
+
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
diff --git a/dist.ini b/dist.ini
index ad2651a..44caf2d 100644
--- a/dist.ini
+++ b/dist.ini
@@ -2,7 +2,7 @@ name = Mojolicious-Plugin-BasicAuth
auth = Glen Hinkle <tempire at cpan.org>
license = Perl_5
copyright_holder = Glen Hinkle
-version = 0.06
+version = 0.07
[@Filter]
bundle = @Basic
diff --git a/lib/Mojolicious/Plugin/BasicAuth.pm b/lib/Mojolicious/Plugin/BasicAuth.pm
index 9175911..29a2f9a 100644
--- a/lib/Mojolicious/Plugin/BasicAuth.pm
+++ b/lib/Mojolicious/Plugin/BasicAuth.pm
@@ -4,7 +4,7 @@ use strict;
use warnings;
use Mojo::ByteStream;
-our $VERSION = '0.06';
+our $VERSION = '0.07';
use base 'Mojolicious::Plugin';
@@ -108,7 +108,7 @@ L<http://github.com/tempire/mojolicious-plugin-basicauth>
=head1 VERSION
-0.06
+0.07
=head1 CREDITS
@@ -116,6 +116,8 @@ L<http://github.com/tempire/mojolicious-plugin-basicauth>
=item Kirill Miazine
+=item reneeb
+
=back
=head1 AUTHOR
diff --git a/t/auth.t b/t/auth.t
index f92ff89..0867808 100644
--- a/t/auth.t
+++ b/t/auth.t
@@ -23,7 +23,7 @@ get '/user-pass' => sub {
return $self->render(text => 'authorized')
if $self->basic_auth(realm => username => 'password');
- $self->render_text('denied');
+ $self->render( text => 'denied' );
};
get '/user-pass-with-colon-password' => sub {
@@ -32,38 +32,38 @@ get '/user-pass-with-colon-password' => sub {
return $self->render(text => 'authorized')
if $self->basic_auth(realm => username => 'pass:word');
- $self->render_text('denied');
+ $self->render( text => 'denied' );
};
get '/pass' => sub {
my $self = shift;
- return $self->render_text('denied')
+ return $self->render( text => 'denied' )
unless $self->basic_auth(realm => 'password');
- $self->render_text('authorized');
+ $self->render( text => 'authorized' );
};
# Entered user/pass supplied to callback
get '/get-auth-callback' => sub {
my $self = shift;
- return $self->render_text('authorized')
+ return $self->render( text => 'authorized' )
if $self->basic_auth(
realm => sub { return "@_" eq 'username password' });
- $self->render_text('denied');
+ $self->render( text => 'denied' );
};
# Callback with colon in password
get '/get-auth-callback-with-colon-password' => sub {
my $self = shift;
- return $self->render_text('authorized')
+ return $self->render( text => 'authorized' )
if $self->basic_auth(
realm => sub { return "@_" eq 'username pass:word' });
- return $self->render_text('denied');
+ return $self->render( text => 'denied' );
};
under sub {
--
Mojolicious::Plugin::BasicAuth
More information about the Pkg-perl-cvs-commits
mailing list