Commits

Toby Inkster committed 6c324a2

cpan-testers, do your worst!!

  • Participants
  • Parent commits f60d8b8

Comments (0)

Files changed (8)

 Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=JSON-T>
 Maintainer:   Toby Inkster <mailto:tobyink@cpan.org>
 
+0.090_03 [2010-08-10]
+ - Additional debugging info added to tests.
+
 0.090_02 [2010-08-02]
  - Switched from JavaScript::SpiderMonkey to JE - SpiderMonkey version is
    retained for those that want it.
 		dcs:item   [ rdfs:label "Switched from JavaScript::SpiderMonkey to JE - SpiderMonkey version is retained for those that want it."@en ] 
 		] .
 
+my:v_0-090_03
+
+	a               :Version ;
+	dc:issued       "2010-08-10"^^xsd:date ;
+	:revision       "0.090_03"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-T-0.090_03.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-090_02 ;
+		dcs:item   [ rdfs:label "Additional debugging info added to tests."@en ] 
+		] .
+
 #############################################################
 
 my:project
 	:tester         toby:i ;
 	:created        "2010-07-29"^^xsd:date ;
 	:license        <http://creativecommons.org/licenses/LGPL/2.1/> ;
-	:release        my:v_0-090_00 , my:v_0-090_01 , my:v_0-090_02 .
+	:release        my:v_0-090_00 , my:v_0-090_01 , my:v_0-090_02 , my:v_0-090_03 .
 
 #############################################################
 
 <?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="rD199374A9E7F11DFAE75977ABD853821r0">
-	<dcs:item rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r1"/>
+<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r0">
+	<dcs:item rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r1"/>
 	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_00"/>
 </rdf:Description>
-<rdf:Description rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r1">
+<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r1">
 	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Bugfix"/>
 	<rdfs:label xml:lang="en">Non-JSON-string input for transform method was not being correctly converted to JSON.</rdfs:label>
 </rdf:Description>
-<rdf:Description rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r2">
-	<dcs:item rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r3"/>
+<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r2">
+	<dcs:item rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r3"/>
 	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_01"/>
 </rdf:Description>
-<rdf:Description rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r3">
+<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r3">
 	<rdfs:label xml:lang="en">Switched from JavaScript::SpiderMonkey to JE - SpiderMonkey version is retained for those that want it.</rdfs:label>
 </rdf:Description>
-<rdf:Description rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r4">
+<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r4">
+	<dcs:item rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r5"/>
+	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_02"/>
+</rdf:Description>
+<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r5">
+	<rdfs:label xml:lang="en">Additional debugging info added to tests.</rdfs:label>
+</rdf:Description>
+<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r6">
 	<doap:browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/JSON-T/"/>
 	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#SVNRepository"/>
 </rdf:Description>
 	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_00"/>
 	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_01"/>
 	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_02"/>
-	<doap:repository rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r4"/>
+	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_03"/>
+	<doap:repository rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r6"/>
 	<doap:shortdesc xml:lang="en">transform JSON using JsonT</doap:shortdesc>
 	<doap:tester rdf:resource="http://tobyinkster.co.uk/#i"/>
 	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Project"/>
 	<rdfs:comment xml:lang="en">Original version</rdfs:comment>
 </rdf:Description>
 <rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_01">
-	<dcs:changeset rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r0"/>
+	<dcs:changeset rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r0"/>
 	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-30</dc:issued>
 	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-T-0.090_01.tar.gz"/>
 	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.090_01</doap:revision>
 	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
 </rdf:Description>
 <rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_02">
-	<dcs:changeset rdf:nodeID="rD199374A9E7F11DFAE75977ABD853821r2"/>
+	<dcs:changeset rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r2"/>
 	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-08-02</dc:issued>
 	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-T-0.090_02.tar.gz"/>
 	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.090_02</doap:revision>
 	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
 </rdf:Description>
+<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_03">
+	<dcs:changeset rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r4"/>
+	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-08-10</dc:issued>
+	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-T-0.090_03.tar.gz"/>
+	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.090_03</doap:revision>
+	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
+</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"/>

JSON-T-0.090_03.tar.gz

Binary file added.
   homepage: http://search.cpan.org/dist/JSON-T/
   license: http://opensource.org/licenses/lgpl-license.php
   repository: http://goddamn.co.uk/viewvc/perlmods/JSON-T/
-version: 0.090_02
+version: 0.090_03
 use overload '""' => \&to_string;
 
 use JE;
-use JSON;
+use JSON qw[];
 
 our $JSLIB;
-our $VERSION = '0.090_02';
+our $VERSION = '0.090_03';
 
 sub new
 {
 {
 	my ($self, $input) = @_;
 	
-	if (ref $input)
-	{
-		$input = to_json($input);
-	}
+	$input = JSON::to_json($input)
+		if ref $input;
 	
 	my $name = $self->{'name'};
 	my $rv1  = $self->{'engine'}->eval("return_to_perl(JSON.transform($input, $name));");
 
 sub transform_structure
 {
-	my ($self, $input) = @_;
+	my ($self, $input, $debug) = @_;
 	my $output = $self->transform($input);
-	return from_json($output);
+	eval 'use Test::More; Test::More::diag("\n${output}\n");'
+		if $debug;
+	return JSON::from_json($output);
 }
 *transform_document = \&transform_structure;
 

lib/JSON/T/SpiderMonkey.pm

 use JSON;
 
 our $JSLIB;
-our $VERSION = '0.090_02';
+our $VERSION = '0.090_03';
 
 sub new
 {
 JSONT
 
 my $T = JSON::T->new($jsont);
-my $R = $T->transform_structure($json);
+my $R = $T->transform_structure($json, 'debug');
 
 ok($R, 'returned something that smelt like JSON');
 is($R->{'_:Contact'}->{'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'}->[0]->{'type'},