debian/0000755000000000000000000000000012234007574007172 5ustar debian/rules0000755000000000000000000000150512234007574010253 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_test: #Since debian build systems do not have internet accessuse, we need to avoid all the tests that needs it #use CONNECTED_TO_NET=1 when the build host does have internet access. CONNECTED_TO_NET=0 dh_auto_test override_dh_auto_install: dh_auto_install rm $(TMP)/usr/bin/bot-basicbot-pluggable-cgi rm $(TMP)/usr/bin/bot-basicbot-pluggable-cli rm $(TMP)/usr/bin/bot-basicbot-pluggable-infobot-upgrade rm $(TMP)/usr/bin/storable2dbi.pl override_dh_installexamples: dh_installexamples sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/storable2dbi.pl sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl -w|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/bot-basicbot-pluggable-cgi debian/control0000644000000000000000000000446312234007574010604 0ustar Source: libbot-basicbot-pluggable-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: Jotam Jr. Trejo Build-Depends: debhelper (>= 9), perl (>= 5.11.4) | libmodule-build-perl (>= 0.360100) Build-Depends-Indep: libbot-basicbot-perl (>= 0.60), libconfig-find-perl, libcrypt-saltedhash-perl, libdbd-sqlite3-perl, libdbi-perl, libdbm-deep-perl, liblist-moreutils-perl, liblog-log4perl-perl, libmoose-perl, libmoosex-getopt-perl, libmoosex-simpleconfig-perl, libpoe-perl, libtext-unidecode-perl, libtry-tiny-perl, liburi-find-simple-perl, liburi-perl, liburi-title-perl, libwww-perl, libxml-feed-perl, libyaml-libyaml-perl, perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libbot-basicbot-pluggable-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libbot-basicbot-pluggable-perl.git Homepage: https://metacpan.org/release/Bot-BasicBot-Pluggable Package: libbot-basicbot-pluggable-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libbot-basicbot-perl (>= 0.60), libconfig-find-perl, libcrypt-saltedhash-perl, libdbi-perl, libdbm-deep-perl, liblist-moreutils-perl, liblog-log4perl-perl, libmoose-perl, libmoosex-getopt-perl, libmoosex-simpleconfig-perl, libpoe-perl, libtext-unidecode-perl, libtry-tiny-perl, liburi-find-simple-perl, liburi-perl, liburi-title-perl, libwww-perl, libxml-feed-perl Description: extended simple IRC bot for pluggable modules Bot::BasicBot::Pluggable started as Yet Another Infobot replacement, but now is a generalized framework for writing infobot-type bots that lets you keep each specific function separate. You can have separate modules for factoid tracking, 'seen' status, karma, googling, etc. Included default modules are: . Auth - user authentication and main access. DNS - host lookup (e.g. nslookup and dns). Google - search Google for things. Infobot - handles infobot-style factoids. Join - joins and leaves channels. Karma - tracks the popularity of things. Loader - loads and unloads modules as bot commands. Seen - tells you when people were last seen. Title - gets the title of URLs mentioned in channel. Vars - changes module variables. debian/source/0000755000000000000000000000000012234007574010472 5ustar debian/source/format0000644000000000000000000000001412234007574011700 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000026412234007574011046 0ustar libbot-basicbot-pluggable-perl (0.98-1) unstable; urgency=low * Initial Release. (Closes: #695946) -- Jotam Jr. Trejo Tue, 29 Oct 2013 12:04:07 -0600 debian/compat0000644000000000000000000000000212234007574010370 0ustar 9 debian/patches/0000755000000000000000000000000012234007574010621 5ustar debian/patches/no_internet.patch0000644000000000000000000000226312234007574014171 0ustar Description: Workaround to skip tests when internet access is not available Due to Debian policy, build systems of Debiandon't have internet access, that causes that the internet dependent tests fail at build time. Forwarded: not-needed Author: Jotam Jr. Trejo Last-Update: 2013-10-29 --- a/t/06title.t +++ b/t/06title.t @@ -9,14 +9,27 @@ my $title = $bot->load("Title"); ok( $title, "loaded Title module" ); +SKIP: { + +skip "Debian build systems do not have internet access", 1 unless $ENV{CONNECTED_TO_NET}; + like( $bot->tell_direct("http://google.com"), qr/Google/, "got title of google ok" ); +} + # test to make sure that Title.pm isn't eating urls. ok( $bot->load("Infobot"), "loaded Infobot module" ); -my $t = $bot->tell_direct("google is at http://google.com"); + +SKIP: { + +skip "Debian build systems do not have internet access", 2 unless $ENV{CONNECTED_TO_NET}; + +my $t = $bot->tell_direct("google is at http:/google.com"); like( $t, qr/Google/, "got title of google ok" ); like( $t, qr/Okay/, "infobot still there" ); +} + $title->set( 'user_ignore_re' => 'perl' ); is( $bot->tell_direct("http://use.perl.org"), '', 'ignore_re works' ); debian/patches/fix_manpage_errors_from_pod2man.patch0000644000000000000000000000216612234007574020164 0ustar Description: POD syntax errors The next files contained syntax errors on the POD documentation * lib/Bot/BasicBot/Pluggable/Module/Karma.pm * lib/App/Bot/BasicBot/Pluggable/Terminal.pm Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=89806 Author: Jotam Jr. Trejo Last-Update: 2013-10-27 --- a/lib/Bot/BasicBot/Pluggable/Module/Karma.pm +++ b/lib/Bot/BasicBot/Pluggable/Module/Karma.pm @@ -288,8 +288,6 @@ Defaults to 1; whether to randomize the order of reasons. If set to 0, the reasons are sorted in reversed chronological order. -=back - =item karma_change_response Defaults to 1; whether to show a response when the karma of a @@ -297,6 +295,8 @@ If set to 0, the bot will silently update the karma, without a response. +=back + =head1 AUTHOR Mario Domgoergen --- a/lib/App/Bot/BasicBot/Pluggable/Terminal.pm +++ b/lib/App/Bot/BasicBot/Pluggable/Terminal.pm @@ -15,7 +15,7 @@ =head1 NAME -App::Bot::BasicBot::Pluggable::Terminal +App::Bot::BasicBot::Pluggable::Terminal - alters the default bot class to L =head1 VERSION debian/patches/fix_pod_misspells.patch0000644000000000000000000001307012234007574015366 0ustar Description: fix misspells in pod documentation There are some misspells on the POD documentation on different files provided by this module. Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=89805 Author: Jotam Jr. Trejo Last-Update: 2013-10-27 --- a/lib/Bot/BasicBot/Pluggable.pm +++ b/lib/Bot/BasicBot/Pluggable.pm @@ -460,7 +460,7 @@ Bot::BasicBot::Pluggable started as Yet Another Infobot replacement, but now is a generalised framework for writing infobot-type bots that lets you keep -each specific function seperate. You can have seperate modules for factoid +each specific function separate. You can have separate modules for factoid tracking, 'seen' status, karma, googling, etc. Included default modules are below. Use C> for help on their individual terminology. @@ -503,7 +503,7 @@ Reload the module C<$module> - equivalent to unloading it (if it's already loaded) and reloading it. Will stomp the old module's namespace - warnings -are expected here. Not toally clean - if you're experiencing odd bugs, restart +are expected here. Not totally clean - if you're experiencing odd bugs, restart the bot if possible. Works for minor bug fixes, etc. =item unload($module) @@ -552,7 +552,7 @@ Returns the bot configuration file for logging. Please refer to L for the configurations files format. Setting -this to a differant file after calling init() has no effect. +this to a different file after calling init() has no effect. Returns or set --- a/lib/Bot/BasicBot/Pluggable/Module.pm +++ b/lib/Bot/BasicBot/Pluggable/Module.pm @@ -318,7 +318,7 @@ return; } -The preferred way, however, is to override one of the seperate C, C, +The preferred way, however, is to override one of the separate C, C, C and C methods, corresponding to priorities 0, 1, 2 and 3 in order - this will lead to nicer code. This approach is new, though, which is why it's not yet used in most of the shipped modules yet. It will eventually @@ -362,7 +362,7 @@ =item authed($who) -This is a convinient method that trys to check for the users +This is a convenient method that tries to check for the users authentication level via Auth.pm. It is exactly equivalent to $self->bot->module('Auth') --- a/lib/Bot/BasicBot/Pluggable/Module/Auth.pm +++ b/lib/Bot/BasicBot/Pluggable/Module/Auth.pm @@ -221,10 +221,10 @@ If this variable is true, the implicit authentication handling is disabled. Every module will have to check for authentication via the -authed method, otherwise access is just granted. This is only usefull +authed method, otherwise access is just granted. This is only useful to allow modules to handle directives starting with an exclamation mark without needing any authentication. And to make things even more -interesting, you won't be warned that you have't authenticated, so modules +interesting, you won't be warned that you haven't authenticated, so modules needing authentication will fail without any warning. It defaults to false and should probably never be changed. You've been warned. --- a/lib/Test/Bot/BasicBot/Pluggable.pm +++ b/lib/Test/Bot/BasicBot/Pluggable.pm @@ -126,7 +126,7 @@ =head2 DESTROY -The special subrouting is explicitly overriden with an empty +The special subroutine is explicitly overridden with an empty subroutine as otherwise AUTOLOAD in Bot::BasicBot will be called for it. --- a/bin/bot-basicbot-pluggable +++ b/bin/bot-basicbot-pluggable @@ -46,7 +46,7 @@ =item --logconfig FILE The logging configuration will be read from the specified file. -Please refer to L for its format. The paramter +Please refer to L for its format. The parameter loglevel will be ignored if this options is supplied. =item --loglevel LEVEL @@ -61,7 +61,7 @@ =item --channel CHANNELNAME -Channel to connect to. This paramter may be provided several times. +Channel to connect to. This parameter may be provided several times. You do not have to prefix the channel name with a hash symbol, which would have to be escaped in shell. It's automatically added for you. @@ -74,7 +74,7 @@ =item --module -Modules to load. This paramter may be profided several times. You +Modules to load. This parameter may be provided several times. You can call --list-modules to get a list of all available modules. If you do not define any module via this option, I and I are loaded by default. @@ -97,7 +97,7 @@ This options take a string in the form I=I and can be specified multiple times. The value of the key I define which -storage backend to load, all other paramters are passed the the +storage backend to load, all other parameters are passed to the object constructor as hash reference. For example: @@ -131,11 +131,11 @@ =head1 CONFIGFILE The bot read a configfile either found by L (usually -named ~/.bot-basicbot-pluggable.yaml) or specified on the comamnd -line via I<--configfile> on startup. The file should be a synatctical +named ~/.bot-basicbot-pluggable.yaml) or specified on the command +line via I<--configfile> on startup. The file should be a syntactical correct yaml file with a hash as its first level element. It understands every option listed above and the special settings -paramter, which is a hash, where the keys are module names and the +parameter, which is a hash, where the keys are module names and the value is a hash of configurable module settings. Easier to show than to explain: debian/patches/series0000644000000000000000000000012012234007574012027 0ustar no_internet.patch fix_manpage_errors_from_pod2man.patch fix_pod_misspells.patch debian/copyright0000644000000000000000000000264012234007574011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/Bot-BasicBot-Pluggable Upstream-Contact: Mario Domgoergen Upstream-Name: Bot-BasicBot-Pluggable Files: * Copyright: 2012, Mario Domgoergen License: Artistic or GPL-1+ Files: bin/bot-basicbot-pluggable Copyright: 2005-2009, Mario Domgoergen License: Artistic or GPL-1+ Files: lib/Test/Bot/BasicBot/Pluggable.pm Copyright: 2009, Mario Domgoergen License: Artistic or GPL-1+ Files: lib/Bot/BasicBot/Pluggable/Store/Deep.pm Copyright: 2005, Simon Wistow License: Artistic or GPL-1+ Files: debian/* Copyright: 2013, Jotam Jr. Trejo 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/libbot-basicbot-pluggable-perl.examples0000644000000000000000000000021012234007574016662 0ustar examples/* bin/bot-basicbot-pluggable-cgi bin/bot-basicbot-pluggable-cli bin/bot-basicbot-pluggable-infobot-upgrade bin/storable2dbi.pl debian/watch0000644000000000000000000000021112234007574010215 0ustar version=3 https://metacpan.org/release/Bot-BasicBot-Pluggable .*/Bot-BasicBot-Pluggable-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$