Skip to content

Commit

Permalink
Merge pull request #6 from keithj/devel
Browse files Browse the repository at this point in the history
Removed default size limit on JSONCodec.
  • Loading branch information
Iain Bancarz committed Mar 18, 2015
2 parents 7612474 + b1f9989 commit 96e19dc
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/WTSI/DNAP/Utilities.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Keith James <[email protected]>
=head1 COPYRIGHT AND DISCLAIMER
Copyright (c) 2013-2014 Genome Research Limited. All Rights Reserved.
Copyright (C) 2013, 2014 Genome Research Limited. All Rights Reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the Perl Artistic License or the GNU General
Expand Down
2 changes: 1 addition & 1 deletion lib/WTSI/DNAP/Utilities/Cacheable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Keith James <[email protected]>
=head1 COPYRIGHT AND DISCLAIMER
Copyright (c) 2013-2014 Genome Research Limited. All Rights Reserved.
Copyright (C) 2013, 2014 Genome Research Limited. All Rights Reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the Perl Artistic License or the GNU General
Expand Down
2 changes: 1 addition & 1 deletion lib/WTSI/DNAP/Utilities/Executable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Keith James <[email protected]>
=head1 COPYRIGHT AND DISCLAIMER
Copyright (c) 2013-2014 Genome Research Limited. All Rights Reserved.
Copyright (C) 2013, 2014 Genome Research Limited. All Rights Reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the Perl Artistic License or the GNU General
Expand Down
3 changes: 2 additions & 1 deletion lib/WTSI/DNAP/Utilities/IO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ Keith James <[email protected]>
=head1 COPYRIGHT AND DISCLAIMER
Copyright (c) 2012-2014 Genome Research Limited. All Rights Reserved.
Copyright (C) 2012, 2013, 2014 Genome Research Limited. All Rights
Reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the Perl Artistic License or the GNU General
Expand Down
11 changes: 6 additions & 5 deletions lib/WTSI/DNAP/Utilities/JSONCodec.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ our $VERSION = '';
our @HANDLED_JSON_METHODS = qw(decode encode);

has 'max_size' =>
(is => 'ro',
isa => 'Int',
required => 1,
default => 4096);
(is => 'ro',
isa => 'Int',
required => 0,
default => 0,
documentation => 'The default max size is 0 which indicates no limit');

has 'parser' =>
(is => 'ro',
Expand Down Expand Up @@ -49,7 +50,7 @@ Keith James <[email protected]>
=head1 COPYRIGHT AND DISCLAIMER
Copyright (c) 2014 Genome Research Limited. All Rights Reserved.
Copyright (C) 2014, 2015 Genome Research Limited. All Rights Reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the Perl Artistic License or the GNU General
Expand Down
2 changes: 1 addition & 1 deletion lib/WTSI/DNAP/Utilities/Loggable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Keith James <[email protected]>
=head1 COPYRIGHT AND DISCLAIMER
Copyright (c) 2013-2014 Genome Research Limited. All Rights Reserved.
Copyright (C) 2013, 2014 Genome Research Limited. All Rights Reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the Perl Artistic License or the GNU General
Expand Down
2 changes: 1 addition & 1 deletion lib/WTSI/DNAP/Utilities/Runnable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Keith James <[email protected]>
=head1 COPYRIGHT AND DISCLAIMER
Copyright (c) 2013-2014 Genome Research Limited. All Rights Reserved.
Copyright (C) 2013, 2014 Genome Research Limited. All Rights Reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the Perl Artistic License or the GNU General
Expand Down
2 changes: 1 addition & 1 deletion lib/WTSI/DNAP/Utilities/Startable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Keith James <[email protected]>
=head1 COPYRIGHT AND DISCLAIMER
Copyright (c) 2013-2014 Genome Research Limited. All Rights Reserved.
Copyright (C) 2013, 2014 Genome Research Limited. All Rights Reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the Perl Artistic License or the GNU General
Expand Down
2 changes: 0 additions & 2 deletions t/lib/WTSI/DNAP/Utilities/JSONCodecTest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use Log::Log4perl;

BEGIN { use_ok('WTSI::DNAP::Utilities::JSONCodec'); }

use WTSI::DNAP::Utilities::JSONCodecThing;

Log::Log4perl::init('./etc/log4perl_tests.conf');

my $json = '{"foo":"bar"}';
Expand Down
2 changes: 0 additions & 2 deletions t/lib/WTSI/DNAP/Utilities/StartableTest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ use Test::Exception;

BEGIN { use_ok('WTSI::DNAP::Utilities::Startable'); }

use WTSI::DNAP::Utilities::StartableThing;

Log::Log4perl::init('./etc/log4perl_tests.conf');

sub start_stop : Test(5) {
Expand Down

0 comments on commit 96e19dc

Please sign in to comment.