From a7911f55a4fc59d8d460b15b5e19cc17f0d725d5 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 4 Jan 2007 01:32:37 +0000 Subject: [PATCH] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ benchmark/run_rite.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4b3d499799..91704f75eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 04 10:30:11 2007 Koichi Sasada + + * benchmark/run_rite.rb (bm) : fix to use lines + Wed Jan 3 18:49:15 2007 Yukihiro Matsumoto * io.c (rb_io_getline): lineno update condition was wrong. diff --git a/benchmark/run_rite.rb b/benchmark/run_rite.rb index 3b437c82ab..5fae587e30 100644 --- a/benchmark/run_rite.rb +++ b/benchmark/run_rite.rb @@ -26,7 +26,7 @@ end prepare_wc_input def bm file - prog = File.read(file).map{|e| e.rstrip}.join("\n") + prog = File.read(file).lines.map{|e| e.rstrip}.join("\n") return if prog.empty? /[a-z]+_(.+)\.rb/ =~ file