From 200df2fd406eecc919fa0bebea1f67d515e4e49f Mon Sep 17 00:00:00 2001 From: Juanito Fatas Date: Thu, 28 Nov 2019 11:07:13 +0900 Subject: [PATCH 1/2] Revert changes to generated gemspec --- loofah.gemspec | 9 --------- 1 file changed, 9 deletions(-) diff --git a/loofah.gemspec b/loofah.gemspec index 3c9d0d46..b56f0cca 100644 --- a/loofah.gemspec +++ b/loofah.gemspec @@ -20,15 +20,6 @@ Gem::Specification.new do |s| s.rubygems_version = "3.0.3".freeze s.summary = "Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri".freeze - s.metadata = { - 'bug_tracker_uri' => 'https://github.com/flavorjones/loofah/issues', - 'changelog_uri' => "https://github.com/flavorjones/loofah/blob/v#{s.version}/CHANGELOG.md", - 'documentation_uri' => "https://www.rubydoc.info/gems/loofah/#{s.version}", - 'mailing_list_uri' => 'https://groups.google.com/forum/#!forum/loofah-talk', - 'source_code_uri' => "https://github.com/flavorjones/loofah/tree/v#{s.version}", - 'wiki_uri' => 'https://github.com/flavorjones/loofah/wiki' - } - if s.respond_to? :specification_version then s.specification_version = 4 From 6e26a30fcf6f3d48841ac03248ac6bf0456f2882 Mon Sep 17 00:00:00 2001 From: Juanito Fatas Date: Thu, 28 Nov 2019 11:28:04 +0900 Subject: [PATCH 2/2] Update URL to hash format to generate metadata --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rakefile b/Rakefile index b68407f8..69f9ff93 100644 --- a/Rakefile +++ b/Rakefile @@ -15,6 +15,13 @@ Hoe.spec "loofah" do self.history_file = "CHANGELOG.md" self.readme_file = "README.md" self.license "MIT" + self.urls = { + "home" => "https://github.com/flavorjones/loofah", + "bugs" => "https://github.com/flavorjones/loofah/issues", + "doco" => "https://www.rubydoc.info/gems/loofah/", + "clog" => "https://github.com/flavorjones/loofah/master/CHANGELOG.md", + "code" => "https://github.com/flavorjones/loofah", + } extra_deps << ["nokogiri", ">=1.5.9"] extra_deps << ["crass", "~> 1.0.2"]