Commits

Toby Inkster  committed 8810f53

Update, get ready to release 0.002.

  • Participants
  • Parent commits ae41601

Comments (0)

Files changed (14)

File Changes

-############################################################################
-## Changes #################################################################
-############################################################################
-
-JSON-JOM-Plugins-JsonT
-======================
-
-Created:      2010-09-02
-Home page:    <http://search.cpan.org/dist/JSON-JOM-Plugins-JsonT/>
-Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=JSON-JOM-Plugins-JsonT>
-Maintainer:   Toby Inkster <mailto:tobyink@cpan.org>
-
-0.001 [2010-09-02] # First release
-

File Changes.ttl

-#############################################################
-
-@prefix :        <http://usefulinc.com/ns/doap#> .
-@prefix dcs:     <http://ontologi.es/doap-changeset#> .
-@prefix dc:      <http://purl.org/dc/terms/> .
-@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
-@prefix my:      <http://purl.org/NET/cpan-uri/dist/JSON-JOM-Plugins-JsonT/> .
-@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix toby:    <http://tobyinkster.co.uk/#> .
-@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
-
-#############################################################
-
-<>
-
-	dc:title         "Changes" ;
-	dc:description   "Revision history for Perl extension JSON::JOM::Plugins::JsonT."@en ;
-	dc:subject       my:project ;
-	dc:creator       toby:i .
-
-#############################################################
-
-my:v_0-001
-
-	a               :Version ;
-	dc:issued       "2010-09-02"^^xsd:date ;
-	:revision       "0.001"^^xsd:string ;
-	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-JOM-Plugins-JsonT-0.001.tar.gz> ;
-	rdfs:label      "First release"@en .
-
-#############################################################
-
-my:project
-
-	a               :Project ;
-	:name           "JSON-JOM-Plugins-JsonT" ;
-	:shortdesc      "transform a JOM structure with JsonT"@en ;
-	:programming-language  "Perl" ;
-	:homepage       <https://metacpan.org/release/JSON-JOM-Plugins-JsonT> ;
-	:download-page  <https://metacpan.org/release/JSON-JOM-Plugins-JsonT> ;
-	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=JSON-JOM-Plugins-JsonT> ;
-	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/JSON-JOM-Plugins-JsonT/> ] ;
-	:maintainer     toby:i ;
-	:developer      toby:i ;
-	:documenter     toby:i ;
-	:tester         toby:i ;
-	:created        "2010-09-02"^^xsd:date ;
-	:license        <http://dev.perl.org/licenses/> ;
-	:release        my:v_0-001 .
-
-#############################################################
-
-toby:i
-
-	a               foaf:Person ;
-	foaf:name       "Toby Inkster" ;
-	foaf:homepage   <http://tobyinkster.co.uk/> ;
-	foaf:page       <https://metacpan.org/author/TOBYINK> ;
-	foaf:mbox       <mailto:tobyink@cpan.org> ;
-	<http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
-
-#############################################################

File Changes.xml

