Skip to content

Commit

Permalink
several bug fixes - see CHANGES file
Browse files Browse the repository at this point in the history
  • Loading branch information
barbie committed Dec 14, 2008
1 parent 9baed4a commit c664da0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES
@@ -1,5 +1,10 @@
Revision history for Perl module CPAN::Testers::WWW::Reports::Mailer.

0.06 17/11/2008
- fixed run time error where iterator call was bogus :(
- fixed preferences parsing to correctly set the new fields for ignored
and report.

0.05 16/11/2008
- intergrated changes from the preferences site for ignoring
distributions and selecting the report type.
Expand Down
6 changes: 3 additions & 3 deletions META.yml
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: CPAN-Testers-WWW-Reports-Mailer
version: 0.05
version: 0.06
abstract: CPAN Testers Reports Mailer
author:
- Barbie <barbie@cpan.org>
Expand Down Expand Up @@ -30,10 +30,10 @@ requires:
provides:
CPAN::Testers::WWW::Reports::Mailer:
file: lib/CPAN/Testers/WWW/Reports/Mailer.pm
version: 0.05
version: 0.06
CPAN::Testers::WWW::Reports::Mailer::DBUtils:
file: lib/CPAN/Testers/WWW/Reports/Mailer/DBUtils.pm
version: 0.05
version: 0.06

meta-spec:
version: 1.4
Expand Down
8 changes: 6 additions & 2 deletions lib/CPAN/Testers/WWW/Reports/Mailer.pm
Expand Up @@ -4,7 +4,7 @@ use warnings;
use strict;

use vars qw($VERSION);
$VERSION = '0.05';
$VERSION = '0.06';

=head1 NAME
Expand Down Expand Up @@ -173,7 +173,7 @@ sub check_reports {
my $rows = $options{cpanstats}->Iterator('hash',$phrasebook{'GetReports'},$last_id);
return unless($rows);

while( my $row = $rows-()) {
while( my $row = $rows->()) {
$counts{REPORTS}++;
$last_id = $row->{id};
$row->{state} = uc $row->{state};
Expand Down Expand Up @@ -429,6 +429,8 @@ sub get_prefs {
# use global defaults
my %prefs = (
active => 0,
ignored => 0,
report => 1,
grades => {'FAIL' => 1},
tuple => 'FIRST',
version => 'LATEST',
Expand All @@ -447,6 +449,8 @@ sub parse_prefs {
my %grades = map {$_ => 1} split(',',$row->{grade});

$hash{grades} = \%grades;
$hash{ignored} = $row->{ignored} || 0;
$hash{report} = $row->{report} || 1;
$hash{tuple} = $row->{tuple} || 'FIRST';
$hash{version} = $row->{version} || 'LATEST';
$hash{patches} = $row->{patches} || 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/CPAN/Testers/WWW/Reports/Mailer/DBUtils.pm
Expand Up @@ -4,7 +4,7 @@ use warnings;
use strict;

use vars qw($VERSION);
$VERSION = '0.05';
$VERSION = '0.06';

=head1 NAME
Expand Down

0 comments on commit c664da0

Please sign in to comment.