Commits

Toby Inkster  committed 2f83fa6

bugfix for transform method.

  • Participants
  • Parent commits 0b973cc

Comments (0)

Files changed (6)

 Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=JSON-T>
 Maintainer:   Toby Inkster <mailto:tobyink@cpan.org>
 
+0.090_01 [2010-07-30]
+ - (Bugfix) Non-JSON-string input for transform method was not being
+   correctly converted to JSON.
+
 0.090_00 [2010-07-30]
 
 	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-T-0.090_00.tar.gz> ;
 	rdfs:comment    "Original version"@en .
 
+my:v_0-090_01
+
+	a               :Version ;
+	dc:issued       "2010-07-30"^^xsd:date ;
+	:revision       "0.090_01"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/JSON-T-0.090_01.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-090_00 ;
+		dcs:item   [ a dcs:Bugfix ; rdfs:label "Non-JSON-string input for transform method was not being correctly converted to JSON."@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 .
+	:release        my:v_0-090_00 , my:v_0-090_01 .
 
 #############################################################
 
 <?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="r1289B5689BB011DFB7EED0F1E28EB046r0">
+<rdf:Description rdf:nodeID="r230E4B669C2211DFB6E6CDE601C96878r0">
+	<dcs:item rdf:nodeID="r230E4B669C2211DFB6E6CDE601C96878r1"/>
+	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_00"/>
+</rdf:Description>
+<rdf:Description rdf:nodeID="r230E4B669C2211DFB6E6CDE601C96878r1">
+	<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="r230E4B669C2211DFB6E6CDE601C96878r2">
 	<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:name>JSON-T</doap:name>
 	<doap:programming-language>Perl</doap:programming-language>
 	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_00"/>
-	<doap:repository rdf:nodeID="r1289B5689BB011DFB7EED0F1E28EB046r0"/>
+	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/JSON-T/v_0-090_01"/>
+	<doap:repository rdf:nodeID="r230E4B669C2211DFB6E6CDE601C96878r2"/>
 	<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"/>
 	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
 	<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="r230E4B669C2211DFB6E6CDE601C96878r0"/>
+	<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 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"/>

File JSON-T-0.090_01.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_00
+version: 0.090_01

File lib/JSON/T.pm

 use JSON;
 
 our $JSLIB;
-our $VERSION = '0.090_00';
+our $VERSION = '0.090_01';
 
 sub new
 {
 sub to_string
 {
 	my ($self) = @_;
-	return $self->{'transformation'};
+	return 'JsonT:#'.$self->{'name'};
 }
 
 sub parameters
 	
 	if (ref $input)
 	{
-		$input = to_json($self);
+		$input = to_json($input);
 	}
 	
 	my $name = $self->{'name'};