Skip to content

Commit 08a1b86

Browse files
committed
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, homepage_uri, source_code_uri, and wiki_uri links will appear on the rubygems page at https://rubygems.org/gems/webmachine and be available via the Rubygems API after the next release.
1 parent f0d6db2 commit 08a1b86

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

webmachine.gemspec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ Gem::Specification.new do |gem|
1515
gem.email = ["[email protected]"]
1616
gem.license = "Apache-2.0"
1717

18+
gem.metadata["bug_tracker_uri"] = "#{gem.homepage}/issues"
19+
gem.metadata["changelog_uri"] = "#{gem.homepage}/blob/HEAD/CHANGELOG.md"
20+
gem.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/webmachine/#{gem.version}"
21+
gem.metadata["homepage_uri"] = gem.homepage
22+
gem.metadata["source_code_uri"] = gem.homepage
23+
gem.metadata["wiki_uri"] = "#{gem.homepage}/wiki"
24+
1825
gem.add_runtime_dependency(%q<i18n>, [">= 0.4.0"])
1926
gem.add_runtime_dependency(%q<multi_json>)
2027
gem.add_runtime_dependency(%q<as-notifications>, [">= 1.0.2", "< 2.0"])

0 commit comments

Comments
 (0)