Ancestors

Toot

Written by Stan Lo on 2024-11-30 at 22:06

Let’s give Ruby’s English documentation new homepages! If this is accepted in time, it’ll be applied to the upcoming Ruby 3.4 documentation. We can then explore ways to backport similar changes to older Ruby versions.

The current homepage just shows the project’s readme, which is less helpful than a dedicated page in most cases.

PR: https://github.com/ruby/ruby/pull/12227

=> View attached media

=> More informations about this toot | More toots from st0012@ruby.social

Descendants

Written by Richard Schneeman on 2024-12-01 at 03:25

@st0012 how about taking https://rubyapi.org/ mostly wholesale?

=> More informations about this toot | More toots from Schneems@ruby.social

Written by Stan Lo on 2024-12-01 at 10:17

@Schneems it’s a bigger work than adding these incremental improvements.

=> More informations about this toot | More toots from st0012@ruby.social

Written by Richard Schneeman on 2024-12-01 at 14:47

@st0012 that’s fair.

Side note/question. Do you have tips for driving IRB as a background process through STDIN and writing outputs to a file?

I basically want to automate some tutorials that include showing how things should look in the irb REPL including the prompts and interface. But as soon as I run it without a TTY the styles all change and I’m not sure if there’s a combination of flags/settings to get them looking the same again.

=> More informations about this toot | More toots from Schneems@ruby.social

Written by Richard Schneeman on 2024-12-01 at 15:14

@st0012 more context: https://gist.github.com/schneems/88223a7df82795922fdc1e8e1b47bfc0

=> More informations about this toot | More toots from Schneems@ruby.social

Written by Stan Lo on 2024-12-02 at 11:24

@Schneems By style changes, do you mean the extra nil and the different prompt irb(main):001:0>?

It looks like the programmatic version runs an older version of IRB (e.g. the one bundled with Ruby 3.3) where the manual version runs the IRB released as a gem.

=> More informations about this toot | More toots from st0012@ruby.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113574176596624224
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
279.630211 milliseconds
Gemini-to-HTML Time
1.23783 milliseconds

This content has been proxied by September (3851b).