[libmodule-install-doapchangesets-perl] 11/47: Improve text output; no longer rely on command-line 'rapper' tool for XML output.

Jonas Smedegaard js at alioth.debian.org
Fri Aug 9 14:08:36 UTC 2013


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libmodule-install-doapchangesets-perl.

commit 89875e16fbca795b4f5f635b77032afa873c2c2c
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date:   Mon Jul 19 07:41:13 2010 +0000

    Improve text output; no longer rely on command-line 'rapper' tool for XML output.
    
    --HG--
    branch : Module-Install-DOAPChangeSets
    extra : convert_revision : svn%3A3fe8e991-6959-4966-b76d-b07eca2b6e37/Module-Install-DOAPChangeSets%40427
---
 Changes                                      |    4 +
 Changes.ttl                                  |   45 ++++---
 Changes.xml                                  |  181 --------------------------
 META.yml                                     |    4 +-
 Module-Install-DOAPChangeSets-0.100.tar.gz   |  Bin 0 -> 33238 bytes
 README                                       |    3 +-
 lib/Module/Install/Admin/DOAPChangeSets.pm   |   27 +++-
 lib/Module/Install/DOAPChangeSets.pm         |   15 +--
 lib/Module/Install/DOAPChangeSets/Format.pod |    5 +-
 lib/RDF/DOAP/ChangeSets.pm                   |   14 +-
 10 files changed, 67 insertions(+), 231 deletions(-)

diff --git a/Changes b/Changes
index 6591f57..dc0ca16 100644
--- a/Changes
+++ b/Changes
@@ -10,6 +10,10 @@ Home page:    <http://search.cpan.org/dist/Module-Install-DOAPChangeSets/>
 Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=Module-Install-DOAPChangeSets>
 Maintainer:   Toby Inkster <mailto:tobyink at cpan.org>
 
+0.100 [2010-07-18]
+ - Sort change items within each version for text output.
+ - Use RDF::Trine::Serializer::RDFXML for XML output.
+
 0.04 [2010-04-07]
  - (Update) Best practice is to use http://purl.org/NET/cpan-uri/.
 
diff --git a/Changes.ttl b/Changes.ttl
index f1d28ea..1e9ab3a 100644
--- a/Changes.ttl
+++ b/Changes.ttl
@@ -39,24 +39,22 @@ my:v_0-00_02
 	rdfs:comment    "Developer preview."@en ;
 	dcs:changeset [
 		dcs:versus my:v_0-00_01 ;
-		dcs:item
-			[ rdfs:label "Don't recommend QNames containing '.' -- they're supported by libraptor, but illegal in Turtle."@en ]
+		dcs:item   [ rdfs:label "Don't recommend QNames containing '.' -- they're supported by libraptor, but illegal in Turtle."@en ]
 	] .
 
 my:v_0-00_03
 
 	a               :Version ;
-	dc:issued	"2010-01-11"^^xsd:date ;
-	:revision	"0.00_03"^^xsd:string ;
+	dc:issued       "2010-01-11"^^xsd:date ;
+	:revision       "0.00_03"^^xsd:string ;
 	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.00_03.tar.gz> ;
-	rdfs:label	"Omega 3" ;
+	rdfs:label      "Omega 3" ;
 	rdfs:comment    "Developer preview."@en ;
 	dcs:changeset [
 		dcs:versus my:v_0-00_02 ;
-		dcs:item
-			[ rdfs:label "Support Aaron Cope's changefile vocab as a legacy input format."@en ; a dcs:Addition ] ,
-			[ rdfs:label "Reverse order of versions in Changelog (newest at top)"@en ] ,
-			[ rdfs:label "Use Text::Wrap to wrap text."@en ; a dcs:Addition ]
+		dcs:item   [ rdfs:label "Support Aaron Cope's changefile vocab as a legacy input format."@en ; a dcs:Addition ] ;
+		dcs:item   [ rdfs:label "Reverse order of versions in Changelog (newest at top)"@en ] ;
+		dcs:item   [ rdfs:label "Use Text::Wrap to wrap text."@en ; a dcs:Addition ]
 	] .
 
 my:v_0-00_04
@@ -69,8 +67,7 @@ my:v_0-00_04
 	rdfs:comment    "Developer preview."@en ;
 	dcs:changeset [
 		dcs:versus my:v_0-00_03 ;
-		dcs:item
-			[ rdfs:label "Split out RDF::DOAP::ChangeSets as a separate Perl module."@en ]
+		dcs:item   [ rdfs:label "Split out RDF::DOAP::ChangeSets as a separate Perl module."@en ]
 	] .
 
 my:v_0-01
