Commits

Toby Inkster committed fed2763

JSON-T now passes tests!

  • Participants
  • Parent commits 6c324a2

Comments (0)

Files changed (7)

 Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=JSON-T>
 Maintainer:   Toby Inkster <mailto:tobyink@cpan.org>
 
+0.090_04 [2010-08-15]
+ - Force stringification of return value of transform method. Pesky
+   JE::String values!
+
 0.090_03 [2010-08-10]
  - Additional debugging info added to tests.
 
 		dcs:item   [ rdfs:label "Additional debugging info added to tests."@en ] 
 		] .
 
+my:v_0-090_04
+
+	a               :Version ;
+	dc:issued       "2010-08-15"^^xsd:date ;
+	:revision       "0.090_04"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-T-0.090_04.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-090_03 ;
+		dcs:item   [ rdfs:label "Force stringification of return value of transform method. Pesky JE::String values!"@en ] 
+		] .
+
 #############################################################
 
 my:project
 	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=JSON-T> ;
 	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/viewvc/perlmods/JSON-T/> ] ;
 	:maintainer     toby:i ;
-	:developer      toby:i ;
+	:developer      toby:i , [ a foaf:Person ; foaf:name "Stefan Goessner" ; foaf:homepage <http://goessner.net/> ] ;
 	:documenter     toby:i ;
 	: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 , my:v_0-090_03 .
+	:release        my:v_0-090_00 , my:v_0-090_01 , my:v_0-090_02 , my:v_0-090_03 , my:v_0-090_04 .
 
 #############################################################
 
 <?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="r5FD50B50A4CB11DF8558BB17469F6638r0">
-	<dcs:item rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r1"/>
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r0">
+	<dcs:item rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r1"/>
 	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_00"/>
 </rdf:Description>
-<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r1">
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r1">
 	<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="r5FD50B50A4CB11DF8558BB17469F6638r2">
-	<dcs:item rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r3"/>
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r2">
+	<dcs:item rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r3"/>
 	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_01"/>
 </rdf:Description>
-<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r3">
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r3">
 	<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="r5FD50B50A4CB11DF8558BB17469F6638r4">
-	<dcs:item rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r5"/>
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r4">
+	<dcs:item rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r5"/>
 	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_02"/>
 </rdf:Description>
-<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r5">
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r5">
 	<rdfs:label xml:lang="en">Additional debugging info added to tests.</rdfs:label>
 </rdf:Description>
-<rdf:Description rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r6">
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r6">
+	<dcs:item rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r7"/>
+	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_03"/>
+</rdf:Description>
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r7">
+	<rdfs:label xml:lang="en">Force stringification of return value of transform method. Pesky JE::String values!</rdfs:label>
+</rdf:Description>
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r8">
 	<doap:browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/JSON-T/"/>
 	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#SVNRepository"/>
 </rdf:Description>
+<rdf:Description rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r9">
+	<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
+	<foaf:homepage rdf:resource="http://goessner.net/"/>
+	<foaf:name>Stefan Goessner</foaf:name>
+</rdf:Description>
 <rdf:Description rdf:about="file:///home/tai/src/perlmods/JSON-T/Changes.ttl">
 	<dc:creator rdf:resource="http://tobyinkster.co.uk/#i"/>
 	<dc:description xml:lang="en">Revision history for Perl extension JSON::T.</dc:description>
 <rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/JSON-T/project">
 	<doap:bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=JSON-T"/>
 	<doap:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-29</doap:created>
+	<doap:developer rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r9"/>
 	<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-T/"/>
 	<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:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_03"/>
-	<doap:repository rdf:nodeID="r5FD50B50A4CB11DF8558BB17469F6638r6"/>
+	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_04"/>
+	<doap:repository rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r8"/>
 	<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="r5FD50B50A4CB11DF8558BB17469F6638r0"/>
+	<dcs:changeset rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r0"/>
 	<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="r5FD50B50A4CB11DF8558BB17469F6638r2"/>
+	<dcs:changeset rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r2"/>
 	<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"/>
+	<dcs:changeset rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r4"/>
 	<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 rdf:about="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_04">
+	<dcs:changeset rdf:nodeID="r9DB0B71AA84C11DFA2EA805BD9BCDBD3r6"/>
+	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-08-15</dc:issued>
+	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-T-0.090_04.tar.gz"/>
+	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.090_04</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_04.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_03
+version: 0.090_04
 use JSON qw[];
 
 our $JSLIB;
-our $VERSION = '0.090_03';
+our $VERSION = '0.090_04';
 
 sub new
 {
 	my $name = $self->{'name'};
 	my $rv1  = $self->{'engine'}->eval("return_to_perl(JSON.transform($input, $name));");
 
-	return $self->{'output'};
+	return $self->{'output'}.''; # stringify
 }
 
 sub transform_structure

lib/JSON/T/SpiderMonkey.pm

 use JSON;
 
 our $JSLIB;
-our $VERSION = '0.090_03';
+our $VERSION = '0.090_04';
 
 sub new
 {