ruby-changes:59786
From: Nobuyoshi <ko1@a...>
Date: Thu, 23 Jan 2020 21:50:17 +0900 (JST)
Subject: [ruby-changes:59786] 27ac1c615d (master): Revert pathname, rb_warn_deprecated* are not public API
https://git.ruby-lang.org/ruby.git/commit/?id=27ac1c615d From 27ac1c615d2a2884435a162403e2833716abf436 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 23 Jan 2020 21:49:58 +0900 Subject: Revert pathname, rb_warn_deprecated* are not public API diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index 86b22ca..e511560 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -138,7 +138,7 @@ path_freeze(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L138 static VALUE path_taint(VALUE self) { - rb_warn_deprecated_to_remove("Pathname#taint", "3.2"); + rb_warn("Pathname#taint is deprecated and will be removed in Ruby 3.2."); return self; } @@ -151,7 +151,7 @@ path_taint(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L151 static VALUE path_untaint(VALUE self) { - rb_warn_deprecated_to_remove("Pathname#untaint", "3.2"); + rb_warn("Pathname#untaint is deprecated and will be removed in Ruby 3.2."); return self; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/