[libdist-inkt-doap-perl] 02/41: Use the new support_forum method to find the IRC channel

Jonas Smedegaard dr at jones.dk
Fri Dec 22 13:45:41 UTC 2017


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

js pushed a commit to annotated tag debian/0.100-1
in repository libdist-inkt-doap-perl.

commit b6aa7a4735c87e68c577a292dc460e7004eeee22
Author: Kjetil Kjernsmo <kjetil at kjernsmo.net>
Date:   Mon Aug 21 15:43:48 2017 +0200

    Use the new support_forum method to find the IRC channel
---
 lib/Dist/Inkt/Role/ProcessDOAP.pm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/Dist/Inkt/Role/ProcessDOAP.pm b/lib/Dist/Inkt/Role/ProcessDOAP.pm
index 1dd2413..4e07a11 100644
--- a/lib/Dist/Inkt/Role/ProcessDOAP.pm
+++ b/lib/Dist/Inkt/Role/ProcessDOAP.pm
@@ -6,6 +6,7 @@ our $VERSION   = '0.022';
 use Moose::Role;
 use List::MoreUtils 'uniq';
 use namespace::autoclean;
+use URI;
 
 with 'Dist::Inkt::Role::RDFModel';
 
@@ -157,7 +158,15 @@ sub cpanmeta_resources
 		map  { $_->uri }
 		grep defined,
 		$self->model->objects(RDF::Trine::iri($self->project_uri), $CPAN->x_IRC);
-	
+
+	foreach my $forum (@{ $self->doap_project->support_forum }) {
+		my $forumuri = URI->new($forum->uri);
+		if ($forumuri->scheme =~ m/^ircs?$/) {
+			$resources{x_IRC} = $forumuri->as_string;
+			last;
+		}
+	}
+
 	delete $resources{$_} for grep !defined $resources{$_}, keys %resources;
 	
 	return \%resources;

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



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