ruby-changes:10715
From: shyouhei <ko1@a...>
Date: Fri, 13 Feb 2009 19:04:36 +0900 (JST)
Subject: [ruby-changes:10715] Ruby:r22279 (ruby_1_8_6): merge revision(s) 20231:
shyouhei 2009-02-13 19:04:26 +0900 (Fri, 13 Feb 2009) New Revision: 22279 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22279 Log: merge revision(s) 20231: * shell/command-processor.rb: undefined method `top_level_test' in Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/lib/shell/command-processor.rb branches/ruby_1_8_6/version.h Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 22278) +++ ruby_1_8_6/ChangeLog (revision 22279) @@ -1,3 +1,8 @@ +Fri Feb 13 19:04:06 2009 Keiju Ishitsuka <keiju@r...> + + * shell/command-processor.rb: undefined method `top_level_test' in + Shell#test. [ruby-list:45634] + Tue Feb 10 19:57:43 2009 Nobuyoshi Nakada <nobu@r...> * eval.c (load_lock): makes circular require deadlock. Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 22278) +++ ruby_1_8_6/version.h (revision 22279) @@ -1,15 +1,15 @@ #define RUBY_VERSION "1.8.6" -#define RUBY_RELEASE_DATE "2009-02-11" +#define RUBY_RELEASE_DATE "2009-02-13" #define RUBY_VERSION_CODE 186 -#define RUBY_RELEASE_CODE 20090211 -#define RUBY_PATCHLEVEL 328 +#define RUBY_RELEASE_CODE 20090213 +#define RUBY_PATCHLEVEL 329 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_TEENY 6 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 2 -#define RUBY_RELEASE_DAY 11 +#define RUBY_RELEASE_DAY 13 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; Index: ruby_1_8_6/lib/shell/command-processor.rb =================================================================== --- ruby_1_8_6/lib/shell/command-processor.rb (revision 22278) +++ ruby_1_8_6/lib/shell/command-processor.rb (revision 22279) @@ -155,6 +155,7 @@ # sh[:exists?, "foo"] # sh["exists?", "foo"] # + alias top_level_test test def test(command, file1, file2=nil) file1 = expand_path(file1) file2 = expand_path(file2) if file2 @@ -162,7 +163,11 @@ case command when Integer - top_level_test(command, file1, file2) + if file2 + top_level_test(command, file1, file2) + else + top_level_test(command, file1) + end when String if command.size == 1 if file2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/