From 845da04cad37885aadc4495c8e7e476de54aa803 Mon Sep 17 00:00:00 2001 From: Orien Madgwick <_@orien.io> Date: Sat, 5 Oct 2019 12:14:39 +1000 Subject: [PATCH] Add project metadata to the gemspec As per https://guides.rubygems.org/specification-reference/#metadata, add metadata to the gemspec file. This'll allow people to more easily access the source code, raise issues and read the changelog. These `bug_tracker_uri`, `changelog_uri`, `documentation_uri`, and `source_code_uri` links will appear on the rubygems page at https://rubygems.org/gems/rails-html-sanitizer and be available via the rubygems API after the next release. --- rails-html-sanitizer.gemspec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rails-html-sanitizer.gemspec b/rails-html-sanitizer.gemspec index 317f38b..c9637b7 100644 --- a/rails-html-sanitizer.gemspec +++ b/rails-html-sanitizer.gemspec @@ -13,6 +13,13 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/rails/rails-html-sanitizer" spec.license = "MIT" + spec.metadata = { + "bug_tracker_uri" => "https://github.com/rails/rails-html-sanitizer/issues", + "changelog_uri" => "https://github.com/rails/rails-html-sanitizer/blob/v#{spec.version}/CHANGELOG.md", + "documentation_uri" => "https://www.rubydoc.info/gems/rails-html-sanitizer/#{spec.version}", + "source_code_uri" => "https://github.com/rails/rails-html-sanitizer/tree/v#{spec.version}", + } + spec.files = Dir["lib/**/*", "README.md", "MIT-LICENSE", "CHANGELOG.md"] spec.test_files = Dir["test/**/*"] spec.require_paths = ["lib"]