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

Remove OpenStruct usage from Pry::Command::Ls #2309

Merged
merged 1 commit into from Apr 15, 2024

Conversation

andrehjr
Copy link
Member

@andrehjr andrehjr commented Apr 15, 2024

In order to remove OpenStruct usage, I moved Ls::DEFAULT_OPTIONS on its own config class.

At first, I've tried to use a simple Struct instead, but having it be compatible between ruby versions was kinda hard and the result was not great, especially < 2.5.

@andrehjr andrehjr force-pushed the remove-ostruct-usage-from-ls-options branch 2 times, most recently from 0690162 to 5da03a2 Compare April 15, 2024 13:55
@andrehjr andrehjr force-pushed the remove-ostruct-usage-from-ls-options branch from 5da03a2 to 9e9a257 Compare April 15, 2024 14:00
@andrehjr andrehjr marked this pull request as ready for review April 15, 2024 14:19
@andrehjr andrehjr merged commit 02c0be9 into pry:master Apr 15, 2024
19 of 20 checks passed
@andrehjr andrehjr deleted the remove-ostruct-usage-from-ls-options branch April 15, 2024 21:24
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.

None yet

1 participant