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

ruby-changes:74286

From: Nobuyoshi <ko1@a...>
Date: Sat, 29 Oct 2022 21:06:22 +0900 (JST)
Subject: [ruby-changes:74286] bc28acc347 (master): [ruby/digest] Use CommonDigest by default if available

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

From bc28acc347eace4d02bbb4b672655216f7dd3a81 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 29 Oct 2022 16:31:54 +0900
Subject: [ruby/digest] Use CommonDigest by default if available

https://github.com/ruby/digest/commit/cce9ada85e
---
 ext/digest/digest_conf.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/digest/digest_conf.rb b/ext/digest/digest_conf.rb
index 1b929d8732..36a7d75289 100644
--- a/ext/digest/digest_conf.rb
+++ b/ext/digest/digest_conf.rb
@@ -3,7 +3,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/digest/digest_conf.rb#L3
 def digest_conf(name)
   unless with_config("bundled-#{name}")
     cc = with_config("common-digest")
-    if cc == true or /\b#{name}\b/ =~ cc
+    if cc != false or /\b#{name}\b/ =~ cc
       if File.exist?("#$srcdir/#{name}cc.h") and
         have_header("CommonCrypto/CommonDigest.h")
         $defs << "-D#{name.upcase}_USE_COMMONDIGEST"
-- 
cgit v1.2.3


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

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