From: Karen Etheridge Date: Thu, 20 Jun 2013 22:33:12 +0000 (-0700) Subject: still work when Cpanel::JSON::XS is all we have installed X-Git-Tag: 0.34~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b9f532ee43570a3cb41d46ec1e08a1101e6d97b6;p=gitmo%2FMooseX-Storage.git still work when Cpanel::JSON::XS is all we have installed --- diff --git a/Changes b/Changes index 5c22f09..2e2d6a9 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for MooseX-Storage + * JSON storage works when Cpanel::JSON::XS is the only JSON backend installed + 0.33 2013-03-29 * always JSONify data with sorted keys, to handle hash order randomization introduced in 5.17.* (RT#84287, Karen Etheridge) diff --git a/t/011_basic_json_w_utf8.t b/t/011_basic_json_w_utf8.t index 6969c11..a5bd3d8 100644 --- a/t/011_basic_json_w_utf8.t +++ b/t/011_basic_json_w_utf8.t @@ -10,12 +10,12 @@ use Test::Requires { BEGIN { # NOTE: - # this is because JSON::XS is + # this is because JSON::XS (and Cpanel::JSON::XS) is # the only one which really gets # utf8 correct # - SL BEGIN { - $ENV{JSON_ANY_ORDER} = qw(XS); + $ENV{JSON_ANY_ORDER} = 'XS CPANEL'; $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1"; } diff --git a/t/104_io_w_utf8.t b/t/104_io_w_utf8.t index 3af9d05..77ddbb9 100644 --- a/t/104_io_w_utf8.t +++ b/t/104_io_w_utf8.t @@ -13,12 +13,12 @@ use Test::Requires { BEGIN { # NOTE: - # this is because JSON::XS is + # this is because JSON::XS (and Cpanel::JSON::XS) is # the only one which really gets # utf8 correct # - SL BEGIN { - $ENV{JSON_ANY_ORDER} = qw(XS); + $ENV{JSON_ANY_ORDER} = 'XS CPANEL'; $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1"; } plan tests => 8; diff --git a/t/105_io_atomic_w_utf8.t b/t/105_io_atomic_w_utf8.t index 333bc5a..0347c63 100644 --- a/t/105_io_atomic_w_utf8.t +++ b/t/105_io_atomic_w_utf8.t @@ -13,12 +13,12 @@ use Test::Requires { BEGIN { # NOTE: - # this is because JSON::XS is + # this is because JSON::XS (and Cpanel::JSON::XS) is # the only one which really gets # utf8 correct # - SL BEGIN { - $ENV{JSON_ANY_ORDER} = qw(XS); + $ENV{JSON_ANY_ORDER} = 'XS CPANEL'; $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1"; } plan tests => 8;