Bump version number and update Changes
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Judge / Absolute.pm
index 010cf0b2d70e94e7c01ce2b949ba4c1b1ab57405..e0b04e58dc7cf4c2a7d8b9cc42ce1dbe6316afdc 100644 (file)
@@ -6,14 +6,45 @@ use warnings;
 
 use Gruntmaster::Daemon::Constants qw/AC/;
 
-our $VERSION = '0.001';
+our $VERSION = '5999.000_002';
 
 ##################################################
 
 sub judge{
-  $_ = pop;
-  ref $_ ? (result => $_->[0], result_text => $_->[1]) : (result => AC, result_text => 'Accepted')
+       my $result = pop;
+       ref $result ? (result => $result->[0], result_text => $result->[1]) : (result => AC, result_text => 'Accepted')
 }
 
 1;
 __END__
+
+=encoding utf-8
+
+=head1 NAME
+
+Gruntmaster::Daemon::Judge::Absolute - All-or-nothing ACM-style judge
+
+=head1 SYNOPSIS
+
+  use Gruntmaster::Daemon::Judge::Absolute;
+  Gruntmaster::Daemon::Judge::Absolute->judge($result1, $result2, $result3, ...);
+
+=head1 DESCRIPTION
+
+Gruntmaster::Daemon::Judge::Absolute is a judge which returns the result of the last test executed. Gruntmaster::Daemon stops running tests if the judge is Gruntmaster::Daemon::Judge::Absolute and a test fails, so the last test result is Accepted if and only if all tests succeeded.
+
+=head1 AUTHOR
+
+Marius Gavrilescu E<lt>marius@ieval.roE<gt>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright (C) 2014 by Marius Gavrilescu
+
+This library is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+
+=cut
This page took 0.00999 seconds and 4 git commands to generate.