diff --git a/JSON-2.59.tar.gz b/JSON-2.59.tar.gz deleted file mode 100644 index bd5efae..0000000 --- a/JSON-2.59.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:349b191b624474245648f4e8810463433ac8065cc7a44171634902ba113cda6d -size 83997 diff --git a/JSON-2.90.tar.gz b/JSON-2.90.tar.gz new file mode 100644 index 0000000..38b7c25 --- /dev/null +++ b/JSON-2.90.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ddbb3cb985a79f69a34e7c26cde1c81120d03487e87366f9a119f90f7bdfe88 +size 85333 diff --git a/perl-JSON.changes b/perl-JSON.changes index 4ff51fb..934bd4b 100644 --- a/perl-JSON.changes +++ b/perl-JSON.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Tue Nov 26 07:28:28 UTC 2013 - coolo@suse.com + +- updated to 2.90 + +CAUTION!!! + INCOMPATIBLE CHANGE + + JSON.pm had patched JSON::XS::Boolean and JSON::PP::Boolean internally + on loading time for making these modules inherit JSON::Boolean. + But since JSON::XS v3.0 it use Types::Serialiser as boolean class. + Then now JSON.pm breaks boolean classe overload features and + -support_by_pp if JSON::XS v3.0 or later is installed. + + JSON::true and JSON::false returned JSON::Boolean objects. + For workaround, they return JSON::PP::Boolean objects in this version. + + isa_ok(JSON::true, 'JSON::PP::Boolean'); + + And it discards a feature: + + ok(JSON::true eq 'true'); + + In other word, JSON::PP::Boolean overload numeric only. + + ok( JSON::true == 1 ); + ------------------------------------------------------------------- Mon Jun 10 10:54:05 UTC 2013 - coolo@suse.com diff --git a/perl-JSON.spec b/perl-JSON.spec index 2da69b1..656ab0b 100644 --- a/perl-JSON.spec +++ b/perl-JSON.spec @@ -17,7 +17,7 @@ Name: perl-JSON -Version: 2.59 +Version: 2.90 Release: 0 %define cpan_name JSON Summary: JSON (JavaScript Object Notation) encoder/decoder @@ -29,10 +29,41 @@ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +#BuildRequires: perl(JSON) +#BuildRequires: perl(JSON::backportPP) +#BuildRequires: perl(JSON::PP) +#BuildRequires: perl(JSON::XS) +#BuildRequires: perl(Tie::IxHash) +#BuildRequires: perl(_unicode_handling) Recommends: perl(JSON::XS) >= 2.34 %{perl_requires} %description + *************************** CAUTION ************************************** + * * + * INCOMPATIBLE CHANGE (JSON::XS version 2.90) * + * * + * JSON.pm had patched JSON::XS::Boolean and JSON::PP::Boolean internally * + * on loading time for making these modules inherit JSON::Boolean. * + * But since JSON::XS v3.0 it use Types::Serialiser as boolean class. * + * Then now JSON.pm breaks boolean classe overload features and * + * -support_by_pp if JSON::XS v3.0 or later is installed. * + * * + * JSON::true and JSON::false returned JSON::Boolean objects. * + * For workaround, they return JSON::PP::Boolean objects in this version. * + * * + * isa_ok(JSON::true, 'JSON::PP::Boolean'); * + * * + * And it discards a feature: * + * * + * ok(JSON::true eq 'true'); * + * * + * In other word, JSON::PP::Boolean overload numeric only. * + * * + * ok( JSON::true == 1 ); * + * * + ************************************************************************** + ************************** CAUTION ******************************** * This is 'JSON module version 2' and there are many differences * * to version 1.xx *