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

ruby-changes:55891

From: Takashi <ko1@a...>
Date: Wed, 29 May 2019 08:23:43 +0900 (JST)
Subject: [ruby-changes:55891] Takashi Kokubun: 6b5e712361 (trunk): Make tool/vcs.rb compliant to BASERUBY

https://git.ruby-lang.org/ruby.git/commit/?id=6b5e712361

From 6b5e712361cca8559ed66d5c1106e888c5971d39 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Wed, 29 May 2019 08:22:02 +0900
Subject: Make tool/vcs.rb compliant to BASERUBY

People seem to consider BASERUBY is either 1.8 or 1.9 now. Since this
file may be executed by BASERUBY from file2lastrev.rb, I think we should
not rely on Ruby 2.0 in this file for now.

diff --git a/tool/vcs.rb b/tool/vcs.rb
index 34bafa7..ecb313d 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -124,7 +124,8 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L124
     @@dirs << [dir, self, pred]
   end
 
-  def self.detect(path, uplevel_limit: 0)
+  def self.detect(path, options = {})
+    uplevel_limit = options.fetch(:uplevel_limit, 0)
     curr = path
     begin
       @@dirs.each do |dir, klass, pred|
-- 
cgit v0.10.2


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

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