diff options
author | Brian Evans <grknight@gentoo.org> | 2023-04-13 10:44:42 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2023-04-13 10:44:42 -0400 |
commit | 41a01706092561224105eef3f78d82a008f1825f (patch) | |
tree | caf7d54a36da4735222be71db0210a9ccc214841 | |
parent | Gemfile: minimal bump for ruby27 (diff) | |
download | semantic-data-toolkit-41a01706092561224105eef3f78d82a008f1825f.tar.gz semantic-data-toolkit-41a01706092561224105eef3f78d82a008f1825f.tar.bz2 semantic-data-toolkit-41a01706092561224105eef3f78d82a008f1825f.zip |
Replace removed URI.decode with CGI.unescape
Prepares for Ruby 3.0
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rwxr-xr-x | projects.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/projects.rb b/projects.rb index 2d9565a..72f7f6d 100755 --- a/projects.rb +++ b/projects.rb @@ -6,6 +6,7 @@ require_relative 'lib/vocabulary' require 'json' require 'rdf/rdfxml' require 'uri' +require 'cgi' include RDF abort "Usage: #{$PROGRAM_NAME} <RDF graph file or URL>" unless ARGV.first @@ -65,7 +66,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'] = URI.decode(https(result[:proj_href].to_s).gsub('-', '%')) + project['href'] = CGI.unescape(https(result[:proj_href].to_s).gsub('-', '%')) project['propagates_members'] = result[:propagates_members].to_s == 'true' project['lead_election_date'] = result[:proj_lead_election_date].to_s |