Skip to content

Update expected output in getting started guide for Ruby 3.4+ - #207

Open
yukik8 wants to merge 1 commit into
socketry:mainfrom
yukik8:update-getting-started-expected-output
Open

Update expected output in getting started guide for Ruby 3.4+#207
yukik8 wants to merge 1 commit into
socketry:mainfrom
yukik8:update-getting-started-expected-output

Conversation

@yukik8

@yukik8 yukik8 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The "Basic Event Loop" example in the getting started guide shows the expected output as {:read=>"Hello World"}. Since Ruby 3.4, Hash#inspect uses a new format (see Feature #16295), so running the example as-is on current Ruby versions actually prints:

{read: "Hello World"}

This updates the expected output to match what readers will see on Ruby 3.4+. On Ruby 3.3 (which this gem still supports) the old format is shown — happy to add a note mentioning that if you prefer.

Verified by running the example unchanged on Ruby 3.4.10 (macOS arm64).

Types of Changes

  • Maintenance.

Contribution

Signed-off-by: yukik8 <andres8.yuuki@gmail.com>
@ioquatix

ioquatix commented Aug 6, 2026

Copy link
Copy Markdown
Member

Could you please rebase :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants