From 8afb2d3c82fad8e90f729ac1af1f3ab899806c4f Mon Sep 17 00:00:00 2001 From: Alex Legler Date: Tue, 5 Jan 2016 16:01:55 +0100 Subject: A little less conversion 🎶 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'projects.rb') diff --git a/projects.rb b/projects.rb index 31a90e1..45d121b 100755 --- a/projects.rb +++ b/projects.rb @@ -6,6 +6,7 @@ require_relative 'lib/vocabulary' require 'backports/2.1.0/array/to_h' require 'json' require 'rdf/rdfxml' +require 'uri' include RDF abort "Usage: #{$PROGRAM_NAME} " unless ARGV.first @@ -63,7 +64,7 @@ projects_q.execute(graph) do |result| project['email'] = email result[:proj_email].to_s project['description'] = result[:proj_desc].to_s project['irc'] = result[:proj_irc].to_s - project['href'] = https result[:proj_href].to_s + project['href'] = URI.decode(https(result[:proj_href].to_s)) project['propagates_members'] = result[:propagates_members].to_s == 'true' parent_id = label_to_id result[:parent_title].to_s -- cgit v1.2.3-65-gdbad