ruby / pathname

Pathname represents the name of a file or directory on the filesystem, but not the file itself.
BSD 2-Clause "Simplified" License
26 stars 16 forks source link

Pathname#taint and #untaint remain in Ruby 3.2 #28

Closed pocke closed 1 year ago

pocke commented 1 year ago

Pathname#taint and #untaint displays a warning to notice that we will remove them in Ruby 3.2, but they still exist.

$ ruby -v -rpathname -e 'Pathname("a").taint; Pathname("a").untaint'
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin21]
-e:1: warning: Pathname#taint is deprecated and will be removed in Ruby 3.2.
-e:1: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.

https://github.com/ruby/pathname/blob/1fffb9df5bfb84acdd572b5439a15fe70d47e195/ext/pathname/pathname.c#L1540-L1541