Issue #15486 has been updated by rbjl (Jan Lelis).


Thank you for the feedback. In the GH issue the general opinion is to have a single README file with all the info.

duerst (Martin Drst) wrote:
>
> But we have to be careful. The main issues I'm seeing with the actual PR are:
> 
> 1) Where and how to submit bug reports, patches, feature requests,... may be different from gem to gem.

This is correct, although it might not be overly complex. If I understood hsbt correctly, the goal is that all future bug reports go to gem repository directly (i.e. a repo on GitHub). Until we get there we could add another sentence with a pointer to ruby-lang ala "You can also submit your bug reports and feature requests to bugs.ruby-lang.org"

Also, if we'd choose to generate README(part)s via templates, the correct point of maintenance could be integrated easily.

> 
> 2) You mention https://stdgems.org/. This looks good, and seems to be up to date (I didn't do any actual checks, though). But what guarantee, if any, do we have that it will still be up to date in some years? It says "You can find out which version of **matrix** is included in your version of Ruby on [stdgems.org/matrix](https://stdgems.org/matrix).". Don't we have a way to check a gem version directly? If we don't, we should create one. I think it's okay to write something like "https://stdgems.org/ may provide additional information about gem versions", but adding yet another Web site that we depend on may be suboptimal.

You are right, there is no guarantee and I agree with your thoughts. Nevertheless, I've also put the raw data on GitHub, so it does not depend on me solely: https://github.com/janlelis/stdgems. If there is an interest in having one I would be open to build an API around this data, so it can be requested from inside Ruby.

----------------------------------------
Misc #15486: Default gems README.md
https://bugs.ruby-lang.org/issues/15486#change-76151

* Author: zverok (Victor Shepelev)
* Status: Assigned
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
While working on [Ruby Changelog](https://bugs.ruby-lang.org/issues/15485), 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 a `Hash`, that allows the definition of arbitrary attributes with their accompanying values. 
>
> Canonical library docs: [OpenStruct](https://ruby-doc.org/stdlib-2.6/libdoc/ostruct/rdoc/OpenStruct.html)
>
> 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?



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>