Skip to content

Commit

Permalink
JSON::PP: Synch with CPAN version 4.12
Browse files Browse the repository at this point in the history
From Changes: Call unimport overload first to silence warnings.
(makamaka/JSON-PP#76, haarg++)

Committer: To keep 'make test_porting' happy, run:
    cd t; ./perl porting/regen.t; cd -
    ./perl -Ilib Porting/makemeta -j
  • Loading branch information
charsbar authored and jkeenan committed Oct 10, 2022
1 parent f41910b commit 2edec0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion META.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@
}
},
"version" : "5.037005",
"x_serialization_backend" : "JSON::PP version 4.11"
"x_serialization_backend" : "JSON::PP version 4.12"
}
2 changes: 1 addition & 1 deletion Porting/Maintainers.pl
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ package Maintainers;
},

'JSON::PP' => {
'DISTRIBUTION' => 'ISHIGAKI/JSON-PP-4.11.tar.gz',
'DISTRIBUTION' => 'ISHIGAKI/JSON-PP-4.12.tar.gz',
'FILES' => q[cpan/JSON-PP],
},

Expand Down
2 changes: 1 addition & 1 deletion cpan/JSON-PP/lib/JSON/PP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use JSON::PP::Boolean;
use Carp ();
#use Devel::Peek;

$JSON::PP::VERSION = '4.11';
$JSON::PP::VERSION = '4.12';

@JSON::PP::EXPORT = qw(encode_json decode_json from_json to_json);

Expand Down
3 changes: 2 additions & 1 deletion cpan/JSON-PP/lib/JSON/PP/Boolean.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package JSON::PP::Boolean;
use strict;
require overload;
local $^W;
overload::unimport('overload', qw(0+ ++ -- fallback));
overload::import('overload',
"0+" => sub { ${$_[0]} },
"++" => sub { $_[0] = ${$_[0]} + 1 },
"--" => sub { $_[0] = ${$_[0]} - 1 },
fallback => 1,
);

$JSON::PP::Boolean::VERSION = '4.11';
$JSON::PP::Boolean::VERSION = '4.12';

1;

Expand Down

0 comments on commit 2edec0e

Please sign in to comment.