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, homepage_uri and
source_code_uri links will appear on the rubygems page at
https://rubygems.org/gems/cfn-model and be available via the rubygems
API after the next release.
  • Loading branch information
orien committed Dec 25, 2020
1 parent 08447b7 commit 7db440b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cfn-model.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ Gem::Specification.new do |s|
s.summary = 'cfn-model'
s.description = 'An object model for CloudFormation templates'
s.homepage = 'https://github.com/stelligent/cfn-model'
s.metadata = {
'bug_tracker_uri' => "#{s.homepage}/issues",
'changelog_uri' => "#{s.homepage}/releases",
'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
'homepage_uri' => s.homepage,
'source_code_uri' => "#{s.homepage}/tree/v#{s.version}",
}
s.files = FileList[ 'lib/**/*.rb', 'lib/**/*.yml', 'lib/**/*.erb']

s.require_paths << 'lib'
Expand Down

0 comments on commit 7db440b

Please sign in to comment.