use strict;
-use warnings;
-
+use warnings FATAL => 'all';
use ExtUtils::MakeMaker;
+(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
+
my %build_requires = (
'Test::More' => 0.98,
);
WriteMakefile(
NAME => 'JSON-Diffable',
- VERSION_FROM => 'lib/JSON/Diffable.pm',
+ VERSION_FROM => 'lib/JSON/Diffable.pm'
PREREQ_PM => {
%requires,
($mymeta_works ? () : (%build_requires)),
)
),
($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),
- LICENSE => 'perl',
-);;
+);
use JSON ();
use Exporter 'import';
-our $VERSION = '0.000001';
+our $VERSION = '0.000001'; # 0.0.1
+
$VERSION = eval $VERSION;
my $real = JSON->new->relaxed->allow_nonref->utf8;
my $json = encode_json($data);
-Turns a Perl data structure into relaxed JSON.
+Turns a Perl data structure into diffable JSON.
=head2 decode_json
--- /dev/null
+BEGIN {
+ -e 'Distar'
+ or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git")
+}
+use lib 'Distar/lib';
+use Distar;
+
+author 'Robert Sedlacek <r.sedlacek@shadowcat.co.uk>';