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

ruby-changes:61406

From: Yusuke <ko1@a...>
Date: Thu, 28 May 2020 14:40:54 +0900 (JST)
Subject: [ruby-changes:61406] f186f2d01d (master): Use Module#name instead of #inspect

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

From f186f2d01d26405047f5b43cf0e72a51c9bf54fe Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Thu, 28 May 2020 14:39:53 +0900
Subject: Use Module#name instead of #inspect

Coverage measurement had failed since 7d5da30c9e9c572f6ef0aaccc1ca0e724966e2ee
https://github.com/ruby/actions/runs/708557030?check_suite_focus=true

diff --git a/tool/test-coverage.rb b/tool/test-coverage.rb
index e0d7dd0..4950bc6 100644
--- a/tool/test-coverage.rb
+++ b/tool/test-coverage.rb
@@ -44,7 +44,7 @@ def save_coverage_data(res1) https://github.com/ruby/ruby/blob/trunk/tool/test-coverage.rb#L44
     if cov[:methods]
       h = {}
       cov[:methods].each do |(klass, *key), count|
-        h[[klass.inspect, *key]] = count
+        h[[klass.name, *key]] = count
       end
       cov[:methods].replace h
     end
-- 
cgit v0.10.2


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

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