ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:90803] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
@ 2018-12-29 12:12 ` zverok.offline
  2018-12-29 18:26 ` [ruby-core:90810] " ruby-core
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: zverok.offline @ 2018-12-29 12:12 UTC (permalink / raw)
  To: ruby-core

Issue #15486 has been reported by zverok (Victor Shepelev).

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

* Author: zverok (Victor Shepelev)
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90810] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
  2018-12-29 12:12 ` [ruby-core:90803] [Ruby trunk Misc#15486] Default gems README.md zverok.offline
@ 2018-12-29 18:26 ` ruby-core
  2018-12-29 23:20 ` [ruby-core:90815] [Ruby trunk Misc#15486][Assigned] " hsbt
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: ruby-core @ 2018-12-29 18:26 UTC (permalink / raw)
  To: ruby-core

Issue #15486 has been updated by marcandre (Marc-Andre Lafortune).


I've stared improving the README for the [matrix gem](https://github.com/ruby/matrix).

Feel free to provide PRs for it, and it could serve as a model for the others.

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

* Author: zverok (Victor Shepelev)
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90815] [Ruby trunk Misc#15486][Assigned] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
  2018-12-29 12:12 ` [ruby-core:90803] [Ruby trunk Misc#15486] Default gems README.md zverok.offline
  2018-12-29 18:26 ` [ruby-core:90810] " ruby-core
@ 2018-12-29 23:20 ` hsbt
  2018-12-30 10:26 ` [ruby-core:90823] [Ruby trunk Misc#15486] " colby
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: hsbt @ 2018-12-29 23:20 UTC (permalink / raw)
  To: ruby-core

Issue #15486 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Assigned
Assignee set to hsbt (Hiroshi SHIBATA)

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

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90823] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2018-12-29 23:20 ` [ruby-core:90815] [Ruby trunk Misc#15486][Assigned] " hsbt
@ 2018-12-30 10:26 ` colby
  2018-12-31 14:38 ` [ruby-core:90837] " mail
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: colby @ 2018-12-30 10:26 UTC (permalink / raw)
  To: ruby-core

Issue #15486 has been updated by colby (Colby Swandale).


I just come across this issue. I wanted to point out that I've been working on the:

* https://github.com/ruby/logger
* https://github.com/ruby/fileutils
* https://github.com/ruby/irb
* https://github.com/ruby/rake

Repositories for the past few weeks and improving whatever i can. I find that the READMEs on the logger, fileutils, and irb projects can defiantly be improved. I've made PRs and raised issues in Github in each project.

Some ideas i have are having generated documentation be published in each project on Github. Have more comprehensive examples in the README.

I could defiantly use some help to get some ideas on how to best do this and also help to improve the rest of the gems.

Thanks!

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

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90837] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2018-12-30 10:26 ` [ruby-core:90823] [Ruby trunk Misc#15486] " colby
@ 2018-12-31 14:38 ` mail
  2019-01-02 22:37 ` [ruby-core:90863] " mail
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mail @ 2018-12-31 14:38 UTC (permalink / raw)
  To: ruby-core

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


I'd like to help out, too.

Maybe we can have a second file `README-DEFAULT-GEM.md` which is linked to by the `README.md`. The `README-DEFAULT-GEM` would explain how default gems work etc. and would be same for all default gems and would be updated in an automated way (i.e. one script that updates all). The README would then only contain gem specific examples, explanations, etc.

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

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90863] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2018-12-31 14:38 ` [ruby-core:90837] " mail
@ 2019-01-02 22:37 ` mail
  2019-01-04  6:57 ` [ruby-core:90885] " duerst
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mail @ 2019-01-02 22:37 UTC (permalink / raw)
  To: ruby-core

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


As an example, I've created such a "default gem explanation" file as PR to the matrix library, see here: https://github.com/ruby/matrix/pull/7/files

What do you all think about this approach?

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

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90885] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2019-01-02 22:37 ` [ruby-core:90863] " mail
@ 2019-01-04  6:57 ` duerst
  2019-01-09 14:38 ` [ruby-core:90948] " mail
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: duerst @ 2019-01-04  6:57 UTC (permalink / raw)
  To: ruby-core

Issue #15486 has been updated by duerst (Martin Dürst).


rbjl (Jan Lelis) wrote:
> As an example, I've created such a "default gem explanation" file as PR to the matrix library, see here: https://github.com/ruby/matrix/pull/7/files
> 
> What do you all think about this approach?

I think in general, it is a good idea to add such information.

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.

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.


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

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90948] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2019-01-04  6:57 ` [ruby-core:90885] " duerst
@ 2019-01-09 14:38 ` mail
  2019-01-10  6:10 ` [ruby-core:90970] " duerst
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 11+ messages in thread
From: mail @ 2019-01-09 14:38 UTC (permalink / raw)
  To: ruby-core

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 Dürst) 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90970] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2019-01-09 14:38 ` [ruby-core:90948] " mail
@ 2019-01-10  6:10 ` duerst
  2019-01-10  8:11 ` [ruby-core:90979] " duerst
  2019-03-11 12:21 ` [ruby-core:91778] " hsbt
  10 siblings, 0 replies; 11+ messages in thread
