Commits

Toby Inkster committed 49b3b72

Use Module::Install::RDF's new feature to automatically detect doap:Project URI.

  • Participants
  • Parent commits 1a0ff96

Comments (0)

Files changed (4)

lib/Module/Install/Admin/DOAP.pm

 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#');
 	
 	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)
 	{

lib/Module/Install/DOAP.pm

 use parent qw(Module::Install::Base);
 use strict;
 
-our $VERSION = '0.002';
+our $VERSION = '0.003';
 our $AUTHOR_ONLY = 1;
 
 sub doap_metadata
 		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 ] 
+	] .
 
 <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" .