-<?xml version="1.0" encoding="utf-8"?>
-<rdf:RDF xmlns:dbug="http://ontologi.es/doap-bugs#" xmlns:dc="http://purl.org/dc/terms/" xmlns:dcs="http://ontologi.es/doap-changeset#" xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
-<rdf:Description rdf:nodeID="rA04969B0B67811DFA07C966BBB7671D9r0">
-	<doap:browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/JSON-JOM-Plugins-JsonT/"/>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#SVNRepository"/>
-</rdf:Description>
-<rdf:Description rdf:about="file:///home/tai/src/perlmods/JSON-JOM-Plugins-JsonT/Changes.ttl">
-	<dc:creator rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<dc:description xml:lang="en">Revision history for Perl extension JSON::JOM::Plugins::JsonT.</dc:description>
-	<dc:subject rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-JOM-Plugins-JsonT/project"/>
-	<dc:title>Changes</dc:title>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/JSON-JOM-Plugins-JsonT/project">
-	<doap:bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=JSON-JOM-Plugins-JsonT"/>
-	<doap:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-09-02</doap:created>
-	<doap:developer rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:documenter rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:download-page rdf:resource="http://search.cpan.org/dist/JSON-JOM-Plugins-JsonT/"/>
-	<doap:homepage rdf:resource="http://search.cpan.org/dist/JSON-JOM-Plugins-JsonT/"/>
-	<doap:license rdf:resource="http://dev.perl.org/licenses/"/>
-	<doap:maintainer rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:name>JSON-JOM-Plugins-JsonT</doap:name>
-	<doap:programming-language>Perl</doap:programming-language>
-	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-JOM-Plugins-JsonT/v_0-001"/>
-	<doap:repository rdf:nodeID="rA04969B0B67811DFA07C966BBB7671D9r0"/>
-	<doap:shortdesc xml:lang="en">transform a JOM structure with JsonT</doap:shortdesc>
-	<doap:tester rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Project"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/JSON-JOM-Plugins-JsonT/v_0-001">
-	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-09-02</dc:issued>
-	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-JOM-Plugins-JsonT-0.001.tar.gz"/>
-	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.001</doap:revision>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-	<rdfs:label xml:lang="en">First release</rdfs:label>
-</rdf:Description>
-<rdf:Description xmlns:ns1="http://www.w3.org/2002/07/owl#" rdf:about="http://tobyinkster.co.uk/#i">
-	<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
-	<ns1:sameAs rdf:resource="http://purl.org/NET/cpan-uri/person/tobyink"/>
-	<foaf:homepage rdf:resource="http://tobyinkster.co.uk/"/>
-	<foaf:mbox rdf:resource="mailto:tobyink@cpan.org"/>
-	<foaf:name>Toby Inkster</foaf:name>
-	<foaf:page rdf:resource="http://search.cpan.org/~tobyink/"/>
-</rdf:Description>
-</rdf:RDF>

File MANIFEST.SKIP

-^MANIFEST.bak$
-^Makefile.old$
-^Makefile$
-^blib/
-^pm_to_blib
-^blibdirs
-\.svn
-^example.*\.pl$
-^[^/]+\.(tar\.gz|tar\.bz2|tgz|tbz2|tbz|zip|tar)$
-^MYMETA.yml

File META.yml

----
-abstract: 'transform a JOM structure with JsonT'
-author:
-  - 'Toby Inkster <tobyink@cpan.org>'
-build_requires:
-  ExtUtils::MakeMaker: 6.42
-  Test::More: 0.61
-configure_requires:
-  ExtUtils::MakeMaker: 6.42
-distribution_type: module
-generated_by: 'Module::Install version 0.95'
-license: perl
-meta-spec:
-  url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
-name: JSON-JOM-Plugins-JsonT
-no_index:
-  directory:
-    - inc
-    - t
-requires:
-  Carp: 0
-  JSON::JOM: 0.003
-  JSON::T: 0.100
-  common::sense: 0
-  perl: 5.8.0
-resources:
-  bugtracker: http://rt.cpan.org/Dist/Display.html?Queue=JSON-JOM-Plugins-JsonT
-  homepage: http://search.cpan.org/dist/JSON-JOM-Plugins-JsonT/
-  license: http://dev.perl.org/licenses/
-  repository: http://goddamn.co.uk/viewvc/perlmods/JSON-JOM-Plugins-JsonT/
-version: 0.001
-use strict;
-use warnings;
-
-use inc::Module::Install;
-
-my $dist = 'JSON-JOM-Plugins-JsonT';
-my $fn   = "lib/$dist.pm"; $fn =~ s#-#/#g;
-
-name                $dist;
-perl_version_from   $fn;
-version_from        $fn;
-abstract_from       $fn;
-readme_from         $fn;
-author              'Toby Inkster <tobyink@cpan.org>';
-license             'perl';
-
-requires            'Carp'               => 0;
-requires            'common::sense'      => 0;
-requires            'JSON::JOM'          => '0.003';
-requires            'JSON::T'            => '0.100';
-test_requires       'Test::More'         => '0.61';
-
-resources(
-	'homepage'   => "https://metacpan.org/release/$dist",
-	'repository' => "http://goddamn.co.uk/svn-web/perlmods/browse/$dist/",
-	'bugtracker' => "http://rt.cpan.org/Dist/Display.html?Queue=$dist",
-	);
-	
-write_doap_changes;
-write_doap_changes_xml;
-auto_license;
-auto_manifest;
-
-auto_install;
-WriteAll(
-	'meta' => 1,
-	'sign' => 1,
-	);
+use inc::Module::Package 'RDF:standard 0.005';