@@ -82,8 +79,7 @@ my:v_0-01
 	rdfs:comment    "First vaguely stable release."@en ;
 	dcs:changeset [
 		dcs:versus my:v_0-00_04 ;
-		dcs:item
-			[ rdfs:label "Documentation improvements."@en ]
+		dcs:item   [ rdfs:label "Documentation improvements."@en ]
 	] .
 
 my:v_0-02
@@ -94,8 +90,7 @@ my:v_0-02
 	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.02.tar.gz> ;
 	dcs:changeset [
 		dcs:versus my:v-0_01 ;
-		dcs:item
-			[ rdfs:label "Project name was being overridden by URI."@en ; a dcs:Bugfix ]
+		dcs:item   [ rdfs:label "Project name was being overridden by URI."@en ; a dcs:Bugfix ]
 	] .
 
 my:v_0-03
@@ -106,8 +101,7 @@ my:v_0-03
 	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.03.tar.gz> ;
 	dcs:changeset [
 		dcs:versus my:v_0-02 ;
-		dcs:item
-			[ rdfs:label "Use Perl::Version to sort revisions in output."@en ]
+		dcs:item   [ rdfs:label "Use Perl::Version to sort revisions in output."@en ]
 	] .
 
 my:v_0-04
@@ -118,8 +112,19 @@ my:v_0-04
 	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.04.tar.gz> ;
 	dcs:changeset [
 		dcs:versus my:v_0-03 ;
-		dcs:item
-			[ rdfs:label "Best practice is to use http://purl.org/NET/cpan-uri/."@en ; a dcs:Update ]
+		dcs:item   [ rdfs:label "Best practice is to use http://purl.org/NET/cpan-uri/."@en ; a dcs:Update ]
+	] .
+
+my:v_0-100
+
+	a               :Version ;
+	dc:issued       "2010-07-18"^^xsd:date ;
+	:revision       "0.100"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.100.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-04 ;
+		dcs:item   [ rdfs:label "Use RDF::Trine::Serializer::RDFXML for XML output."@en ] ;
+		dcs:item   [ rdfs:label "Sort change items within each version for text output."@en ]
 	] .
 
 
@@ -142,7 +147,7 @@ my:project
 	:created        "2010-01-08"^^xsd:date ;
 	:license        <http://dev.perl.org/licenses/> ;
 	:release        my:v_0-00_01 , my:v_0-00_02 , my:v_0-00_03 , my:v_0-00_04 , 
-	                my:v_0-01 , my:v_0-02 , my:v_0-03 , my:v_0-04 .
+	                my:v_0-01 , my:v_0-02 , my:v_0-03 , my:v_0-04 , my:v_0-100 .
 
 #############################################################
 
