Misc #15486
closedDefault gems README.md
Description
While working on Ruby Changelog, I noticed the following.
A lot of parts of stdlib is extracted currently into "default gems". This, in my understanding, means (amongst other things) their development is now in separate repositories on GitHub, and their development is semi-independent.
The problem I'd like to emphasize is their README is unclear about "what is it". Let's look at ostruct for example: https://github.com/ruby/ostruct. There are two huge problems:
- Stumbling upon this repo, how should one know it is a) a part of Ruby stdlib? and b) the authoritative source of this part (and not a mirror of the code in ruby/ruby repo)?
- There is some basic documentation explaining the usage of the library, but it would NOT be rendered anywhere in the standard library docs, so it is basically useless (which is not obvious for repo contributors).
I believe that for standard library gems the README should look somehow as following:
This is the development repository of Ruby
ostruct
(OpenStruct
) standard library.The library provides an
OpenStruct
data structure, similar to aHash
, that allows the definition of arbitrary attributes with their accompanying values.Canonical library docs: OpenStruct
Before participating in the development of
ostruct
, you should know the following:
- The development process is standard "fork => commit => pull request"
- New versions of the standard library are released with new versions of Ruby
- Versioning policy: ...
- Code quality policy: ...
The last two points should probably link to the common documentation for all "default gems"... Well, as well as the whole text. So, all in all, there should be README template, where only gem names, short descriptions, and links to "canonical docs" are different (and maybe some code structure/contribution details for bigger libraries).
WDYT?