Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@headius
Copy link
Member

@headius headius commented Nov 5, 2025

  • RubyPathname is stripped down to match the remaining extension in CRuby 4.0 (<=> and sub).
  • RubyPathname.path field is bound to @path instance variable.
  • pathname.rb comes from ruby/pathname, with undef preamble, extension load, and a few utility methods removed.
  • stdlib pathname.rb contains those utility methods.

See ruby/pathname#57 and ruby/pathname#17

Fixes #9060

@headius headius mentioned this pull request Nov 5, 2025
98 tasks
@headius headius force-pushed the pathname.rb branch 2 times, most recently from cbd3f63 to 97cc08d Compare November 5, 2025 06:07
@headius
Copy link
Member Author

headius commented Nov 5, 2025

This will require some additional work to support our URI path forms. We may need to continue overriding more of the pure-Ruby logic than I'd hoped.

@headius headius marked this pull request as draft November 5, 2025 09:19
@headius headius changed the title Move Pathname to core and use mostly-Ruby version Move Pathname to core [Ruby 3.5] Nov 5, 2025
@headius headius changed the base branch from master to ruby-4.0 November 11, 2025 23:17
@headius headius changed the title Move Pathname to core [Ruby 3.5] Move Pathname to core [Ruby 4.0] Nov 11, 2025
* RubyPathname is stripped down to match the remaining extension
  in CRuby 3.5 (<=> and sub).
* RubyPathname.path field is bound to @path instance variable.
* pathname.rb comes from ruby/pathname, with undef preamble,
  extension load, and a few utility methods removed.
* stdlib pathname.rb contains those utility methods.

See ruby/pathname#57 and ruby/pathname#17

Fixes jruby#9060
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.

Adopt pure-Ruby Pathname

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.