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

ruby-changes:64379

From: aycabta <ko1@a...>
Date: Sun, 20 Dec 2020 17:08:13 +0900 (JST)
Subject: [ruby-changes:64379] 59b84fbf2e (master): Set :DEFAULT to PROMPT_MODE for CI

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

From 59b84fbf2ef38f1f7c93c526bdb64e382f3dd635 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sun, 20 Dec 2020 17:07:24 +0900
Subject: Set :DEFAULT to PROMPT_MODE for CI


diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb
index 81d9b72..029dcbe 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -158,12 +158,9 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L158
           PROMPT_S: '> ',
           PROMPT_C: '> ',
           PROMPT_N: '> '
-        },
-        PROMPT_I: '> ',
-        PROMPT_S: '> ',
-        PROMPT_C: '> ',
-        PROMPT_N: '> '
+        }
       }
+      IRB.conf[:PROMPT_MODE] = :DEFAULT
       IRB.conf[:MEASURE] = false
       input = TestInputMethod.new([
         "3\n",
@@ -189,12 +186,9 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L186
           PROMPT_S: '> ',
           PROMPT_C: '> ',
           PROMPT_N: '> '
-        },
-        PROMPT_I: '> ',
-        PROMPT_S: '> ',
-        PROMPT_C: '> ',
-        PROMPT_N: '> '
+        }
       }
+      IRB.conf[:PROMPT_MODE] = :DEFAULT
       IRB.conf[:MEASURE] = true
       input = TestInputMethod.new([
         "3\n",
@@ -218,12 +212,9 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L212
           PROMPT_S: '> ',
           PROMPT_C: '> ',
           PROMPT_N: '> '
-        },
-        PROMPT_I: '> ',
-        PROMPT_S: '> ',
-        PROMPT_C: '> ',
-        PROMPT_N: '> '
+        }
       }
+      IRB.conf[:PROMPT_MODE] = :DEFAULT
       IRB.conf[:MEASURE] = true
       IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |line, line_no, &block|
         time = Time.now
@@ -254,12 +245,9 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L245
           PROMPT_S: '> ',
           PROMPT_C: '> ',
           PROMPT_N: '> '
-        },
-        PROMPT_I: '> ',
-        PROMPT_S: '> ',
-        PROMPT_C: '> ',
-        PROMPT_N: '> '
+        }
       }
+      IRB.conf[:PROMPT_MODE] = :DEFAULT
       IRB.conf[:MEASURE] = false
       IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |line, line_no, &block|
         time = Time.now
-- 
cgit v0.10.2


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

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