Repository navigation
Add source code and documentation links to the gemspec - #48
Merged
Merged
Conversation
RubyGems shows the links stored for the 0.x gem, which point to c7/personnummer, for every version whose gemspec has no link metadata. Set source_code_uri so the gem page points here. When a version has any link in its metadata, RubyGems stops generating the rubydoc.info link, so documentation_uri is set too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
metadatato the gemspec withsource_code_urianddocumentation_uri.The gem page on RubyGems links to c7/personnummer as the source code. That link was stored with version 0.0.7 in 2012, and RubyGems uses the stored links for every version whose gemspec has no link metadata. 3.1.0 and 3.1.1 have none.
When a version has any link in its metadata, RubyGems reads all of them from there and no longer generates the link to rubydoc.info. That is why
documentation_uriis set as well.The version is not bumped here, so the gem page changes with the next release. The pages for 3.1.0 and 3.1.1 keep the old link.
Checked with
gem buildandgem specification personnummer-3.1.1.gem metadata: both fields are in the built gem.