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

ruby-changes:58375

From: aycabta <ko1@a...>
Date: Thu, 24 Oct 2019 00:01:01 +0900 (JST)
Subject: [ruby-changes:58375] 039faecdb8 (master): Suppress duplicated "require 'reline'"

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

From 039faecdb88546a7ad43594a870900b0b370aa9c Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Wed, 23 Oct 2019 23:58:59 +0900
Subject: Suppress duplicated "require 'reline'"


diff --git a/lib/readline.rb b/lib/readline.rb
index 690441e..6cc923c 100644
--- a/lib/readline.rb
+++ b/lib/readline.rb
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/readline.rb#L1
 begin
   require 'readline.so'
 rescue LoadError
-  require 'reline'
+  require 'reline' unless defined? Reline
   Readline = Reline
 end
-- 
cgit v0.10.2


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

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