diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-11 21:23:27 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-11 21:23:27 +0000 |
| commit | 8c7f9f5cdd0ade7442d4e341093ecf1b8e2f4690 (patch) | |
| tree | 0f85787bc2a3e7f95a7ca300a34c62732b071ee7 | |
| parent | 5b0cef85ac90802cf7d0f9c8443c11054fc89d54 (diff) | |
merges r30817 from trunk into ruby_1_9_2.
--
* lib/benchmark.rb (Benchmark#bmbm): use ensure clause instead of
Object#tap to restore STDOUT.sync.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/benchmark.rb | 3 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Mon Feb 7 22:56:16 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com> + + * lib/benchmark.rb (Benchmark#bmbm): use ensure clause instead of + Object#tap to restore STDOUT.sync. + Sun Feb 6 12:18:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (words, qwords): dispatch array events. based on a diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 8e7f778e2d..d06b434c65 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -281,8 +281,9 @@ module Benchmark list.push [label, res] } - STDOUT.sync = sync ary + ensure + STDOUT.sync = sync unless sync.nil? end # @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 195 +#define RUBY_PATCHLEVEL 196 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |
