From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KDQELF6ljl8QagAA0tVLHw (envelope-from ) for ; Tue, 20 Oct 2020 08:52:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OF7dJ16ljl/2XAAAbx9fmQ (envelope-from ) for ; Tue, 20 Oct 2020 08:52:46 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3EF639404CE for ; Tue, 20 Oct 2020 08:52:46 +0000 (UTC) Received: from localhost ([::1]:47492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUnNr-0001xm-NJ for larch@yhetil.org; Tue, 20 Oct 2020 04:52:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUnMy-0001vS-09 for emacs-orgmode@gnu.org; Tue, 20 Oct 2020 04:51:48 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:42293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUnMw-0007Fb-Dn for emacs-orgmode@gnu.org; Tue, 20 Oct 2020 04:51:47 -0400 Received: by mail-pf1-x435.google.com with SMTP id x13so788379pfa.9 for ; Tue, 20 Oct 2020 01:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=madlon-kay.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0FbcG8srisg+6RKeswIPAKRo4BBotFieGFyfIXuExQ4=; b=V+FwJliibhAgizu+tVX6UMik700fA9qv2p6rz/b/NR9Kntn/MVysIiykT+0zQvjwf4 5YH/pFRm+9ebb3JOMx1alrSYf4WMvoK0/qbeoiJDngxiZwA+HEUCix0I1ho9xIErJASw XWrM8oAAvHj9eGfWAx6ikNErkCdRLpjTwnxd4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0FbcG8srisg+6RKeswIPAKRo4BBotFieGFyfIXuExQ4=; b=RgJGyNqWc45m3ztm0JhB3A4sMrkytlbCZi1enJbYy1IORtLNAE4NYgSXZ5dcqYmwJB ARDGzMmTDB/ohtSYUtChcMP4CAxeuLWmj3FoxXdA3p//AeiJBTYpSevh1QiOAtI5cyr0 HIzh+bNk8gHl13nMfJVrXNQA/gNKZ1IjafiYivAZA3hA04h/CR/b5sz4yur1fyqfZHUu KT7oONNnSEAD8KDBc6oFGeZaoJXdBCDHH89Ik6tZLjSR49/YtNYe/i1WnwKxyvCxh3wo 8EJw5dxQDv+2OsvfzD5DwPupW9bOybjMi5dKC/eAg1aFY+Liy4eOsNypeTI7kfLxbgOi +ryQ== X-Gm-Message-State: AOAM530lhdpgCfCCK8qhLBaXMoQ4I71ojmeCKXJwRXGOqC+HXdksv36q GGDiBvVcPVdcrXui7NijkNr+gCKY/itNUw== X-Google-Smtp-Source: ABdhPJx+STd6FSz5tff0YlnitV3QX0wKoJiVcdV8Nxe4hEubDKuyK/T4WF7taNWNAp69YkLMC12Oow== X-Received: by 2002:a63:da47:: with SMTP id l7mr1794550pgj.417.1603183904132; Tue, 20 Oct 2020 01:51:44 -0700 (PDT) Received: from localhost.localdomain (p3336217-ipngn21601hodogaya.kanagawa.ocn.ne.jp. [153.169.220.217]) by smtp.googlemail.com with ESMTPSA id v3sm1310098pfu.165.2020.10.20.01.51.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Oct 2020 01:51:43 -0700 (PDT) From: Aaron Madlon-Kay To: emacs-orgmode@gnu.org Subject: [PATCH] ob-ruby.el: allow specification of ruby command w/header arg Date: Tue, 20 Oct 2020 17:49:56 +0900 Message-Id: <20201020084956.61337-2-aaron@madlon-kay.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201020084956.61337-1-aaron@madlon-kay.com> References: <20201020084956.61337-1-aaron@madlon-kay.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2607:f8b0:4864:20::435; envelope-from=aaron@madlon-kay.com; helo=mail-pf1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aaron Madlon-Kay Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=madlon-kay.com header.s=google header.b=V+FwJlii; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 3.79 X-TUID: KIrgOc52+cBH Using the :ruby header arg. * lisp/ob-ruby.el (org-babel-execute:ruby): Locally set `org-babel-ruby-command' using a header argument. TINYCHANGE --- lisp/ob-ruby.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/ob-ruby.el b/lisp/ob-ruby.el index 669c2eabf..80870c6c0 100644 --- a/lisp/ob-ruby.el +++ b/lisp/ob-ruby.el @@ -74,6 +74,9 @@ This function is called by `org-babel-execute-src-block'." (cdr (assq :session params)))) (result-params (cdr (assq :result-params params))) (result-type (cdr (assq :result-type params))) + (org-babel-ruby-command + (or (cdr (assq :ruby params)) + org-babel-ruby-command)) (full-body (org-babel-expand-body:generic body params (org-babel-variable-assignments:ruby params))) (result (if (member "xmp" result-params) -- 2.28.0