File README

-NAME
-    JSON::JOM::Plugins::JsonT - transform a JOM structure with JsonT
-
-DESCRIPTION
-    This JOM plugin adds the following method to JOM objects and arrays:
-
-    *   "transform($jsont)" - transforms the node using JsonT, returning a
-        string.
-
-    *   "transform_tojom($jsont)" - as "transform", but parses the result as
-        JSON.
-
-    *   "transform_replace($jsont)" - as "transform_tojom", and replaces the
-        node in its parent structure.
-
-    "transform_replace" cannot be called on root nodes.
-
-BUGS
-    Please report any bugs to <http://rt.cpan.org/>.
-
-SEE ALSO
-    JSON::JOM, JSON::JOM::Plugins.
-
-    JSON::T.
-
-AUTHOR
-    Toby Inkster <tobyink@cpan.org>.
-
-COPYRIGHT
-    Copyright 2010 Toby Inkster
-
-    This library is free software; you can redistribute it and/or modify it
-    under the same terms as Perl itself.
-

File TODO

-TODO:
-* Add some more items to this list.
-* Add keywords to Makefile.PL

File example1.pl

-use lib "lib";
-use lib "../JSON-JOM/lib";
-use JSON::JOM;
-
-my $jom = JSON::JOM::to_jom({
-	test => {
-		foo  => [{quux=>1},{quux=>2},{quux=>3}],
-		bar  => [{quux=>4},{quux=>5},{quux=>6}],
-		},
-	});
-
-my @nodes = $jom->{test}->findNodes("\$[*][*]");
-foreach my $node (@nodes)
-{
-	if ($node->matchesPath("\$[*]['bar'][*]"))
-	{
-		print "bar has object with quux=".$node->{quux}."\n";
-	}
-}

File examples/example1.pl

+use lib "lib";
+use lib "../JSON-JOM/lib";
+use JSON::JOM;
+
+my $jom = JSON::JOM::to_jom({
+	test => {
+		foo  => [{quux=>1},{quux=>2},{quux=>3}],
+		bar  => [{quux=>4},{quux=>5},{quux=>6}],
+		},
+	});
+
+my @nodes = $jom->{test}->findNodes("\$[*][*]");
+foreach my $node (@nodes)
+{
+	if ($node->matchesPath("\$[*]['bar'][*]"))
+	{
+		print "bar has object with quux=".$node->{quux}."\n";
+	}
+}

File lib/JSON/JOM/Plugins/JsonT.pm

 package JSON::JOM::Plugins::JsonT;
 
-use 5.008;
-use common::sense;
+use 5.010;
+use strict;
 
 use Carp qw[];
 use JSON::JOM qw[];
 use JSON::T qw[];
 use Scalar::Util qw[];
 
