summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-13 10:05:02 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-13 10:05:02 +0000
commit0aac18678dda4669066623a4699f11c598d0dceb (patch)
treeb514d7711a7e7a84db0c73e51b8ab9cc8dda967f
parent2fed0e8e6f5d4a194e1dfcb39ef29a4a08cfa4ec (diff)
merge revision(s) 20231:
* shell/command-processor.rb: undefined method `top_level_test' in git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@22281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/shell/command-processor.rb7
-rw-r--r--version.h8
3 files changed, 15 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index a23a17aa89..9c338d6c4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Feb 13 19:04:54 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * shell/command-processor.rb: undefined method `top_level_test' in
+ Shell#test. [ruby-list:45634]
+
Tue Feb 10 20:00:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (load_lock): makes circular require deadlock.
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb
index ecf6c7d5eb..b0e4fb70db 100644
--- a/lib/shell/command-processor.rb
+++ b/lib/shell/command-processor.rb
@@ -155,6 +155,7 @@ class Shell
# 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 @@ class Shell
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
diff --git a/version.h b/version.h
index 1be62202a6..48a444dd04 100644
--- a/version.h
+++ b/version.h
@@ -1,15 +1,15 @@
#define RUBY_VERSION "1.8.7"
-#define RUBY_RELEASE_DATE "2009-02-11"
+#define RUBY_RELEASE_DATE "2009-02-13"
#define RUBY_VERSION_CODE 187
-#define RUBY_RELEASE_CODE 20090211
-#define RUBY_PATCHLEVEL 114
+#define RUBY_RELEASE_CODE 20090213
+#define RUBY_PATCHLEVEL 115
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 7
#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[];