зеркало из https://github.com/github/ruby.git
* benchmark/run_rite.rb : fix to use readlines instead of
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
This commit is contained in:
Родитель
91a0e26a52
Коммит
21e39197e6
|
@ -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) :
|
||||
|
|
|
@ -26,7 +26,7 @@ end
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче