Skip to content

Commit

Permalink
Add project metadata to the gemspec
Browse files Browse the repository at this point in the history
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`, and
`source_code_uri` links will appear on the rubygems page at
https://rubygems.org/gems/crass and be available via the rubygems API
after the next release.
  • Loading branch information
orien committed Oct 16, 2019
1 parent 30b9aa4 commit b349cc8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crass.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/rgrove/crass/'
s.license = 'MIT'

s.metadata = {
'bug_tracker_uri' => 'https://github.com/rgrove/crass/issues',
'changelog_uri' => "https://github.com/rgrove/crass/blob/v#{s.version}/HISTORY.md",
'documentation_uri' => "https://www.rubydoc.info/gems/crass/#{s.version}",
'source_code_uri' => "https://github.com/rgrove/crass/tree/v#{s.version}",
}

s.platform = Gem::Platform::RUBY
s.required_ruby_version = Gem::Requirement.new('>= 1.9.2')

Expand Down

0 comments on commit b349cc8

Please sign in to comment.