-our $VERSION = '0.001';
+BEGIN
+{
+	$JSON::JOM::Plugins::JsonT::AUTHORITY = 'cpan:TOBYINK';
+	$JSON::JOM::Plugins::JsonT::VERSION   = '0.002';
+}
 
 sub extensions
 {
 
 Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
 
-=head1 COPYRIGHT
+=head1 COPYRIGHT AND LICENCE
 
-Copyright 2010 Toby Inkster
+Copyright 2010-2011 Toby Inkster
 
 This library is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.
 
+=head1 DISCLAIMER OF WARRANTIES
+
+THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
 =cut
 

File meta/changes.ttl

+@prefix :        <http://usefulinc.com/ns/doap#> .
+@prefix dcs:     <http://ontologi.es/doap-changeset#> .
+@prefix dc:      <http://purl.org/dc/terms/> .
+@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
+@prefix my:      <http://purl.org/NET/cpan-uri/dist/JSON-JOM-Plugins-JsonT/> .
+@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix toby:    <http://tobyinkster.co.uk/#> .
+@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
+
+my:project :release my:v_0-001.
+my:v_0-001
+	a               :Version ;
+	dc:issued       "2010-09-02"^^xsd:date ;
+	:revision       "0.001"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-JOM-Plugins-JsonT-0.001.tar.gz> ;
+	rdfs:label      "First release"@en .
+
+my:project :release my:v_0-002.
+my:v_0-002
+	a               :Version ;
+	dc:issued       "2011-12-04"^^xsd:date ;
+	:revision       "0.002"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-JOM-Plugins-JsonT-0.002.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-001 ;
+		dcs:item   [ rdfs:label "use 5.010" ; a dcs:Update ] ;
+		dcs:item   [ rdfs:label "use Object::AUTHORITY" ; a dcs:Update ] ;
+		dcs:item   [ rdfs:label "Module::Package::RDF" ; a dcs:Packaging ]
+		].

File meta/doap.ttl

+@prefix :        <http://usefulinc.com/ns/doap#> .
+@prefix dcs:     <http://ontologi.es/doap-changeset#> .
+@prefix dc:      <http://purl.org/dc/terms/> .
+@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
+@prefix my:      <http://purl.org/NET/cpan-uri/dist/JSON-JOM-Plugins-JsonT/> .
+@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix toby:    <http://tobyinkster.co.uk/#> .
+@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
+
+my:project
+	a               :Project ;
+	:name           "JSON-JOM-Plugins-JsonT" ;
+	:shortdesc      "transform a JOM structure with JsonT"@en ;
+	:programming-language  "Perl" ;
+	:homepage       <https://metacpan.org/release/JSON-JOM-Plugins-JsonT> ;
+	:download-page  <https://metacpan.org/release/JSON-JOM-Plugins-JsonT> ;
+	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=JSON-JOM-Plugins-JsonT> ;
+	:repository     [ a :HgRepository ; :browse <https://bitbucket.org/tobyink/p5-json-jom-plugins-jsont> ] ;
+	:maintainer     toby:i ;
+	:developer      toby:i ;
+	:documenter     toby:i ;
+	:tester         toby:i ;
+	:created        "2010-09-02"^^xsd:date ;
+	:license        <http://dev.perl.org/licenses/> .
+
+toby:i
+	a               foaf:Person ;
+	foaf:name       "Toby Inkster" ;
+	foaf:homepage   <http://tobyinkster.co.uk/> ;
+	foaf:page       <https://metacpan.org/author/TOBYINK> ;
+	foaf:mbox       <mailto:tobyink@cpan.org> ;
+	<http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .

File meta/makefile.ttl

+# This file provides instructions for packaging.
+
+@prefix : <http://purl.org/NET/cpan-uri/terms#> .
+
+<http://purl.org/NET/cpan-uri/dist/JSON-JOM-Plugins-JsonT/project>
+	:perl_version_from _:main ;
+	:version_from _:main ;
+	:readme_from _:main ;
+	:test_requires "Test::More 0.61" ;
+	:requires "Carp", "JSON::JOM 0.500", "JSON::T 0.100", "Scalar::Util", "Object::AUTHORITY" .
+
+_:main <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName> "lib/JSON/JOM/Plugins/JsonT.pm" .
+