Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command registration should take both strings and symbols as names #932

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Apr 24, 2024

This will save users some heads scratching when they try to register a command with a string name and found that it doesn't work (which I experienced when trying to port commands for Rails console).

I also rewrote converted custom command tests into integration tests to make test setup/cleanup easier.

This will save users some heads scratching when they try to register a
command with a string name and found that it doesn't work.

I also rewrote converted custom command tests into integration tests to
make test setup/cleanup easier.
Copy link
Member

@tompng tompng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@tompng tompng merged commit a91a212 into master Apr 26, 2024
59 checks passed
@tompng tompng deleted the symbolize-registered-names branch April 26, 2024 12:12
matzbot pushed a commit to ruby/ruby that referenced this pull request Apr 26, 2024
as names
(ruby/irb#932)

This will save users some heads scratching when they try to register a
command with a string name and found that it doesn't work.

I also rewrote converted custom command tests into integration tests to
make test setup/cleanup easier.

ruby/irb@a91a212dbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants