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

ruby-changes:72069

From: Nobuyoshi <ko1@a...>
Date: Mon, 6 Jun 2022 21:20:00 +0900 (JST)
Subject: [ruby-changes:72069] 66a9e452bb (master): [ruby/rdoc] Use runnable command as DUMMY_PAGER

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

From 66a9e452bbbb69e5a653d078839b222b92034cb6 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 6 Jun 2022 21:19:24 +0900
Subject: [ruby/rdoc] Use runnable command as DUMMY_PAGER

https://github.com/ruby/rdoc/commit/fec1ab2e41
---
 test/rdoc/test_rdoc_ri_driver.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb
index c23fe63130..fc15c25cea 100644
--- a/test/rdoc/test_rdoc_ri_driver.rb
+++ b/test/rdoc/test_rdoc_ri_driver.rb
@@ -38,7 +38,12 @@ class TestRDocRIDriver < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_ri_driver.rb#L38
     super
   end
 
-  DUMMY_PAGER = ":;\n"
+  case RUBY_PLATFORM
+  when /mswin|mingw/
+    DUMMY_PAGER = "type nul"
+  else
+    DUMMY_PAGER = "true"
+  end
 
   def with_dummy_pager
     pager_env, ENV['RI_PAGER'] = ENV['RI_PAGER'], DUMMY_PAGER
-- 
cgit v1.2.1


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

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