ruby-changes:58115
From: Alan <ko1@a...>
Date: Fri, 4 Oct 2019 10:15:41 +0900 (JST)
Subject: [ruby-changes:58115] 5be2af5f90 (master): Remove call-seq for method that doesn't exist (#2521)
https://git.ruby-lang.org/ruby.git/commit/?id=5be2af5f90 From 5be2af5f9052e7f799b2c576d78a373c57069771 Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Thu, 3 Oct 2019 21:15:24 -0400 Subject: Remove call-seq for method that doesn't exist (#2521) ``` $ ruby -ve 'IO.popen("ls"){}; $?.to_int' ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-darwin18] Traceback (most recent call last): -e:1:in `<main>': undefined method `to_int' for #<Process::Status: pid 33989 SIGPIPE (signal 13)> (NoMethodError) Did you mean? to_i taint ``` Process::Status#to_int was removed at 7ba5c4e. diff --git a/process.c b/process.c index 4661da2..fa5de27 100644 --- a/process.c +++ b/process.c @@ -547,7 +547,6 @@ rb_last_status_clear(void) https://github.com/ruby/ruby/blob/trunk/process.c#L547 /* * call-seq: * stat.to_i -> integer - * stat.to_int -> integer * * Returns the bits in _stat_ as a Integer. Poking * around in these bits is platform dependent. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/