ruby-changes:37427
From: nobu <ko1@a...>
Date: Thu, 5 Feb 2015 13:50:23 +0900 (JST)
Subject: [ruby-changes:37427] nobu:r49508 (trunk): mkmf/base.rb: fix constant scope
nobu 2015-02-05 13:50:18 +0900 (Thu, 05 Feb 2015) New Revision: 49508 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49508 Log: mkmf/base.rb: fix constant scope * test/mkmf/base.rb (TestMkmf::Base): fix constant scope for r49482. Modified files: trunk/test/mkmf/base.rb Index: test/mkmf/base.rb =================================================================== --- test/mkmf/base.rb (revision 49507) +++ test/mkmf/base.rb (revision 49508) @@ -11,6 +11,9 @@ $INCFLAGS << " -I." https://github.com/ruby/ruby/blob/trunk/test/mkmf/base.rb#L11 $extout_prefix = "$(extout)$(target_prefix)/" class TestMkmf < Test::Unit::TestCase +end + +module TestMkmf::Base MKMFLOG = proc {File.read("mkmf.log") rescue ""} class Capture @@ -49,9 +52,7 @@ class TestMkmf < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/mkmf/base.rb#L52 @buffer << s if @out end end -end -module TestMkmf::Base attr_reader :stdout def mkmflog(msg) @@ -86,7 +87,7 @@ module TestMkmf::Base https://github.com/ruby/ruby/blob/trunk/test/mkmf/base.rb#L87 @tmpdir = Dir.mktmpdir @curdir = Dir.pwd @mkmfobj = Object.new - @stdout = TestMkmf::Capture.new + @stdout = Capture.new Dir.chdir(@tmpdir) @quiet, Logging.quiet = Logging.quiet, true init_mkmf -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/