jantman / repostatus.org

A standard to easily communicate to humans and machines the development/support and usability status of software repositories/projects.
http://www.repostatus.org
Creative Commons Attribution Share Alike 4.0 International
169 stars 40 forks source link

“WIP” is wrongly capitalized in badge markup #14

Closed roryokane closed 8 years ago

roryokane commented 9 years ago

In the markup files for the “WIP” status, such as badges/latest/wip_md.txt, the status name is capitalized as “Wip”. This is bad grammar.

The problem is this code in the fabfile.py: badge_name.capitalize(). To avoid having to special-case the “WIP” status when doing this capitalization, you could instead specify a canonical capitalization for each name in the JSON. The canonical capitalization could be in the main key:

"WIP": {
  "description": "…",
  "url": "…"
}

or in a sub-key:

"wip": {
  "description": "…",
  "url": "…",
  "capitalized": "WIP"
}
jantman commented 9 years ago

Agreed with this, thanks for catching it. Changing the JSON is going to require a version bump, but I'll try to get to it sometime today or tonight.