[perl-Cpanel-JSON-XS] Update to 3.0112

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 3ce4cc1e4c41aa7e9c90b6237990a2ebf1e6b6a0
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Mon Dec 15 16:36:40 2014 +0000

    Update to 3.0112
    
    - New upstream release 3.0112
      - Change encode of numbers with dual-strings (int and float); integers and
        numbers are now not mishandled anymore by dual-vars' temporary string
        representations
      - Add t/117_numbers.t from JSON::PP (GH#10)
      - Change stringification of false and true to 0 and 1, matching upstream
        JSON and JSON::XS (GH#29); this didn't affect string comparisons, just e.g.
        print decode_json("false")
      - Tolerate literal ASCII TABs in strings in relaxed mode (GH#22) (from
        JSON::XS)
      - Revise pod, merge updates from JSON::XS
      - Fix pod typo (PR#30)
      - Fixed detecting 1.#INF/1.#IND on Windows (GH#28)
      - Also detect now -inf and -nan (GH#28)
      - Fixed STRINGIFY_INFNAN return string, length off by one (GH#28)
      - Fixed a non-C99 declaration error in XS.xs, broken with older MSVC
      - Add {get_,}stringify_infnan methods and use it in the test, now run-time
        (GH#32); mode 0: null, 1: stringify, 2: inf/nan (invalid JSON) as before
      - Fix t/117_number tests for Solaris and MSWin32
      - Improve docs
    - Add patch to make NaN encoding tests TODO (GH#33)

 Cpanel-JSON-XS-3.0112-NaN.patch |   21 +++++++++++++++++++++
 perl-Cpanel-JSON-XS.spec        |   31 +++++++++++++++++++++++++++++--
 sources                         |    2 +-
 3 files changed, 51 insertions(+), 3 deletions(-)
---
diff --git a/Cpanel-JSON-XS-3.0112-NaN.patch b/Cpanel-JSON-XS-3.0112-NaN.patch
new file mode 100644
index 0000000..9aa1b42
--- /dev/null
+++ b/Cpanel-JSON-XS-3.0112-NaN.patch
@@ -0,0 +1,21 @@
+--- t/117_numbers.t
++++ t/117_numbers.t
+@@ -21,6 +21,9 @@ if ($^O eq 'cygwin' or ($Config{glibc_ve
+   $neg_nan = $nan;
+ }
+ 
++TODO: {
++local $TODO = "NaN results vary by libc (GH#33)";
++
+ is $json->encode([9**9**9]),         "[\"$inf\"]",  "inf -> \"inf\"";
+ is $json->encode([-9**9**9]),        "[\"-$inf\"]", "-inf -> \"-inf\"";
+ if ($^O eq 'MSWin32') {
+@@ -46,6 +49,8 @@ if ($^O eq 'MSWin32') {
+   is $json->encode([9**9**9/9**9**9]), "[$neg_nan]", "-nan";
+ }
+ 
++}
++
+ 
+ my $num = 3;
+ my $str = "$num";
diff --git a/perl-Cpanel-JSON-XS.spec b/perl-Cpanel-JSON-XS.spec
index 3cbb837..9246273 100644
--- a/perl-Cpanel-JSON-XS.spec
+++ b/perl-Cpanel-JSON-XS.spec
@@ -1,12 +1,14 @@
 Name:		perl-Cpanel-JSON-XS
 Summary:	JSON::XS for Cpanel, fast and correct serializing
-Version:	3.0107
+Version:	3.0112
 Release:	1%{?dist}
 License:	GPL+ or Artistic
 URL:		http://search.cpan.org/dist/Cpanel-JSON-XS/
 Source0:	http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/Cpanel-JSON-XS-%{version}.tar.gz
+Patch1:		Cpanel-JSON-XS-3.0112-NaN.patch
 # Module Build
 BuildRequires:	perl
+BuildRequires:	perl(Config)
 BuildRequires:	perl(ExtUtils::MakeMaker)
 # Module Runtime
 BuildRequires:	perl(Carp)
@@ -20,7 +22,6 @@ BuildRequires:	perl(Data::Dump)
 BuildRequires:	perl(YAML)
 # Test Suite
 BuildRequires:	perl(common::sense) >= 3.5
-BuildRequires:	perl(Config)
 BuildRequires:	perl(constant)
 BuildRequires:	perl(Data::Dumper)
 BuildRequires:	perl(Encode) >= 1.9081
@@ -74,6 +75,9 @@ reach the latter goal it was written in C.
 %prep
 %setup -q -n Cpanel-JSON-XS-%{version}
 
+# NaN results vary by libc (GH#33)
+%patch1
+
 # Fix shellbangs
 perl -pi -e 's|^#!/opt/bin/perl|#!/usr/bin/perl|' eg/*
 
@@ -105,6 +109,29 @@ make test IS_MAINTAINER=1 %{!?perl_bootstrap:RELEASE_TESTING=1}
 %{_mandir}/man3/Cpanel::JSON::XS::Boolean.3*
 
 %changelog
+* Mon Dec 15 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 3.0112-1
+- Update to 3.0112
+  - Change encode of numbers with dual-strings (int and float); integers and
+    numbers are now not mishandled anymore by dual-vars' temporary string
+    representations
+  - Add t/117_numbers.t from JSON::PP (GH#10)
+  - Change stringification of false and true to 0 and 1, matching upstream
+    JSON and JSON::XS (GH#29); this didn't affect string comparisons, just e.g.
+    print decode_json("false")
+  - Tolerate literal ASCII TABs in strings in relaxed mode (GH#22) (from
+    JSON::XS)
+  - Revise pod, merge updates from JSON::XS
+  - Fix pod typo (PR#30)
+  - Fixed detecting 1.#INF/1.#IND on Windows (GH#28)
+  - Also detect now -inf and -nan (GH#28)
+  - Fixed STRINGIFY_INFNAN return string, length off by one (GH#28)
+  - Fixed a non-C99 declaration error in XS.xs, broken with older MSVC
+  - Add {get_,}stringify_infnan methods and use it in the test, now run-time
+    (GH#32); mode 0: null, 1: stringify, 2: inf/nan (invalid JSON) as before
+  - Fix t/117_number tests for Solaris and MSWin32
+  - Improve docs
+- Add patch to make NaN encoding tests TODO (GH#33)
+
 * Fri Nov 28 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 3.0107-1
 - Update to 3.0107
   - Fix fatal stack corruption with perl callbacks in list context (GH#27)
diff --git a/sources b/sources
index c69ae52..bbd394f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-90d544254f2f40518740666dee400948  Cpanel-JSON-XS-3.0107.tar.gz
+2518e25e4baca59dcf706c03198cc1d2  Cpanel-JSON-XS-3.0112.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux