From 37f5ed8bea77619953153e07ab04cbfb4b572eaf Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Tue, 16 Dec 2025 08:21:44 -0700 Subject: [PATCH] Add source code URI to gemspec metadata Since the homepage is set to Wordpress, it's not immediately clear where the source is when viewing the gem on Rubygems. This will add a "Source Code" link to the Rubygems sidebar. --- method_source.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/method_source.gemspec b/method_source.gemspec index 1df1692..d82d53a 100644 --- a/method_source.gemspec +++ b/method_source.gemspec @@ -13,6 +13,7 @@ Gem::Specification.new do |s| s.files = ["CHANGELOG.md".freeze, ".gemtest".freeze, ".travis.yml".freeze, ".yardopts".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.markdown".freeze, "Rakefile".freeze, "lib/method_source.rb".freeze, "lib/method_source/code_helpers.rb".freeze, "lib/method_source/source_location.rb".freeze, "lib/method_source/version.rb".freeze, "method_source.gemspec".freeze, "spec/method_source/code_helpers_spec.rb".freeze, "spec/method_source_spec.rb".freeze, "spec/spec_helper.rb".freeze] s.homepage = "http://banisterfiend.wordpress.com".freeze s.metadata["changelog_uri"] = "https://github.com/banister/method_source/blob/master/CHANGELOG.md".freeze + s.metadata["source_code_uri"] = "https://github.com/banister/method_source".freeze s.licenses = ["MIT".freeze] s.summary = "retrieve the sourcecode for a method".freeze s.test_files = ["spec/method_source/code_helpers_spec.rb".freeze, "spec/method_source_spec.rb".freeze, "spec/spec_helper.rb".freeze]