App-Slackeria
view release on metacpan or search on metacpan
lib/App/Slackeria/Plugin/Debian.pm view on Meta::CPAN
\( (?<ver> \S+ )
(?: \) | \s and \s others)
}x;
for my $node ( @{ $tree->findnodes($xp_title) } ) {
my $text = $node->textContent;
if ( $text =~ $re_package ) {
return {
data => $+{ver},
href => $href
};
}
}
die("not found\n");
}
1;
__END__
=head1 NAME
App::Slackeria::Plugin::Debian - Check project version in Debian
=head1 SYNOPSIS
In F<slackeria/config>
[Debian]
=head1 VERSION
version 0.12
=head1 DESCRIPTION
This plugin queries a project and its version in Debian Sid.
=head1 CONFIGURATION
=over
=item distribution
Debian Distribution to check. Defaults to B<sid>.
=item href
Link to point to in output, %s is replaced by the project name.
Defaults to C<< http://packages.debian.org/sid/%s >>
=back
=head1 DEPENDENCIES
LWP::UserAgent(3pm), XML::LibXML(3pm).
=head1 BUGS AND LIMITATIONS
This plugin does not use an API, but simple HTML output. It may break
anytime.
=head1 SEE ALSO
slackeria(1)
=head1 AUTHOR
Copyright (C) 2011 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt>
=head1 LICENSE
0. You just DO WHAT THE FUCK YOU WANT TO.
( run in 2.332 seconds using v1.01-cache-2.11-cpan-98e64b0badf )