"benchmark.rb:435: warning: obsolete method"

Just been playing with 1.8 preview 2, would like to point out that the
following warning is getting generated in programs which use the benchmark
module:

/usr/local/lib/ruby/site_ruby/1.8/benchmark.rb:435: warning: obsolete method Time::times; use Process::times
/usr/local/lib/ruby/site_ruby/1.8/benchmark.rb:435: warning: obsolete method Time::times; use Process::times

Regards,

Brian.

Oops, my fault. I had accidentally installed the shim onto 1.8, so I rm -rf’d
/usr/local/lib/ruby/1.8 and reinstalled it from scratch - but I had
forgotten to rm -rf /usr/local/lib/ruby/site_ruby/1.8

Sorry for the noise!

Brian.

···

On Fri, Apr 04, 2003 at 03:40:14AM +0900, Brian Candler wrote:

Just been playing with 1.8 preview 2, would like to point out that the
following warning is getting generated in programs which use the benchmark
module:

/usr/local/lib/ruby/site_ruby/1.8/benchmark.rb:435: warning: obsolete method Time::times; use Process::times
/usr/local/lib/ruby/site_ruby/1.8/benchmark.rb:435: warning: obsolete method Time::times; use Process::times

Oops, my fault. I had accidentally installed the shim onto 1.8, so I rm -rf’d
/usr/local/lib/ruby/1.8 and reinstalled it from scratch - but I had
forgotten to rm -rf /usr/local/lib/ruby/site_ruby/1.8

This does re-raise the point that it could be worth having an
uninstall:
target in the Ruby makefile. “Ubiquitous Automation”, to quote! :slight_smile:

Sorry for the noise!

Brian.

    Hugh
···

On Fri, 4 Apr 2003, Brian Candler wrote: