diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-20 08:25:16 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-20 08:25:16 +0000 |
commit | 1db64a2035fc8779ac206958f01d71acc8017c28 (patch) | |
tree | df9cbe80a527bdd6df20b90a87d0632d33b9a76c | |
parent | 8fbffe61cc35433cef210ce25708fa535d2cc9bf (diff) | |
download | ruby-1db64a2035fc8779ac206958f01d71acc8017c28.tar.gz |
* benchmark/gc/gcbench.rb: don't use __dir__ to make compatible
with ruby 1.9.3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | benchmark/gc/gcbench.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Jun 20 17:24:24 2013 Koichi Sasada <ko1@atdot.net> + + * benchmark/gc/gcbench.rb: don't use __dir__ to make compatible + with ruby 1.9.3. + Thu Jun 20 16:57:19 2013 Koichi Sasada <ko1@atdot.net> * benchmark/bm_app_aobench.rb: use attr_accessor/reader instead of diff --git a/benchmark/gc/gcbench.rb b/benchmark/gc/gcbench.rb index 5fee2a2bce..dc1c5e2ded 100644 --- a/benchmark/gc/gcbench.rb +++ b/benchmark/gc/gcbench.rb @@ -2,7 +2,7 @@ require 'benchmark' require 'pp' -script = File.join(__dir__, ARGV.shift) +script = File.join(File.dirname(__FILE__), ARGV.shift) script += '.rb' unless FileTest.exist?(script) raise "#{script} not found" unless FileTest.exist?(script) |