From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0r.migadu.com with LMTPS id AFpULuhDjWCeZgEALuJCtg (envelope-from ) for ; Sat, 01 May 2021 14:04:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gFUPKuhDjWAyPwAAB5/wlQ (envelope-from ) for ; Sat, 01 May 2021 12:04:56 +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 73457110C0 for ; Sat, 1 May 2021 14:04:56 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A35A5271E0; Sat, 1 May 2021 08:04:52 -0400 (EDT) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by mail.notmuchmail.org (Postfix) with ESMTPS id 119792717A for ; Sat, 1 May 2021 08:04:51 -0400 (EDT) Received: by mail-oi1-x22d.google.com with SMTP id e25so843827oii.2 for ; Sat, 01 May 2021 05:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fvxnSUNHjlYdoacLmyRYNwmJpXyVIUG9D8z//bvJBOg=; b=WV8M4EDxn1PIoNdSXOiWpJW0tcT/TA//Uisi/rAVrg25nny51SPksN9uK3Xnq35C/R tvyzRkG9wEby3wmmGHVKd67sfkAhg7XTr+u5DqI8J1EXsbqCIV1ijA37AXVIwJvBPSuS /4ZG+oIzXpi6Yoytp1jGy6uK7Cq+mJKisS2lyp01qXc0oEi6Iq1BFB85nSeyzC23xBu2 QdeR/Tpaw9gwr27tZVpVAkvc2Q2lMYTB8L1wn343QxDRuaAkxMheFZG5z9v99e4Q93si tpvM8wabLI3Vi53i9sEwzOux4GpHcJ6LsWQ79hcav/CEsFXaKbs1WzWVF/M3M6USngks 3URA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fvxnSUNHjlYdoacLmyRYNwmJpXyVIUG9D8z//bvJBOg=; b=TCWJzil8GbcO/3zkyE/cmpSwgcf5jcf/qJn1nlIvqVHjVUdnQIv7li77+VRSOz6qxg kZnmW32JbA7YvuPE1tzw3hejZtFLWe18lk6S/PsTyOGDTexMLSVsu0rJ3NWudgp9acg1 2QfXZSw+cwnBskAVoG7e8NnxpuSTDmnM2Odyn/cTHwvjYab4yyotgtLX+OnNCmEI95UO MZLSsmhrm7HX1lZf1dUZtwAdC6SPArXnFGhR9/syzaggA85MsHmpU/PEx5/ipQaOB4Sk mj31Jzg9wjd0vJOKzhGB4hFKZ0IxErApGWmn929tTbE9ijXnElEJE0iGDY+SIKliVx6S 7keQ== X-Gm-Message-State: AOAM532jr9SG0lZJnSm4hTGgD56ck68CT9AGWuVZ39g5KnrrGDNTi5Eh o+ZxLtBJh7Lhd2p5JzMxxYgZ/L1dx5okuA== X-Google-Smtp-Source: ABdhPJzPTj48ZQw7nuw2PmC15qgeNXsyyusQbDIFw0DOUh/vUCKcF4aNqLKFVXUU88kcfkGFwqt1uQ== X-Received: by 2002:aca:3446:: with SMTP id b67mr7374437oia.136.1619870690298; Sat, 01 May 2021 05:04:50 -0700 (PDT) Received: from localhost ([2806:2f0:4060:638f:a2c5:89ff:fe0c:1151]) by smtp.gmail.com with ESMTPSA id m67sm1015841otm.69.2021.05.01.05.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 May 2021 05:04:49 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 0/3] ruby: improve db.query Date: Sat, 1 May 2021 07:04:45 -0500 Message-Id: <20210501120448.484082-1-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Message-ID-Hash: RMPDUV3ZI5LN7GNEKOMLQFRVKTGHK6KR X-Message-ID-Hash: RMPDUV3ZI5LN7GNEKOMLQFRVKTGHK6KR 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 CC: Ludovic LANGE , Stefano Zacchiroli 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=1619870696; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xH5h1Eprmc32ADs9Ya0w7cPwjXuZrD1tvxXNuvwFkWk=; b=H7u6uvtHKIKEWpbcs2XpfTWRi8EL/7ryd0pazA3Gve8PnsG+CFshrCnNBHVg6Jt6/AAa/D /B/iyvKIpneaW8F9k3bTTzaCu6nDjP4PKEcjOXlq2JMwh0NFHqgkCN2L2/v1a8kWX1Nxom vvN+a6BTRK4BiANcTlwPFvyXb+EwR/oH/9HByMzwslgZS5fBZoer67+boTfRgiUHV7o7qF 3YdnBtfdTsGyubvMHgl6mZuV6y2/Qbyal2bJg9RN2lUM37NBKsbSOjR4ME7HnVk2fJ426y mDaSeY1rBry8TGIyGiRyN0K3VApfNGDXRCnhJanf9I3dlFygmkxCt7bBNsTSjg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619870696; a=rsa-sha256; cv=none; b=qCte5zmrbiN36oKIOvlPbldyNmSIulbOOoYSob7RnnXB22nJx4TeakHUdKv21c+4repQyM Q34gqw3E1arrKOFqjVubiEJ47EElVCI9b6QZ6vuaO6VABRy3OVpVYbQ/CzNq06ashXNY7b 1H7m4FNoePkYOb0bvqLh1pVA5C6m/B8AYrU3vALRAT1hjMnBLidbVtDy3UGGh7gxzUvjAe 0Km6dvCChFXASSX+rgdPM4fOhSXld9qtEjKvmHD4VYOaY/yvLURL6e7LgzIDS7wpWg4GH3 1BydfAf7SWSycMs/FvBaP0JHOQVpB+kxtLvZXf/VEc/LwEZijTX351UTk+e63g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=WV8M4EDx; 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.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=WV8M4EDx; 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: 73457110C0 X-Spam-Score: -0.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: XDI1xTIu5ksP I find it a bit annoying to have to modify the query object to add options when Notmuch::Database.query() can do that just fine. This series also adds a mapping to the notmuch_exclude_t enum in order to be able to specify NOTMUCH_EXCLUDE_ALL and others. This patch series goes on top of my ruby test cleanups [1]. [1] id:20210501115923.483816-1-felipe.contreras@gmail.com Felipe Contreras (3): ruby: use notmuch_exclude_t enum ruby: add keyword arguments to db.query test: ruby: simplify basic tests bindings/ruby/database.c | 47 +++++++++++++++++++++++++++++++++++++--- bindings/ruby/defs.h | 2 +- bindings/ruby/init.c | 26 +++++++++++++++++++++- bindings/ruby/query.c | 8 ++++--- test/T395-ruby.sh | 47 +++++++++++++++++++++++++++++++++------- 5 files changed, 114 insertions(+), 16 deletions(-) -- 2.31.0