diff --git a/Changes.xml b/Changes.xml
index a5ac9cb..e69de29 100644
--- a/Changes.xml
+++ b/Changes.xml
@@ -1,181 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<rdf:RDF
-   xmlns:dc="http://purl.org/dc/terms/"
-   xmlns:dcs="http://ontologi.es/doap-changeset#"
-   xmlns:foaf="http://xmlns.com/foaf/0.1/"
-   xmlns:my="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
-   xmlns:toby="http://tobyinkster.co.uk/#"
-   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
-   xmlns="http://usefulinc.com/ns/doap#">
-  <rdf:Description rdf:about="file:///home/tai/src/perlmods/Module-Install-DOAPChangeSets/Changes.ttl">
-    <dc:creator rdf:resource="http://tobyinkster.co.uk/#i"/>
-    <dc:description xml:lang="en">Revision history for Perl extension Module::Install::DOAPChangeSets.</dc:description>
-    <dc:subject rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/project"/>
-    <dc:title>Changes</dc:title>
-  </rdf:Description>
-  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_01">
-    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-01-08</dc:issued>
-    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.00_01.tar.gz"/>
-    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.00_01</revision>
-    <rdfs:comment xml:lang="en">Developer preview.</rdfs:comment>
-    <rdfs:label>Omega 1</rdfs:label>
-  </Version>
-  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_02">
-    <dcs:changeset>
-      <rdf:Description>
-        <dcs:item>
-          <rdf:Description>
-            <rdfs:label xml:lang="en">Don't recommend QNames containing '.' -- they're supported by libraptor, but illegal in Turtle.</rdfs:label>
-          </rdf:Description>
-        </dcs:item>
-        <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_01"/>
-      </rdf:Description>
-    </dcs:changeset>
-    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-01-08</dc:issued>
-    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.00_02.tar.gz"/>
-    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.00_02</revision>
-    <rdfs:comment xml:lang="en">Developer preview.</rdfs:comment>
-    <rdfs:label>Omega 2</rdfs:label>
-  </Version>
-  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_03">
-    <dcs:changeset>
-      <rdf:Description>
-        <dcs:item>
-          <dcs:Addition>
-            <rdfs:label xml:lang="en">Support Aaron Cope's changefile vocab as a legacy input format.</rdfs:label>
-          </dcs:Addition>
-        </dcs:item>
-        <dcs:item>
-          <rdf:Description>
-            <rdfs:label xml:lang="en">Reverse order of versions in Changelog (newest at top)</rdfs:label>
-          </rdf:Description>
-        </dcs:item>
-        <dcs:item>
-          <dcs:Addition>
-            <rdfs:label xml:lang="en">Use Text::Wrap to wrap text.</rdfs:label>
-          </dcs:Addition>
-        </dcs:item>
-        <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_02"/>
-      </rdf:Description>
-    </dcs:changeset>
-    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-01-11</dc:issued>
-    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.00_03.tar.gz"/>
-    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.00_03</revision>
-    <rdfs:comment xml:lang="en">Developer preview.</rdfs:comment>
-    <rdfs:label>Omega 3</rdfs:label>
-  </Version>
-  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_04">
-    <dcs:changeset>
-      <rdf:Description>
-        <dcs:item>
-          <rdf:Description>
-            <rdfs:label xml:lang="en">Split out RDF::DOAP::ChangeSets as a separate Perl module.</rdfs:label>
-          </rdf:Description>
-        </dcs:item>
-        <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_03"/>
-      </rdf:Description>
-    </dcs:changeset>
-    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-01-13</dc:issued>
-    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.00_04.tar.gz"/>
-    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.00_04</revision>
-    <rdfs:comment xml:lang="en">Developer preview.</rdfs:comment>
-    <rdfs:label>Omega 4</rdfs:label>
-  </Version>
-  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-01">
-    <dcs:changeset>
-      <rdf:Description>
-        <dcs:item>
-          <rdf:Description>
-            <rdfs:label xml:lang="en">Documentation improvements.</rdfs:label>
-          </rdf:Description>
-        </dcs:item>
-        <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_04"/>
-      </rdf:Description>
-    </dcs:changeset>
-    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-01-18</dc:issued>
-    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.01.tar.gz"/>
-    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.01</revision>
-    <rdfs:comment xml:lang="en">First vaguely stable release.</rdfs:comment>
-  </Version>
-  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-02">
-    <dcs:changeset>
-      <rdf:Description>
-        <dcs:item>
-          <dcs:Bugfix>
-            <rdfs:label xml:lang="en">Project name was being overridden by URI.</rdfs:label>
-          </dcs:Bugfix>
-        </dcs:item>
-        <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v-0_01"/>
-      </rdf:Description>
-    </dcs:changeset>
-    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-01-27</dc:issued>
-    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.02.tar.gz"/>
-    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.02</revision>
-  </Version>
-  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-03">
-    <dcs:changeset>
-      <rdf:Description>
-        <dcs:item>
-          <rdf:Description>
-            <rdfs:label xml:lang="en">Use Perl::Version to sort revisions in output.</rdfs:label>
-          </rdf:Description>
-        </dcs:item>
-        <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-02"/>
-      </rdf:Description>
-    </dcs:changeset>
-    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-03-26</dc:issued>
-    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.03.tar.gz"/>
-    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.03</revision>
-  </Version>
-  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-04">
-    <dcs:changeset>
-      <rdf:Description>
-        <dcs:item>
-          <dcs:Update>
-            <rdfs:label xml:lang="en">Best practice is to use http://purl.org/NET/cpan-uri/.</rdfs:label>
-          </dcs:Update>
-        </dcs:item>
-        <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-03"/>
-      </rdf:Description>
-    </dcs:changeset>
-    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-04-07</dc:issued>
-    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAPChangeSets-0.04.tar.gz"/>
-    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.04</revision>
-  </Version>
-  <Project rdf:about="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/project">
-    <bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=Module-Install-DOAPChangeSets"/>
-    <created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-01-08</created>
-    <developer rdf:resource="http://tobyinkster.co.uk/#i"/>
-    <documenter rdf:resource="http://tobyinkster.co.uk/#i"/>
-    <download-page rdf:resource="http://search.cpan.org/dist/Module-Install-DOAPChangeSets/"/>
-    <homepage rdf:resource="http://search.cpan.org/dist/Module-Install-DOAPChangeSets/"/>
-    <license rdf:resource="http://dev.perl.org/licenses/"/>
-    <maintainer rdf:resource="http://tobyinkster.co.uk/#i"/>
-    <name>Module-Install-DOAPChangeSets</name>
-    <programming-language>Perl</programming-language>
-    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_01"/>
-    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_02"/>
-    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_03"/>
-    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-00_04"/>
-    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-01"/>
-    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-02"/>
-    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-03"/>
-    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/Module-Install-DOAPChangeSets/v_0-04"/>
-    <repository>
-      <SVNRepository>
-        <browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/Module-Install-DOAPChangeSets/"/>
-      </SVNRepository>
-    </repository>
-    <shortdesc xml:lang="en">write your distribution change log in RDF</shortdesc>
-    <tester rdf:resource="http://tobyinkster.co.uk/#i"/>
-  </Project>
-  <foaf:Person rdf:about="http://tobyinkster.co.uk/#i">
-    <ns1:sameAs xmlns:ns1="http://www.w3.org/2002/07/owl#" rdf:resource="http://purl.org/NET/cpan-uri/person/tobyink"/>
-    <foaf:homepage rdf:resource="http://tobyinkster.co.uk/"/>
-    <foaf:mbox rdf:resource="mailto:tobyink at cpan.org"/>
-    <foaf:name>Toby Inkster</foaf:name>
-    <foaf:page rdf:resource="http://search.cpan.org/~tobyink/"/>
-  </foaf:Person>
-</rdf:RDF>
diff --git a/META.yml b/META.yml
index b8d6937..2d50710 100644
--- a/META.yml
+++ b/META.yml
@@ -8,7 +8,7 @@ build_requires:
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
-generated_by: 'Module::Install version 0.91'
+generated_by: 'Module::Install version 0.95'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -32,4 +32,4 @@ resources:
   homepage: http://search.cpan.org/dist/Module-Install-DOAPChangeSets/
   license: http://dev.perl.org/licenses/
   repository: http://goddamn.co.uk/viewvc/perlmods/Module-Install-DOAPChangeSets/
