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

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

[nongnu] elpa/inf-ruby 20585d3983 108/265: Use file-name-as-directory to


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 20585d3983 108/265: Use file-name-as-directory to add a trailing slash
Date: Sat, 9 Jul 2022 21:59:18 -0400 (EDT)

branch: elpa/inf-ruby
commit 20585d3983c42bd23e878b5145641a552ca8e377
Author: abicky <takeshi.arabiki@gmail.com>
Commit: abicky <takeshi.arabiki@gmail.com>

    Use file-name-as-directory to add a trailing slash
---
 inf-ruby.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index b468c850f0..94a1f5de6e 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -625,7 +625,7 @@ automatically."
 (defun inf-ruby-console-rails (dir)
   "Run Rails console in DIR."
   (interactive "D")
-  (let ((default-directory dir))
+  (let ((default-directory (file-name-as-directory dir)))
     (run-ruby "rails console" "rails")))
 
 ;;;###autoload
@@ -634,7 +634,7 @@ automatically."
 The main module should be loaded automatically.  If DIR contains a
 Gemfile, it should use the `gemspec' instruction."
   (interactive "D")
-  (let* ((default-directory dir)
+  (let* ((default-directory (file-name-as-directory dir))
          (base-command (if (file-exists-p "Gemfile")
                            "bundle exec irb"
                          "irb -I lib"))
@@ -658,7 +658,7 @@ Gemfile, it should use the `gemspec' instruction."
 (defun inf-ruby-console-default (dir)
   "Run racksh, custom console.rb, or just IRB, in DIR."
   (interactive "D")
-  (let ((default-directory dir))
+  (let ((default-directory (file-name-as-directory dir)))
     (unless (file-exists-p "Gemfile")
       (error "The directory must contain a Gemfile"))
     (cond



reply via email to

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