use existing DDP filters

Tue, 23 Feb 2016 01:56:58 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 23 Feb 2016 01:56:58 -0500
changeset 262
85dcaca3a0b0
parent 261
6254589972e6
child 263
ae3ccd3bd949

use existing DDP filters

.dataprinter file | annotate | diff | comparison | revisions
bin/homedir-cpan-mods file | annotate | diff | comparison | revisions
--- a/.dataprinter
+++ b/.dataprinter
@@ -1,8 +1,5 @@
 {
   filters => {
-    'JSON::PP::Boolean' => sub { ${$_[0]} ? 'true': 'false'  },
-    'Mojo::JSON::_Bool' => sub { ${$_[0]} ? 'true': 'false'  },
-    'URI::http'         => sub { "URI<$_[0]>"  },
-    'URI::https'        => sub { "URI<$_[0]>"  },
+    -external    => [ 'JSON', 'URI' ],
   }
 };
--- a/bin/homedir-cpan-mods
+++ b/bin/homedir-cpan-mods
@@ -11,6 +11,8 @@ experimentals
 
 Reply
 Data::Printer
+Data::Printer::Filter::JSON
+Data::Printer::Filter::URI
 Carp::Always
 Proc::InvokeEditor
 B::Keywords

mercurial