From 0cb113b50de0f2b27930c1249f1a1d48da8a8baa Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Sat, 27 Jun 2026 22:34:41 -0700 Subject: [PATCH] Add metadata links to the gemspec Add a metadata block so RubyGems.org renders sidebar links to the source, changelog, issue tracker, and documentation. homepage_uri is omitted since it would duplicate s.homepage and source_code_uri. Signed-off-by: Tim Smith --- chefspec.gemspec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chefspec.gemspec b/chefspec.gemspec index b3719b92..2143087c 100644 --- a/chefspec.gemspec +++ b/chefspec.gemspec @@ -17,6 +17,13 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/chef/chefspec" s.license = "MIT" + s.metadata = { + "source_code_uri" => "https://github.com/chef/chefspec", + "changelog_uri" => "https://github.com/chef/chefspec/blob/main/CHANGELOG.md", + "bug_tracker_uri" => "https://github.com/chef/chefspec/issues", + "documentation_uri" => "https://github.com/chef/chefspec/blob/main/README.md", + } + # Packaging s.files = %w{LICENSE Rakefile Gemfile chefspec.gemspec} + Dir.glob("{lib,templates,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } s.require_paths = ["lib"]