Skip to content

Cleanup extend/ directory usage. #20061

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

Merged
merged 1 commit into from
Jun 9, 2025
Merged

Cleanup extend/ directory usage. #20061

merged 1 commit into from
Jun 9, 2025

Conversation

MikeMcQuaid
Copy link
Member

  • move some things out of extend that don't really fit there e.g. Modules that are included but not doing any overriding/monkeypatching
  • move some code into extend/os to fix all remaining rubocop:todo Homebrew/MoveToExtendOSs
  • remove some unneeded bundle skipper code that doesn't really make sense given our current bottling strategy
  • extract some Pathname extensions to extend/pathname for separate files
  • move a ENV Kernel extension into kernel.rb
  • odeprecate a seemingly unused backwards compatibility method
  • move readline_nonblock from a monkeypatch to a ReadlineNonblock.read method as its only used in one place
  • fix up a link in documentation

@MikeMcQuaid MikeMcQuaid enabled auto-merge June 9, 2025 16:37
- move some things out of `extend` that don't really fit there e.g.
  `Module`s that are included but not doing any
  overriding/monkeypatching
- move some code into `extend/os` to fix all remaining
  `rubocop:todo Homebrew/MoveToExtendOS`s
- remove some unneeded `bundle` skipper code that doesn't really make
  sense given our current bottling strategy
- extract some `Pathname` extensions to `extend/pathname` for separate
  files
- move a `ENV` `Kernel` extension into `kernel.rb`
- `odeprecate` a seemingly unused backwards compatibility method
- move `readline_nonblock` from a monkeypatch to a
  `ReadlineNonblock.read` method as its only used in one place
- fix up a link in documentation
Copy link
Member

@p-linnane p-linnane left a comment

Choose a reason for hiding this comment

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

Nice!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Jun 9, 2025
Merged via the queue into master with commit cfdc6fd Jun 9, 2025
40 checks passed
@MikeMcQuaid MikeMcQuaid deleted the extend_cleanup branch June 9, 2025 19:45
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