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

ruby-changes:49979

From: naruse <ko1@a...>
Date: Tue, 30 Jan 2018 02:05:47 +0900 (JST)
Subject: [ruby-changes:49979] naruse:r62097 (trunk): Suport ruby 1.9.3

naruse	2018-01-30 02:05:41 +0900 (Tue, 30 Jan 2018)

  New Revision: 62097

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62097

  Log:
    Suport ruby 1.9.3

  Modified files:
    trunk/tool/vcs.rb
Index: tool/vcs.rb
===================================================================
--- tool/vcs.rb	(revision 62096)
+++ tool/vcs.rb	(revision 62097)
@@ -91,10 +91,10 @@ else https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L91
   end
   using DebugPOpen
   module DebugSystem
-    def system(*args, exception: true, **opts)
+    def system(*args, **opts)
       STDERR.puts [*args, **opts].inspect if $DEBUG
       if RUBY_VERSION >= "2.6"
-        opts[:exception] = exception
+        opts[:exception] = true unless opts.key?(:exception)
       end
       ret = super(*args, **opts)
       raise "Command failed with status (#$?): #{args[0]}" if exception and !ret

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

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