ruby / pathname

Pathname represents the name of a file or directory on the filesystem, but not the file itself.
Other
26 stars 16 forks source link

Implement Pathname#chdir #33

Open zverok opened 10 months ago

zverok commented 10 months ago

As it was introduced into Ruby 3.3 as Dir#chdir, and was requested before that in #25.

toy commented 10 months ago

Pathname#chdir already existed in ruby till 1.9.1, was obsoleted in 1.8.1 preview and removed in 1.9.2 preview

zverok commented 10 months ago

@toy Interesting. Do you know the justification? (The obsoleting commit doesn't link to the tracker ticket or ruby-core email discussion) :thinking:

toy commented 10 months ago

@zverok I remember being frustrated about the change and that justification was something about the method being misplaced, but I failed now to find any more information about it

hsbt commented 10 months ago

https://blade.ruby-lang.org/ruby-core/21564

toy commented 10 months ago

@hsbt That one is about removal of methods already marked obsolete, but not why were they marked obsolete

zverok commented 1 month ago

@hsbt Any updates on this?.. It is a bit weird now that (more simple) Dir object has this method after Ruby 3.3, but (more advanced) Pathname doesn’t.

hsbt commented 3 weeks ago

see https://github.com/ruby/pathname/issues/25#issuecomment-2392655732