From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GA2yD5ifuWCT3wAAgWs5BA (envelope-from ) for ; Fri, 04 Jun 2021 05:35:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8CgEC5ifuWCmYgAAB5/wlQ (envelope-from ) for ; Fri, 04 Jun 2021 03:35:52 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E4E0326702 for ; Fri, 4 Jun 2021 05:35:51 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id C31F327DEE; Thu, 3 Jun 2021 23:35:47 -0400 (EDT) Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by mail.notmuchmail.org (Postfix) with ESMTPS id DA8F01FEAB for ; Thu, 3 Jun 2021 23:35:44 -0400 (EDT) Received: by mail-wr1-x436.google.com with SMTP id y7so3175603wrh.7 for ; Thu, 03 Jun 2021 20:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=97iCnTU7HtkDliSdQ/uGnqkJi4OeSLxUjYlv3eaOlFU=; b=dnaQ3j3nDxhpQH9cWQktZeqi5ox3MqiVW79sEDbs0p5gBM5NCtLllMoOWJTaaymhDF L02YpnesBtlLz+SwetM6QqYQSj0oSWjHPdmc5G1V8YWxRY1LPFtcRxY1pRk27ujdzH6c /0lapRld0engj4qsvn7hVFQOqHOV5PyXgqKZPAHaZhXh51lLYhNq91yq6jyXcnnEVwFP Kv5T902uIdhsvl68IFEq3mQKDdB04IN9X2dd5qMX3oZwfarwB69Dxrl6OWv+SVIsLXSt VrSZo6AX7wKFsEQWaUYiZHQPVObOIaz4KMuwbf24aakUpyUPfJjOscXpo68RqHgE5Ovh 1AjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=97iCnTU7HtkDliSdQ/uGnqkJi4OeSLxUjYlv3eaOlFU=; b=AlhR9ziNdCLIPcngYMHFRRdLp2sQ71IlISK9W0uEuYW4HZBObNUQNiEfwWWkKCrMSi P7RsAynHVIsVqjV5ZfbcCL4FYM+ZQJPwQSQS8KSqlxwlhqWG7caGw8zbeDTYeCskM7Lh s6IcRfSWUVJQy2oDZFYy16DxF6v8Sovt4x+x/COpDOpBLXc59YvfgA7ZZy1OYjC+Ygb4 bB3G2iVfg8cL3pDENOkhryWccnrfVto2ebgnQqVa6QVLU6jV/5LuQOR6mmdnW1crb6bd Gt5jCvHJd8TJ0kw84FWl+g85hxm3Bjhig9xmp7Yj55Weoz7pyxrl8ooKkoZidmQn7GZR gEtg== X-Gm-Message-State: AOAM532SRZocM6k7NsGYe+N6aXFgipMTqRz97syE590jPYl66lwoJFHP 3sJUeqKvL/kmf4EfqoBEXmuMl60waHC1w7/8AHOFXiA5c6KGBg== X-Google-Smtp-Source: ABdhPJxv4PAzPICwaZVRaaiPW4NlbET1aPfq1MbkGw2+0VgIwrUQ4+sMs/X3tFD2OOc1/Sb9OtHlqezDJ6vuAAjPdBU= X-Received: by 2002:adf:efca:: with SMTP id i10mr1451848wrp.139.1622777743703; Thu, 03 Jun 2021 20:35:43 -0700 (PDT) MIME-Version: 1.0 References: <20210604032901.3815539-1-felipe.contreras@gmail.com> <20210604032901.3815539-3-felipe.contreras@gmail.com> In-Reply-To: <20210604032901.3815539-3-felipe.contreras@gmail.com> From: Felipe Contreras Date: Thu, 3 Jun 2021 22:35:32 -0500 Message-ID: Subject: Re: [PATCH 2/3] ruby: add db.config To: "notmuch@notmuchmail.org" Cc: David Bremner Message-ID-Hash: BTJKGQRNY5VVDJ6GEP6OEYC2IZ2OY7O3 X-Message-ID-Hash: BTJKGQRNY5VVDJ6GEP6OEYC2IZ2OY7O3 X-MailFrom: felipe.contreras@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622777752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZSwm0QONpqh/fNlQ3sohw20FgV8s3GGIaDa4S7G09T4=; b=AOti7A+Q1OegMp/SSu2ZSsVDadB23VfxmbNYjlrvKtB6eWUwgiB1O4w2ANR5eg0bDlzG8L vInGTKGTzZ0EvkQ0uGenEVncfS98Pe5FcfojaZv+11oxya4ZN/20VAYCC4+OUNwZyVFJzu 8pFxFYiEoTNAvgp8ZLE+ZyVs+efUkYaQ89bYqjXrveNr2BbaGve5JabIvQ7T4IqJu/eXwd sAZxXQ3bquaQyP6WbfHaZEwCa8cuvDCIksW+fLLiaO2IwzbDCFAzmxwC6skXjEUPdMqSFX FyKofqd4TlhWXBfakB3xt+T4sDxbh3tChXbURKjTotmePnoSs03sBah0IGuZig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622777752; a=rsa-sha256; cv=none; b=UlHbopa4Vwe+pcw1g+KYr6JG+Y1Q4u3xCtQ3dmbhrBWSaTnPt/5qq0Fsqa58pwhCBwr14S 3qk7OIcoHBhXHuvFUq6D8mrm9revF0ts6zl208o+3xxgXMOiOvgzOCVdLK/5WPpPFV3Po7 Dgzaufss6y5Hsdk9WfSCODjPKIeGgjdZi8k9HXCO5GN87Y4yOvLThLjxJyWI+TIoBptZvP exDDM/JxXDAQ2sRCCoYJN09fGOCgzEVbpt2klBDmptXn1FgYGKWCBeE+/V0r9TB+GV7Qlw 6e14566pRY1oNmeFajHyHCPVbrVEozzT2SXU+TrKusuuDin9w3i7y1EAI4xB0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=dnaQ3j3n; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=dnaQ3j3n; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: E4E0326702 X-Spam-Score: -0.94 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9Z6AfpGvYrSm On Thu, Jun 3, 2021 at 10:29 PM Felipe Contreras wrote: > --- a/test/T395-ruby.sh > +++ b/test/T395-ruby.sh > @@ -88,4 +88,11 @@ test_ruby < puts Notmuch::Database.open_with_config.path > EOF > > +test_begin_subtest "config" > +notmuch config list | grep -v '^built_with\.' > EXPECTED > +test_ruby <<"EOF" > +config_db = Notmuch::Database.open_with_config > +config_db.config { |e| puts '%s=%s' % e } > +EOF > + I just noticed this might a little more idiomatic: Notmuch::Database.open_with_config do |db| db.config { |e| puts '%s=%s' % e } end -- Felipe Contreras