Add change log links to gem page#1553
Conversation
54e96bf to
3aab172
Compare
|
@kbrock I knew there was something weird about that old migration! |
|
I think the tests I had on #728 were pretty thorough, want me to add them back? |
|
@olivierlacan refresh - linkset does not define changelog. That is the only test I saw. I added them more of an intergration test on the json / xml api. need tests around view? |
|
@olivierlacan whoa. ok, we'll push forward here.
Also, do you have a gem w/ changelog metadata you tested? |
|
@kbrock you'll need to add the locale changes to every language. If you aren't able to translate them (that's totally fine!) you can just add the key with no value. |
|
@dwradcliffe thanks so much |
|
|
||
| # define getters for each of the uris (both short `home` or long `homepage_uri` versions) | ||
| # don't define for download_uri since it has special logic and is already defined | ||
| # using a try becaue linkset does not define all the uri attributes |
b21c36d to
efec876
Compare
|
@kbrock Other than translations, for which I offer http://keepachangelog.com/ as a guide, do we have any other blockers? |
| attributes: | ||
| linkset: | ||
| bugs: Bug Tracker URL | ||
| changelog: |
There was a problem hiding this comment.
Based on http://keepachangelog.com/de/0.3.0/ you can use Changelog here too.
| links: | ||
| badge: Badge | ||
| bugs: Bug Tracker | ||
| changelog: Change Log |
There was a problem hiding this comment.
I'd suggest sticking to one-word Changelog. We've had many discussions over on http://keepachangelog.com/ about this and it seems like the most correct in-domain (software) spelling.
| attributes: | ||
| linkset: | ||
| bugs: URL del registro de Bugs | ||
| changelog: |
There was a problem hiding this comment.
Same here, Changelog should be fine. http://keepachangelog.com/es-ES/0.3.0/
|
@kbrock this looks good to me as soon as the last comments from @olivierlacan are addressed. 👍 |
| 'wiki' => 'wiki_uri', | ||
| 'mail' => 'mailing_list_uri', | ||
| 'bugs' => 'bug_tracker_uri', | ||
| 'download' => 'download_uri' |
There was a problem hiding this comment.
Can we please keep => aligned?
This adds a new changelog column to the displays that change log alongside the existing linkset links. I originally wrote this with @jaymcgavren but had to recommit because of really bad rebase clusterpoop. I hope you forgive me, Jay.
This takes changelog out of the Links table Tried to keep as much of the commits from @olivierlacan and @jaymcgavren as possible.
efec876 to
4210796
Compare
|
Thanks @olivierlacan - never occurred to me to look at the source of all of this :( |
4210796 to
1aa755c
Compare
|
Thanks @sonalkr132 I didn't see that warning when running rubocop locally. Let me know if you have any other similar comments. |
|
@sonalkr132 @kbrock Are we good to go? Or do we want to find more translations for |
|
LGTM 👍 We will merge as soon as we can. |
|
@kbrock Curious if you think we should update http://guides.rubygems.org/specification-reference/#metadata with a canonical list of metadata that rubygems.org currently accepts or just a straight up link to |
|
@olivierlacan Check: ruby/rubygems#1885. guide will be update when we regenerate the doc. |
|
@sonalkr132 Perfect, thank you! |
Add changelog to metadata validation Ref: #1834 rubygems/rubygems.org#1553 # Description: We need to validate changelog link during `gem build`. # Tasks: - [x] Describe the problem / feature - [ ] Write tests - [x] Write code to solve the problem - [ ] Get code review from coworkers / friends I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).
Alternative to #728
This reads the changelog uri from the metadata without requiring changing the
Linksettable.The core of the change is in
Links:58It dynamically generates methods for each of the link attributes.
The value is read from the metadata. If it is not present, it falls back to the value in the
Linkset.For changelog (and future uri values), it is not defined in linkset, so a
tryis used to be flexible here./cc @olivierlacan sorry it took me so long.