From a10ded3ba0f6da6b4f881cd23858aef3d9eb5f29 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 12 Feb 2008 06:28:23 +0000 Subject: * bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend, instruby.rb, lib/mkmf.rb, lib/test/unit/util/procwrapper.rb, mkconfig.rb, sample/test.rb, template/vm.inc.tmpl, test/ruby/test_stringchar.rb: fixes arround String#gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/runner.rb | 2 +- bootstraptest/test_method.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstraptest') diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 72840c4fa9..b5237c21f5 100644 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -264,7 +264,7 @@ def adjust_indent(src) end def untabify(str) - str.gsub(/^\t+/) {|tabs| ' ' * (8 * tabs.size) } + str.gsub(/^\t+/) {' ' * (8 * $&.size) } end def make_srcfile(src) diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index 8b5d584e31..2d194cdda4 100644 --- a/bootstraptest/test_method.rb +++ b/bootstraptest/test_method.rb @@ -657,7 +657,7 @@ C1.new.m(1,2,3,4,5,6,7,8,9) tests.each{|setup, methods| setup = setup.dup; setup.strip! - setup = BASE.gsub(//){setup} + setup = BASE.gsub(//, setup) methods.split(/\n/).each{|m| m = m.dup; m.strip! next if m.empty? expr = "#{setup}; #{m}" -- cgit v1.2.3