summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--benchmark/gc/gcbench.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e321afd334..d3b5913fa7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)