Skip to content

Commit

Permalink
Add project metadata to the gemspec (#172)
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/public_suffix and be available via the
rubygems API after the next release.
  • Loading branch information
orien committed May 9, 2020
1 parent 6465387 commit db463e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public_suffix.gemspec
Expand Up @@ -12,6 +12,14 @@ Gem::Specification.new do |s|
s.description = "PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains."
s.licenses = ["MIT"]

s.metadata = {
"bug_tracker_uri" => "https://github.com/weppos/publicsuffix-ruby/issues",
"changelog_uri" => "https://github.com/weppos/publicsuffix-ruby/blob/master/CHANGELOG.md",
"documentation_uri" => "https://rubydoc.info/gems/#{s.name}/#{s.version}",
"homepage_uri" => s.homepage,
"source_code_uri" => "https://github.com/weppos/publicsuffix-ruby/tree/v#{s.version}",
}

s.required_ruby_version = ">= 2.3"

s.require_paths = ["lib"]
Expand Down

0 comments on commit db463e5

Please sign in to comment.