Skip to content

Commit

Permalink
Released version 0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Apr 2, 2013
1 parent af20ccb commit bc156f8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Changes
@@ -1,4 +1,9 @@
---
version: 0.29
date: Mon Apr 1 21:48:31 PDT 2013
changes:
- Support JSON and JSON::XS. dankogai-san++
---
version: 0.28
date: Mon Sep 12 13:51:47 CEST 2011
changes:
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
@@ -1,3 +1,3 @@
use inc::Module::Package 'Ingy:modern 0.15';
use inc::Module::Package 'Ingy:modern 0.20';

recommends 'Readonly';
2 changes: 1 addition & 1 deletion README
Expand Up @@ -121,7 +121,7 @@ AUTHOR
Ingy döt Net <ingy@cpan.org>

COPYRIGHT
Copyright (c) 2007, 2008, 2010, 2011. Ingy döt Net.
Copyright (c) 2007, 2008, 2010, 2011, 2013. Ingy döt Net.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Expand Down
6 changes: 3 additions & 3 deletions lib/boolean.pm
Expand Up @@ -2,7 +2,7 @@ use 5.005003;
package boolean;
use strict;

$boolean::VERSION = '0.28';
$boolean::VERSION = '0.29';

my ($true, $false);

Expand Down Expand Up @@ -79,7 +79,7 @@ sub truth {
&Internals::SvREADONLY( \ !!1, 1);
}

sub TO_JSON() { ${$_[0]} ? \1 : \ 0 }
sub TO_JSON() { ${$_[0]} ? \1 : \0 }

1;

Expand Down Expand Up @@ -236,7 +236,7 @@ Ingy döt Net <ingy@cpan.org>
=head1 COPYRIGHT
Copyright (c) 2007, 2008, 2010, 2011. Ingy döt Net.
Copyright (c) 2007, 2008, 2010, 2011, 2013. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Expand Down
6 changes: 4 additions & 2 deletions t/json.t
Expand Up @@ -5,7 +5,9 @@ SKIP: {
skip "JSON is missing", 2 unless $HAVE_JSON;
eval{
my $json = JSON->new->convert_blessed();
is($json->encode({false => (0 == 1)}), '{"false":false}');
is($json->encode({true => (1 == 1)}), '{"true":true}');
is($json->encode({false => (0 == 1)}), '{"false":false}',
'JSON false works');
is($json->encode({true => (1 == 1)}), '{"true":true}',
'JSON true works');
}
};

0 comments on commit bc156f8

Please sign in to comment.