diff options
| author | Alexander Popov <alex.wayfer@gmail.com> | 2023-02-26 03:40:26 +0300 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-03-01 23:42:49 +0000 |
| commit | bc668d75f622a65e32def0672b200e52e87c274a (patch) | |
| tree | 8a1b8e6c4f6f62b1070a08c676b3b046ebe3ca6d | |
| parent | 8a5110b66482098451d4bf31fad414591002fe90 (diff) | |
[ruby/uri] Take out GitHub link for gemspec metadata
https://github.com/ruby/uri/commit/ca4638a4b3
| -rw-r--r-- | lib/uri/uri.gemspec | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/uri/uri.gemspec b/lib/uri/uri.gemspec index ce5dfd7dfa..6e77f10425 100644 --- a/lib/uri/uri.gemspec +++ b/lib/uri/uri.gemspec @@ -12,17 +12,20 @@ Gem::Specification.new do |spec| spec.summary = %q{URI is a module providing classes to handle Uniform Resource Identifiers} spec.description = spec.summary - spec.homepage = "https://github.com/ruby/uri" + + github_link = "https://github.com/ruby/uri" + + spec.homepage = github_link spec.licenses = ["Ruby", "BSD-2-Clause"] spec.required_ruby_version = '>= 2.4' spec.metadata = { - "bug_tracker_uri" => "https://github.com/ruby/uri/issues", - "changelog_uri" => "https://github.com/ruby/uri/releases", + "bug_tracker_uri" => "#{github_link}/issues", + "changelog_uri" => "#{github_link}/releases", "documentation_uri" => "https://rubydoc.info/gems/uri", "homepage_uri" => spec.homepage, - "source_code_uri" => spec.homepage + "source_code_uri" => github_link } # Specify which files should be added to the gem when it is released. |
