X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon.pm;h=cb41e0d19f5e8bec50f080980b35fbfe3d78cba1;hp=6cc6431d050cd858ee8cad47a2c6528f6f6973c7;hb=3e7fd9031ca5f299f08ee12718ea8938dbb4277a;hpb=7be5f05486dc972422c0243f7e0affe7c0dad523 diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index 6cc6431..cb41e0d 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -4,7 +4,7 @@ use 5.014000; use strict; use warnings; -our $VERSION = '5999.000_002'; +our $VERSION = '5999.000_004'; use Gruntmaster::Daemon::Constants qw/ERR/; use Gruntmaster::Daemon::Format qw/prepare_files/; @@ -23,6 +23,9 @@ use constant PAGE_SIZE => 10; use constant FORMAT_EXTENSION => { C => 'c', CPP => 'cpp', + GCCGO => 'go', + GOLANG => 'go', + HASKELL => 'hs', MONO => 'cs', JAVA => 'java', PASCAL => 'pas', @@ -140,7 +143,7 @@ sub process{ $jobr->update({ result => $meta->{result}, result_text => $meta->{result_text}, - results => encode_json $meta->{results}, + ($meta->{results} ? (results => encode_json $meta->{results}) : ()), $errors ? (errors => $errors) : () });