ruby-changes:10828
From: knu <ko1@a...>
Date: Wed, 18 Feb 2009 15:28:00 +0900 (JST)
Subject: [ruby-changes:10828] Ruby:r22397 (trunk): * bootstraptest/runner.rb: Use RUBY_DESCRIPTION if defined.
knu 2009-02-18 15:27:47 +0900 (Wed, 18 Feb 2009) New Revision: 22397 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22397 Log: * bootstraptest/runner.rb: Use RUBY_DESCRIPTION if defined. Modified files: trunk/ChangeLog trunk/bootstraptest/runner.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 22396) +++ ChangeLog (revision 22397) @@ -1,3 +1,7 @@ +Wed Feb 18 15:23:34 2009 Akinori MUSHA <knu@i...> + + * bootstraptest/runner.rb: Use RUBY_DESCRIPTION if defined. + Wed Feb 18 14:33:35 2009 Nobuyoshi Nakada <nobu@r...> * array.c (rb_ary_resurrect), string.c (rb_str_resurrect): new Index: bootstraptest/runner.rb =================================================================== --- bootstraptest/runner.rb (revision 22396) +++ bootstraptest/runner.rb (revision 22397) @@ -95,8 +95,13 @@ unless quiet puts Time.now - patchlevel = defined?(RUBY_PATCHLEVEL) ? " patchlevel #{RUBY_PATCHLEVEL}" : '' - puts "Driver is ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}#{patchlevel}) [#{RUBY_PLATFORM}]" + if defined?(RUBY_DESCRIPTION) + puts "Driver is #{RUBY_DESCRIPTION}" + elsif defined?(RUBY_PATCHLEVEL) + puts "Driver is ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}#{RUBY_PLATFORM}) [#{RUBY_PLATFORM}]" + else + puts "Driver is ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]" + end puts "Target is #{`#{@ruby} -v`.chomp}" puts $stdout.flush -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/