-version: 0.04
+version: 0.100
diff --git a/Module-Install-DOAPChangeSets-0.100.tar.gz b/Module-Install-DOAPChangeSets-0.100.tar.gz
new file mode 100644
index 0000000..d6c856e
Binary files /dev/null and b/Module-Install-DOAPChangeSets-0.100.tar.gz differ
diff --git a/README b/README
index 7594701..c91741a 100644
--- a/README
+++ b/README
@@ -46,6 +46,5 @@ COPYRIGHT AND LICENSE
     Copyright (C) 2010 by Toby Inkster
 
     This library is free software; you can redistribute it and/or modify it
-    under the same terms as Perl itself, either Perl version 5.8 or, at your
-    option, any later version of Perl 5 you may have available.
+    under the same terms as Perl itself.
 
diff --git a/lib/Module/Install/Admin/DOAPChangeSets.pm b/lib/Module/Install/Admin/DOAPChangeSets.pm
index b1a2001..7be94f3 100644
--- a/lib/Module/Install/Admin/DOAPChangeSets.pm
+++ b/lib/Module/Install/Admin/DOAPChangeSets.pm
@@ -1,16 +1,16 @@
 package Module::Install::Admin::DOAPChangeSets;
 
+use 5.008;
+use base qw(Module::Install::Base);
 use strict;
+
 use RDF::DOAP::ChangeSets;
+use RDF::Trine;
 use File::Slurp qw(slurp);
 use URI::file;
 use Module::Install::Base;
 
