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)
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";
}
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;
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;