Skip to content

Commit

Permalink
* benchmark/run_rite.rb : fix to use readlines instead of
Browse files Browse the repository at this point in the history
read(...).lines (because 1.8 doesn't have String#lines).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed Jan 5, 2007
1 parent 91a0e26 commit 21e3919
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Fri Jan 5 20:50:31 2007 Koichi Sasada <ko1@atdot.net>

* benchmark/run_rite.rb : fix to use readlines instead of
read(...).lines (because 1.8 doesn't have String#lines).

Fri Jan 5 20:28:19 2007 Koichi Sasada <ko1@atdot.net>

* thread_win32.ci (rb_thread_reset_timer_thread) :
Expand Down
2 changes: 1 addition & 1 deletion benchmark/run_rite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def prepare_wc_input
prepare_wc_input

def bm file
prog = File.read(file).lines.map{|e| e.rstrip}.join("\n")
prog = File.readlines(file).map{|e| e.rstrip}.join("\n")
return if prog.empty?

/[a-z]+_(.+)\.rb/ =~ file
Expand Down

0 comments on commit 21e3919

Please sign in to comment.