Stephan Kulow 2013-11-26 07:30:00 +00:00 committed by Git OBS Bridge
parent 57bb67b6d4
commit bd26dba7d1
4 changed files with 62 additions and 4 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:349b191b624474245648f4e8810463433ac8065cc7a44171634902ba113cda6d
size 83997

3
JSON-2.90.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ddbb3cb985a79f69a34e7c26cde1c81120d03487e87366f9a119f90f7bdfe88
size 85333

View File

@ -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 Mon Jun 10 10:54:05 UTC 2013 - coolo@suse.com

View File

@ -17,7 +17,7 @@
Name: perl-JSON Name: perl-JSON
Version: 2.59 Version: 2.90
Release: 0 Release: 0
%define cpan_name JSON %define cpan_name JSON
Summary: JSON (JavaScript Object Notation) encoder/decoder Summary: JSON (JavaScript Object Notation) encoder/decoder
@ -29,10 +29,41 @@ BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros 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 Recommends: perl(JSON::XS) >= 2.34
%{perl_requires} %{perl_requires}
%description %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 ******************************** ************************** CAUTION ********************************
* This is 'JSON module version 2' and there are many differences * * This is 'JSON module version 2' and there are many differences *
* to version 1.xx * * to version 1.xx *