[libmodule-install-doap-perl] 05/34: Use Module::Install::RDF's new feature to automatically detect doap:Project URI.

Jonas Smedegaard js at alioth.debian.org
Thu Aug 8 16:13:46 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-doap-perl.

commit c6f079d15170e9a9a4552ea4d6ba3d97de1d3635
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date:   Sat Nov 26 17:04:22 2011 +0000

    Use Module::Install::RDF's new feature to automatically detect doap:Project URI.
    
    --HG--
    branch : Module-Install-DOAP
---
 lib/Module/Install/Admin/DOAP.pm |    9 +++------
 lib/Module/Install/DOAP.pm       |    2 +-
 meta/changes.ttl                 |   11 +++++++++++
 meta/deps.ttl                    |    8 +++-----
 4 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/lib/Module/Install/Admin/DOAP.pm b/lib/Module/Install/Admin/DOAP.pm
index ea71414..cc844de 100644
--- a/lib/Module/Install/Admin/DOAP.pm
+++ b/lib/Module/Install/Admin/DOAP.pm
@@ -4,12 +4,10 @@ use 5.008;
 use parent qw(Module::Install::Base);
 use strict;
 
-use File::Spec;
-use Module::Install::Admin::RDF;
+use Module::Install::Admin::RDF 0.003;
 use RDF::Trine;
-use URI::file;
 
-our $VERSION = '0.002';
+our $VERSION = '0.003';
 
 use RDF::Trine::Namespace qw[RDF RDFS OWL XSD];
 my $CPAN = RDF::Trine::Namespace->new('http://purl.org/NET/cpan-uri/terms#');
@@ -25,8 +23,7 @@ sub doap_metadata
 	
 	unless (defined $uri)
 	{
-		my @dirs = File::Spec->splitdir(File::Spec->rel2abs(File::Spec->curdir));
-		$uri = sprintf('http://purl.org/NET/cpan-uri/dist/%s/project', $dirs[-1]);
+		$uri = Module::Install::Admin::RDF::rdf_project_uri($self);
 	}
 	unless (ref $uri)
 	{
diff --git a/lib/Module/Install/DOAP.pm b/lib/Module/Install/DOAP.pm
index 9f5ff88..2c21925 100644
--- a/lib/Module/Install/DOAP.pm
+++ b/lib/Module/Install/DOAP.pm
@@ -4,7 +4,7 @@ use 5.008;
 use parent qw(Module::Install::Base);
 use strict;
 
-our $VERSION = '0.002';
+our $VERSION = '0.003';
 our $AUTHOR_ONLY = 1;
 
 sub doap_metadata
diff --git a/meta/changes.ttl b/meta/changes.ttl
index 31f2f63..eec241d 100644
--- a/meta/changes.ttl
+++ b/meta/changes.ttl
@@ -25,3 +25,14 @@ my:v_0-002
 		dcs:versus my:v_0-001 ;
 		dcs:item   [ a dcs:Packaging ; rdfs:label "Upgrade Module::Package::RDF version."@en ] 
 	] .
+
+my:project :release my:v_0-003 .
+my:v_0-003
+	a               :Version ;
+	dc:issued       "2011-11-26"^^xsd:date ;
+	:revision       "0.003"^^xsd:string ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Module-Install-DOAP-0.003.tar.gz> ;
+	dcs:changeset [
+		dcs:versus my:v_0-002 ;
+		dcs:item   [ rdfs:label "Use Module::Install::RDF's new heuristics for detecting the doap:Project URI."@en ] 
+	] .
diff --git a/meta/deps.ttl b/meta/deps.ttl
index b596124..4aae3e4 100644
--- a/meta/deps.ttl
+++ b/meta/deps.ttl
@@ -2,11 +2,9 @@
 
 <http://purl.org/NET/cpan-uri/dist/Module-Install-DOAP/project>
 	:requires
-		"File::Spec 3.0" ,
 		"Module::Install 1.00" ,
-		"Module::Install::RDF 0.001" ,
-		"Module::Install::Admin::RDF 0.001" ,
-		"RDF::Trine 0.112" ,
-		"URI::file 4.0" ;
+		"Module::Install::RDF 0.003" ,
+		"Module::Install::Admin::RDF 0.003" ,
+		"RDF::Trine 0.112" ;
 	:test_requires
 		"Test::More 0.61" .

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



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