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

Refactor eval history #623

Merged
merged 3 commits into from Jul 4, 2023
Merged

Refactor eval history #623

merged 3 commits into from Jul 4, 2023

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jul 3, 2023

This feature was not enabled by default, not tested, and could be easily confused with IRB's history saving feature. So in this PR I did these improvements:

  • Rename the file and constant so it's clearer what it is for.
  • Add basic test cases for it.
    • I found that it only displays limit - 1 results, which is probably a bug. But since it's not widely used and we don't have any reports about it, I don't prioritise fixing it atm.

To confusion with `lib/irb/history.rb`
@st0012 st0012 requested a review from a team July 3, 2023 16:02
@st0012 st0012 self-assigned this Jul 3, 2023
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!

could be easily confused with IRB's history saving feature

renaming 👍

@tompng tompng merged commit f67b657 into master Jul 4, 2023
47 checks passed
@tompng tompng deleted the refactor-eval-history branch July 4, 2023 15:17
matzbot pushed a commit to ruby/ruby that referenced this pull request Jul 4, 2023
(ruby/irb#623)

* Rename `ext/history.rb` to `ext/eval_history.rb`

To confusion with `lib/irb/history.rb`

* Add eval_history tests

* Rename eval_history's History to EvalHistory to avoid confusion
mvz added a commit to cucumber/aruba that referenced this pull request Dec 24, 2023
See ruby/irb#623. The file was removed and the
corresponding feature should be activated by setting :EVAL_HISTORY.
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.

None yet

2 participants