emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-ruby c14a68d164 207/265: Specify environment correctly


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby c14a68d164 207/265: Specify environment correctly
Date: Sat, 9 Jul 2022 21:59:26 -0400 (EDT)

branch: elpa/inf-ruby
commit c14a68d1643ac3f439234da6a8275b48cae970d3
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Specify environment correctly
    
    #105
---
 inf-ruby.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 8ac5dfd869..271eec5d7d 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -814,11 +814,12 @@ automatically."
   (interactive (list (inf-ruby-console-read-directory 'hanami)))
   (let* ((default-directory (file-name-as-directory dir))
          (env (inf-ruby-console-hanami-env))
-         (with-bundler (file-exists-p "Gemfile")))
+         (with-bundler (file-exists-p "Gemfile"))
+         (process-environment (cons (format "HANAMI_ENV=%s" env)
+                                    process-environment)))
     (inf-ruby-console-run
      (concat (when with-bundler "bundle exec ")
-             "hanami console "
-             env)
+             "hanami console")
      "hanami")))
 
 (defun inf-ruby-console-hanami-env ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]