debian/0000755000000000000000000000000012155101311007154 5ustar debian/rules0000755000000000000000000000003612155101311010233 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000253112155101311010560 0ustar Source: libmojolicious-plugin-authorization-perl Maintainer: Debian Perl Group Uploaders: Joenio Costa Section: perl Priority: optional Build-Depends: debhelper (>= 8), perl (>= 5.13.11) | libmodule-build-perl (>= 0.380000) Build-Depends-Indep: libmojolicious-perl, perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libmojolicious-plugin-authorization-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmojolicious-plugin-authorization-perl.git Homepage: https://metacpan.org/release/Mojolicious-Plugin-Authorization/ Package: libmojolicious-plugin-authorization-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libmojolicious-perl Description: module to make authorization a bit easier for Mojolicious A very simple API implementation of role-based access control (RBAC). This plugin is only an API you will have to do all the work of setting up your roles and privileges and then provide four subs that are used by the plugin. The plugin expects that the current session will be used to get the role its privileges. It also assumes that you have already been authenticated and your role set. That is about it you are free to implement any system you like. debian/source/0000755000000000000000000000000012155101311010454 5ustar debian/source/format0000644000000000000000000000001412155101311011662 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000115012155101311011023 0ustar libmojolicious-plugin-authorization-perl (1.0301-2) unstable; urgency=low * Team upload. [ Salvatore Bonaccorso ] * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * Add patch to fix test failure caused by hash randomization. Thanks to CSILLAG Tamas for coming up with the patch. (Closes: #711607) -- gregor herrmann Sun, 09 Jun 2013 15:25:48 +0200 libmojolicious-plugin-authorization-perl (1.0301-1) unstable; urgency=low * Initial Release. (Closes: #697719) -- Joenio Costa Sun, 6 Jan 2013 12:03:55 -0300 debian/compat0000644000000000000000000000000212155101311010352 0ustar 8 debian/patches/0000755000000000000000000000000012155101311010603 5ustar debian/patches/fix_spelling_error_in_manpage0000644000000000000000000000213712155101311016603 0ustar Description: lintian complains about the word spelling of 'dependant' Forwarded: http://github.com/byterock/mojolicious-plugin-authorization/issues/2 --- a/lib/Mojolicious/Plugin/Authorization.pm +++ b/lib/Mojolicious/Plugin/Authorization.pm @@ -104,13 +104,13 @@ 'pPrivileges'' will use the supplied C subroutine ref and return the privileges of the current session. You can pass additional data along in the extra_data hashref and it will be passed to your C -subroutine as-is. The returned data is dependant on the supplied C subroutine. +subroutine as-is. The returned data is dependent on the supplied C subroutine. =head2 role($extra_data) 'role' will use the supplied C subroutine ref and return the role of the current session. You can pass additional data along in the extra_data hashref and it will be passed to your C -subroutine as-is. The returned data is dependant on the supplied C subroutine. +subroutine as-is. The returned data is dependent on the supplied C subroutine. =head1 CONFIGURATION debian/patches/test-failure-hash-randomization.patch0000644000000000000000000000120712155101311020025 0ustar Description: fix test failure due to hash randomization in perl 5.18 Origin: vendor Bug-Debian: http://bugs.debian.org/711607 Bug: https://rt.cpan.org/Ticket/Display.html?id=86010 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=86010 Author: CSILLAG Tamas Reviewed-by: gregor herrmann Last-Update: 2013-06-09 --- a/t/01-functional.t +++ b/t/01-functional.t @@ -90,7 +90,7 @@ get '/myprivs' => sub { my $self = shift; my @privs = $self->privileges(); - my $priv = join(':',@privs); + my $priv = join(':', sort @privs); $self->render(text=>$priv); }; my $t = Test::Mojo->new; debian/patches/series0000644000000000000000000000010412155101311012013 0ustar fix_spelling_error_in_manpage test-failure-hash-randomization.patch debian/copyright0000644000000000000000000000211512155101311011106 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Mojolicious-Plugin-Authorization Upstream-Contact: John Scoles Source: https://metacpan.org/release/Mojolicious-Plugin-Authorization/ Files: * Copyright: 2012, John Scoles License: Artistic or GPL-1+ Files: debian/* Copyright: 2013, Joenio Costa License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/libmojolicious-plugin-authorization-perl.examples0000644000000000000000000000001212155101311021062 0ustar example/* debian/watch0000644000000000000000000000023612155101311010206 0ustar version=3 https://metacpan.org/release/Mojolicious-Plugin-Authorization/ .*/Mojolicious-Plugin-Authorization-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$