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

ruby-changes:33821

From: nobu <ko1@a...>
Date: Sat, 10 May 2014 21:15:26 +0900 (JST)
Subject: [ruby-changes:33821] nobu:r45902 (trunk): envutil.rb: rubybin: keyword

nobu	2014-05-10 21:15:09 +0900 (Sat, 10 May 2014)

  New Revision: 45902

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

  Log:
    envutil.rb: rubybin: keyword
    
    * test/ruby/envutil.rb (invoke_ruby): add rubybin: keyword option
      to specify the command to run scripts.

  Modified files:
    trunk/test/ruby/envutil.rb
Index: test/ruby/envutil.rb
===================================================================
--- test/ruby/envutil.rb	(revision 45901)
+++ test/ruby/envutil.rb	(revision 45902)
@@ -33,6 +33,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L33
   def invoke_ruby(args, stdin_data = "", capture_stdout = false, capture_stderr = false,
                   encoding: nil, timeout: 10, reprieve: 1,
                   stdout_filter: nil, stderr_filter: nil,
+                  rubybin: EnvUtil.rubybin,
                   **opt)
     in_c, in_p = IO.pipe
     out_p, out_c = IO.pipe if capture_stdout
@@ -51,7 +52,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L52
       child_env.update(args.shift)
     end
     args = [args] if args.kind_of?(String)
-    pid = spawn(child_env, EnvUtil.rubybin, *args, **opt)
+    pid = spawn(child_env, rubybin, *args, **opt)
     in_c.close
     out_c.close if capture_stdout
     err_c.close if capture_stderr && capture_stderr != :merge_to_stdout

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

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