-use vars qw{$VERSION @ISA};
-BEGIN {
-	$VERSION = '0.04';
-	@ISA     = qw{Module::Install::Base};
-}
+our $VERSION = '0.100';
 
 sub write_doap_changes
 {
@@ -34,8 +34,21 @@ sub write_doap_changes_xml
 	my $out  = shift || "Changes.xml";
 	my $fmt  = shift || "turtle";
 	
-	my $r = system("rapper -q -i $fmt -o rdfxml-abbrev $in >$out");
-	warn "Error running 'rapper'\n" if $r;
+	my $data  = slurp($in);
+	my $inuri = URI::file->new_abs($in);
+	
+	my $changeset = RDF::DOAP::ChangeSets->new($inuri, undef, 'auto', $fmt);
+	my $rdfxml    = RDF::Trine::Serializer::RDFXML->new(namespaces => {
+		dbug    => 'http://ontologi.es/doap-bugs#',
+		dc      => 'http://purl.org/dc/terms/',
+		dcs     => 'http://ontologi.es/doap-changeset#',
+		doap    => 'http://usefulinc.com/ns/doap#',
+		foaf    => 'http://xmlns.com/foaf/0.1/',
+		rdfs    => 'http://www.w3.org/2000/01/rdf-schema#',
+		});
+	open my $fh, ">$out";
+	
+	close $fh;
 }
 
 1;
diff --git a/lib/Module/Install/DOAPChangeSets.pm b/lib/Module/Install/DOAPChangeSets.pm
index 959000c..56aca0e 100644
--- a/lib/Module/Install/DOAPChangeSets.pm
+++ b/lib/Module/Install/DOAPChangeSets.pm
@@ -1,14 +1,10 @@
 package Module::Install::DOAPChangeSets;
 
-use strict;
 use 5.008;
-use Module::Install::Base ();
+use base qw(Module::Install::Base);
+use strict;
 
-use vars qw{$VERSION @ISA};
-BEGIN {
-        $VERSION = '0.04';
-        @ISA     = 'Module::Install::Base';
-}
+our $VERSION = '0.100';
 
 sub write_doap_changes {
 	my $self = shift;
@@ -74,8 +70,7 @@ Toby Inkster E<lt>tobyink at cpan.orgE<gt>.
 
 Copyright (C) 2010 by Toby Inkster
 
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself, either Perl version 5.8 or,
-at your option, any later version of Perl 5 you may have available.
+This library is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
 
 =cut
diff --git a/lib/Module/Install/DOAPChangeSets/Format.pod b/lib/Module/Install/DOAPChangeSets/Format.pod
index 8f90116..d619999 100644
--- a/lib/Module/Install/DOAPChangeSets/Format.pod
+++ b/lib/Module/Install/DOAPChangeSets/Format.pod
@@ -120,9 +120,8 @@ Toby Inkster E<lt>tobyink at cpan.orgE<gt>.
 
 Copyright (C) 2010 by Toby Inkster
 
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself, either Perl version 5.8 or,
-at your option, any later version of Perl 5 you may have available.
+This library is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
 
 =cut
 
diff --git a/lib/RDF/DOAP/ChangeSets.pm b/lib/RDF/DOAP/ChangeSets.pm
index 971ec44..bb3bd4c 100644
--- a/lib/RDF/DOAP/ChangeSets.pm
+++ b/lib/RDF/DOAP/ChangeSets.pm
@@ -20,7 +20,9 @@ RDF::DOAP::ChangeSets - create pretty ChangeLogs from RDF
 
 package RDF::DOAP::ChangeSets;
 
+use 5.008;
 use strict;
+
 use File::Slurp qw(slurp);
 use LWP::Simple;
 use Perl::Version;
@@ -28,10 +30,7 @@ use RDF::Trine;
 use RDF::Query;
 use Text::Wrap;
 
-use vars qw{$VERSION};
-BEGIN {
-	$VERSION = '0.04';
-}
+our $VERSION = '0.100';
 
 =head1 DESCRIPTION
 
@@ -234,8 +233,12 @@ sub to_string
 				if $version->{'name'};
 			$rv.= "\n";
 			
+			my @changes = sort {
+				$a->{type} cmp $b->{type} || $a->{label} cmp $b->{label}
+				} values %{$version->{'c'}};
+			
 			# foreach change
-			foreach my $change (values %{$version->{'c'}})
+			foreach my $change (@changes)
 			{
 				my $sigil = '';
 				if (defined $change->{'type'}
@@ -583,7 +586,6 @@ L<RDF::Trine>, L<Module::Install::DOAPChangeSets>.
 
 L<http://www.perlrdf.org/>.
 
-
 =head1 AUTHOR
 
 Toby Inkster E<lt>tobyink at cpan.orgE<gt>.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmodule-install-doapchangesets-perl.git



More information about the Pkg-perl-cvs-commits mailing list