From 1ac9d78bf3518571433a3fae7555b6d17d83e86b Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Sat, 27 Jan 2024 22:17:12 +0900 Subject: [PATCH 1/2] Add homepage_uri and documentation_uri --- lrama.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lrama.gemspec b/lrama.gemspec index a930863a..bf940db1 100644 --- a/lrama.gemspec +++ b/lrama.gemspec @@ -17,6 +17,8 @@ Gem::Specification.new do |spec| `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) } end spec.metadata = { + "homepage_uri" => "https://github.com/ruby/lrama", + "documentation_uri" => "https://github.com/ruby/lrama", "bug_tracker_uri" => "https://github.com/ruby/lrama/issues", "changelog_uri" => "https://github.com/ruby/lrama/releases", "source_code_uri" => "https://github.com/ruby/lrama" From 7013ef1fc9c717c368aaa4fb74aeb1d96837c5b6 Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Sat, 27 Jan 2024 22:18:31 +0900 Subject: [PATCH 2/2] Organize gemspec --- lrama.gemspec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lrama.gemspec b/lrama.gemspec index bf940db1..061be06b 100644 --- a/lrama.gemspec +++ b/lrama.gemspec @@ -16,13 +16,13 @@ Gem::Specification.new do |spec| spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) } end - spec.metadata = { - "homepage_uri" => "https://github.com/ruby/lrama", - "documentation_uri" => "https://github.com/ruby/lrama", - "bug_tracker_uri" => "https://github.com/ruby/lrama/issues", - "changelog_uri" => "https://github.com/ruby/lrama/releases", - "source_code_uri" => "https://github.com/ruby/lrama" - } + + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["source_code_uri"] = spec.homepage + spec.metadata["documentation_uri"] = spec.homepage + spec.metadata["changelog_uri"] = "#{spec.homepage}/releases" + spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues" + spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"]