NAME
CPAN::Audit::Query - filter the database for advisories that interest you
SYNOPSIS
use CPAN::Audit::Query;
my $query = CPAN::Audit::Query->new( db => ... );
my @advisories = $query->advisories_for( $dist_name, $version_range );
DESCRIPTION
Class methods
new(HASH)
The only parameter is the hash reference from CPAN::Audit::DB or CPANSA::DB. With no
db
parameter, it uses the empty hash, which means that you'll find no advisories.
Instance methods
advisories_for( DISTNAME, VERSION_RANGE )
Returns a list of advisories for DISTNAME in VERSION_RANGE.
my @advisories = $query->advisories_for( 'Business::ISBN', '1.23' ); my @advisories = $query->advisories_for( 'Business::ISBN', '>1.23,<2.45' ); my @advisories = $query->advisories_for( 'Business::ISBN', '<1.23' );
LICENSE
Copyright (C) Viacheslav Tykhanovskyi.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Viacheslav Tykhanovskyi <viacheslav.t@gmail.com>