From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 031781F548 for ; Wed, 4 Sep 2024 14:17:30 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=pzoEta5j; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=GJAW109h; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1725459448; bh=OF6tnbjiUyBU6w/JAf63xthUvh2PdV27/kG2arm2+vE=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=pzoEta5jI7XQq/JrFRKbHYw5qRLwiQt1Jzw4VfLAFVFLbz+TC9XSQ2Fdz0eF5V9TT hkAEss1JWXllXklIWicZvhSzn+fo5QvUyV51/rsQhLmlethNzavzfFwmrXukDA1zmh lr+Lv8njGqFgsYWGqaT0cNzDR35w99/KTA6wz3iY= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 6D9D043D7C for ; Wed, 4 Sep 2024 14:17:28 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=GJAW109h; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 13D6A43D1E for ; Wed, 4 Sep 2024 14:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=B7vTIubiz8NT31Ws8GiMUIYSCQccU6BIXrecbGGc6IA=; b=GJAW109h02S53Q+kJP2d2pu9osElzrrKEMVn1yL8yM+WEdT4PgueOu5PCeOZTuqBWWyF bTTa9jnz0PI9B7TsFYUpy8sxusu7B86Pm41sB0bxBhP2oGvA5w1ainG6tOGgZSo5KhA490 3OIBJOPQg2CJd7Zc0D3Wp+5m40Udmy2KVFRxNpQphNnzZSRcAg1O1aDL9inhdVKarDQIc9 hn6u+tQEq2Sr3SNROEiHN9Cl0EZXH9bMysFzhZc0zkViO4FvLDWxmRZYJnA42vhFVTn3nX lma3DU/QEoxGX1KGGNlfRIIR3svIKg7BKJT9c42q9oyq9/qk4FznES85noHJgkTA== Received: by recvd-6c5668c69-lf4rz with SMTP id recvd-6c5668c69-lf4rz-1-66D86BED-3 2024-09-04 14:17:17.070415393 +0000 UTC m=+1181072.931258584 Received: from herokuapp.com (unknown) by geopod-ismtpd-4 (SG) with ESMTP id vdbj-xqdTuyJgxVmRuSLSA for ; Wed, 04 Sep 2024 14:17:17.007 +0000 (UTC) Date: Wed, 04 Sep 2024 14:17:17 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20714 X-Redmine-Issue-Author: Earlopain X-Redmine-Issue-Priority: Normal X-Redmine-Sender: Earlopain X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 95680 X-SG-EID: =?us-ascii?Q?u001=2EeN8dK4P86Am4z06GVDKdfvEyoI3WQjPfTcd7CtGb2eN1eriElpjSWp5GJ?= =?us-ascii?Q?vSR=2FvvdvOqED6rgnv4GFThyvgwcpmgmyFEI3rOe?= =?us-ascii?Q?FllQo4PANWnNtFuk4KO90cXvnAJUUUSkOelHDkh?= =?us-ascii?Q?zZjAXU1rJXMefBzjyFWyWGqHIEHRPrgXQ3BchOL?= =?us-ascii?Q?dcPH705ryo9E5oJFZrA9QdapeUBOwp7qQp8DPuc?= =?us-ascii?Q?2G3+m9MXbw4mJimM1GPp7q5elxRdYCA57WBs0cY?= =?us-ascii?Q?AcZT?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: BBTMLIPXBYCEVOP3255R47B3PBRA4H5Z X-Message-ID-Hash: BBTMLIPXBYCEVOP3255R47B3PBRA4H5Z X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119041] [Ruby master Bug#20714] Handle optional dependencies in `bundled_gems.rb` List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "Earlopain (A S) via ruby-core" Cc: "Earlopain (A S)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20714 has been reported by Earlopain (A S). ---------------------------------------- Bug #20714: Handle optional dependencies in `bundled_gems.rb` https://bugs.ruby-lang.org/issues/20714 * Author: Earlopain (A S) * Status: Open * ruby -v: 3.3.5 * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- I've encountered a few places around bundled gems where the library doesn't care if the gem is available, but will still provide some functionallity if it is. The way to accomplish that right now seems to be by setting `$VERBOSE = nil` and resetting it later again to not bother the user with the warning about the gem. However, this has the effect of silencing the warning about other gems as well, that may not be prepared about the bundling. >>From `ruby/reline` for example: https://github.com/ruby/reline/blob/c90f08f7e308d2f1cdd7cfaf9939fe45ce546fd2/lib/reline/terminfo.rb#L1-L15 Or the `logging` gem: https://github.com/TwP/logging/blob/df41715364f7eb8c65098cd3c3316677ef1f3784/lib/logging.rb#L9-L15 I propose to simply delay the warning to the next require. GitHub PR at ... -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/