[前][次][番号順一覧][スレッド一覧]

ruby-changes:29435

From: ko1 <ko1@a...>
Date: Thu, 20 Jun 2013 17:25:27 +0900 (JST)
Subject: [ruby-changes:29435] ko1:r41487 (trunk): * benchmark/gc/gcbench.rb: don't use __dir__ to make compatible

ko1	2013-06-20 17:25:16 +0900 (Thu, 20 Jun 2013)

  New Revision: 41487

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41487

  Log:
    * benchmark/gc/gcbench.rb: don't use __dir__ to make compatible
      with ruby 1.9.3.

  Modified files:
    trunk/ChangeLog
    trunk/benchmark/gc/gcbench.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41486)
+++ ChangeLog	(revision 41487)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun 20 17:24:24 2013  Koichi Sasada  <ko1@a...>
+
+	* 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@a...>
 
 	* benchmark/bm_app_aobench.rb: use attr_accessor/reader instead of
Index: benchmark/gc/gcbench.rb
===================================================================
--- benchmark/gc/gcbench.rb	(revision 41486)
+++ benchmark/gc/gcbench.rb	(revision 41487)
@@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/gc/gcbench.rb#L2
 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)
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]