From: duerst @ 2019-01-10  6:10 UTC (permalink / raw)
  To: ruby-core

Issue #15486 has been updated by duerst (Martin Dürst).


Hello Jan,

> 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.

Thanks for contributing to this issue. I think it's good to have this data on GitHub. It may also be a good idea to have this data accessible by a Web API.

But I still have a very fundamental question: Why isn't this information available by introspection, without having to go over the net to a Web API? Ruby itself should not have any problem providing this information, I'd guess. If I'm wrong, what's the problem?

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

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:90979] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
                   ` (8 preceding siblings ...)
  2019-01-10  6:10 ` [ruby-core:90970] " duerst
@ 2019-01-10  8:11 ` duerst
  2019-03-11 12:21 ` [ruby-core:91778] " hsbt
  10 siblings, 0 replies; 11+ messages in thread
From: duerst @ 2019-01-10  8:11 UTC (permalink / raw)
  To: ruby-core

Issue #15486 has been updated by duerst (Martin Dürst).


duerst (Martin Dürst) wrote:

> But I still have a very fundamental question: Why isn't this information available by introspection, without having to go over the net to a Web API? Ruby itself should not have any problem providing this information, I'd guess. If I'm wrong, what's the problem?

I found $LOADED_FEATURES, but it doesn't contain the necessary information::

```
require 'bigdecimal'
 p $LOADED_FEATURES.grep(/bigdecimal/)
```

=> ["/usr/local/lib/ruby/2.6.0/x86_64-cygwin/bigdecimal.so"]


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

* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ruby-core:91778] [Ruby trunk Misc#15486] Default gems README.md
       [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
                   ` (9 preceding siblings ...)
  2019-01-10  8:11 ` [ruby-core:90979] " duerst
@ 2019-03-11 12:21 ` hsbt
  10 siblings, 0 replies; 11+ messages in thread
From: hsbt @ 2019-03-11 12:21 UTC (permalink / raw)
  To: ruby-core

Issue #15486 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Assigned to Feedback

We welcome a patch for README.md of default gems on GitHub directly like https://bugs.ruby-lang.org/issues/15486#note-4.



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

* Author: zverok (Victor Shepelev)
* Status: Feedback
* 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/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-03-11 12:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-15486.20181229121234@ruby-lang.org>
2018-12-29 12:12 ` [ruby-core:90803] [Ruby trunk Misc#15486] Default gems README.md zverok.offline
2018-12-29 18:26 ` [ruby-core:90810] " ruby-core
2018-12-29 23:20 ` [ruby-core:90815] [Ruby trunk Misc#15486][Assigned] " hsbt
2018-12-30 10:26 ` [ruby-core:90823] [Ruby trunk Misc#15486] " colby
2018-12-31 14:38 ` [ruby-core:90837] " mail
2019-01-02 22:37 ` [ruby-core:90863] " mail
2019-01-04  6:57 ` [ruby-core:90885] " duerst
2019-01-09 14:38 ` [ruby-core:90948] " mail
2019-01-10  6:10 ` [ruby-core:90970] " duerst
2019-01-10  8:11 ` [ruby-core:90979] " duerst
2019-03-11 12:21 ` [ruby-core:91778] " hsbt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).