1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2013-06-20 08:25:16 +00:00
parent 8fbffe61cc
commit 1db64a2035
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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)