diff options
author | des <des@FreeBSD.org> | 2014-04-03 19:21:38 +0800 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-04-03 19:21:38 +0800 |
commit | 7689d474caa2a0fb8251afeff0a5ee7da921ff1e (patch) | |
tree | 5a37501491e561a23d48039e99e7a0f9070cdf0b /www/p5-Catalyst-Authentication-Store-DBIx-Class | |
parent | af4c9923777945d5e6516b7eb2ece12ffe344eea (diff) | |
download | freebsd-ports-gnome-7689d474caa2a0fb8251afeff0a5ee7da921ff1e.tar.gz freebsd-ports-gnome-7689d474caa2a0fb8251afeff0a5ee7da921ff1e.tar.zst freebsd-ports-gnome-7689d474caa2a0fb8251afeff0a5ee7da921ff1e.zip |
Upgrade to 0.1506.
Diffstat (limited to 'www/p5-Catalyst-Authentication-Store-DBIx-Class')
3 files changed, 3 insertions, 95 deletions
diff --git a/www/p5-Catalyst-Authentication-Store-DBIx-Class/Makefile b/www/p5-Catalyst-Authentication-Store-DBIx-Class/Makefile index 073e4ac7d901..7b53641f3765 100644 --- a/www/p5-Catalyst-Authentication-Store-DBIx-Class/Makefile +++ b/www/p5-Catalyst-Authentication-Store-DBIx-Class/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= Catalyst-Authentication-Store-DBIx-Class -PORTVERSION= 0.1505 -PORTREVISION= 1 +PORTVERSION= 0.1506 CATEGORIES= www perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/www/p5-Catalyst-Authentication-Store-DBIx-Class/distinfo b/www/p5-Catalyst-Authentication-Store-DBIx-Class/distinfo index 1b7c6b1af4cf..8bbe9e954066 100644 --- a/www/p5-Catalyst-Authentication-Store-DBIx-Class/distinfo +++ b/www/p5-Catalyst-Authentication-Store-DBIx-Class/distinfo @@ -1,2 +1,2 @@ -SHA256 (Catalyst-Authentication-Store-DBIx-Class-0.1505.tar.gz) = 37dced170bd252e50e6b480cf27f90c1d14eedf418064ce07a4e5ca5d4824dc1 -SIZE (Catalyst-Authentication-Store-DBIx-Class-0.1505.tar.gz) = 48741 +SHA256 (Catalyst-Authentication-Store-DBIx-Class-0.1506.tar.gz) = 7c579f2595285e64c3dcb5540334aa9a002443e1d4c8c83ab4493b90cc51b244 +SIZE (Catalyst-Authentication-Store-DBIx-Class-0.1506.tar.gz) = 46461 diff --git a/www/p5-Catalyst-Authentication-Store-DBIx-Class/files/patch-c30ad9df2c49e9f51435b03182a2bf263c69d63e b/www/p5-Catalyst-Authentication-Store-DBIx-Class/files/patch-c30ad9df2c49e9f51435b03182a2bf263c69d63e deleted file mode 100644 index 72cc4c89d918..000000000000 --- a/www/p5-Catalyst-Authentication-Store-DBIx-Class/files/patch-c30ad9df2c49e9f51435b03182a2bf263c69d63e +++ /dev/null @@ -1,91 +0,0 @@ -From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> -Date: Sat, 23 Nov 2013 13:02:41 +0000 (+0000) -Subject: Fix calling User->can() as a class method. RT#90715 -X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Store-DBIx-Class.git;a=commitdiff_plain;h=c30ad9df2c49e9f51435b03182a2bf263c69d63e - -Fix calling User->can() as a class method. RT#90715 ---- - -#diff --git a/Changes b/Changes -#index 137ee33..c8babb3 100644 -#--- a/Changes -#+++ b/Changes -#@@ -1,6 +1,7 @@ -# Revision history for Catalyst-Plugin-Authentication-Store-DBIx-Class -# -# * Fix doc bugs. RT#87372 -#+ * Fix calling User->can() as a class method. RT#90715 -# -# 0.1505 2013-06-10 -# * Fix RT#82944 - test fails on perl >= 5.17.3 -diff --git a/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm b/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm -index 405ae75..18282a4 100644 ---- a/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm -+++ b/lib/Catalyst/Authentication/Store/DBIx/Class/User.pm -@@ -261,7 +261,9 @@ sub can { - my $self = shift; - return $self->SUPER::can(@_) || do { - my ($method) = @_; -- if (not $self->_user) { -+ if (not ref $self) { -+ undef; -+ } elsif (not $self->_user) { - undef; - } elsif (my $code = $self->_user->can($method)) { - sub { shift->_user->$code(@_) } -@@ -279,6 +281,8 @@ sub AUTOLOAD { - (my $method) = (our $AUTOLOAD =~ /([^:]+)$/); - return if $method eq "DESTROY"; - -+ return unless ref $self; -+ - if (my $code = $self->_user->can($method)) { - return $self->_user->$code(@_); - } -diff --git a/t/10-user-autoload.t b/t/10-user-autoload.t -index 74b243d..451ee65 100644 ---- a/t/10-user-autoload.t -+++ b/t/10-user-autoload.t -@@ -1,6 +1,7 @@ - use strict; - use warnings; - use Test::More; -+use Try::Tiny; - use Catalyst::Authentication::Store::DBIx::Class::User; - - my $message = 'I exist'; -@@ -11,9 +12,10 @@ my $message = 'I exist'; - sub exists { $message } - } - -+my $class = 'Catalyst::Authentication::Store::DBIx::Class::User'; - my $o = bless({ - _user => bless({}, 'My::Test'), --}, 'Catalyst::Authentication::Store::DBIx::Class::User'); -+}, $class); - - is($o->exists, $message, 'AUTOLOAD proxies ok'); - -@@ -23,4 +25,22 @@ is($o->$meth, $message, 'can returns right coderef'); - - is($o->can('non_existent_method'), undef, 'can on non existent method returns undef'); - -+is($o->non_existent_method, undef, 'AUTOLOAD traps non existent method'); -+ -+try { -+ is($class->can('non_existent_method'), undef, "can on non existent class method"); -+} catch { -+ my $e = $_; -+ fail('can on non existent class method'); -+ diag("Got exception: $e"); -+}; -+ -+try { -+ is($class->non_existent_method, undef, 'AUTOLOAD traps non existent class method'); -+} catch { -+ my $e = $_; -+ fail('AUTOLOAD traps non existent class method'); -+ diag("Got exception: $e"); -+}; -+ - done_testing; |