diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-31 08:26:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-31 08:26:31 +0000 |
commit | 44475bb20874b908160b2a9e6d1dda7fb0c10e88 (patch) | |
tree | d47bc88df440202efbcd4b83549a33c3c5a8aa48 | |
parent | 284565992f487937080230d3ae2b5afae4c8ac3f (diff) | |
download | ruby-44475bb20874b908160b2a9e6d1dda7fb0c10e88.tar.gz |
* lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
argument unintentionally. [ruby-talk:253676]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/benchmark.rb | 2 | ||||
-rw-r--r-- | version.h | 6 |
3 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Thu May 31 17:27:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/benchmark.rb (Benchmark::Job::item): avoid modifying the + argument unintentionally. [ruby-talk:253676] + Wed May 30 14:43:00 2007 Koichi Sasada <ko1@atdot.net> * cont.c (cont_capture): store all local variables in heap diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 36e593518f..c7c3935131 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -331,7 +331,7 @@ module Benchmark # def item(label = "", &blk) # :yield: raise ArgmentError, "no block" unless block_given? - label.concat ' ' + label += ' ' w = label.length @width = w if @width < w @list.push [label, blk] @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-05-30" +#define RUBY_RELEASE_DATE "2007-05-31" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070530 +#define RUBY_RELEASE_CODE 20070531 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 5 -#define RUBY_RELEASE_DAY 30 +#define RUBY_RELEASE_DAY 31 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |