Skip to content

Commit 7e94281

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`, `wiki_uri` and `source_code_uri` links will appear on the rubygems page at https://rubygems.org/gems/zendesk_api after the next release.
1 parent e4372c6 commit 7e94281

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

zendesk_api.gemspec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ Gem::Specification.new do |s|
1313
s.description = 'Ruby wrapper for the REST API at https://www.zendesk.com. Documentation at https://developer.zendesk.com.'
1414
s.license = 'Apache License Version 2.0'
1515

16+
s.metadata = {
17+
'bug_tracker_uri' => 'https://github.com/zendesk/zendesk_api_client_rb/issues',
18+
'changelog_uri' => "https://github.com/zendesk/zendesk_api_client_rb/blob/v#{s.version}/CHANGELOG.md",
19+
'documentation_uri' => "https://www.rubydoc.info/gems/zendesk_api/#{s.version}",
20+
'source_code_uri' => "https://github.com/zendesk/zendesk_api_client_rb/tree/v#{s.version}",
21+
'wiki_uri' => 'https://github.com/zendesk/zendesk_api_client_rb/wiki'
22+
}
23+
1624
s.files = Dir.glob('{lib,util}/**/*')
1725

1826
s.required_ruby_version = ">= 2.3"

0 commit comments

Comments
 (0)