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

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

[nongnu] elpa/inf-ruby 0697315485 109/265: Merge pull request #52 from a


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 0697315485 109/265: Merge pull request #52 from abicky/support-dir-without-traiing-slash
Date: Sat, 9 Jul 2022 21:59:18 -0400 (EDT)

branch: elpa/inf-ruby
commit 069731548540232730f5e03a741766096fb3e6b4
Merge: db0bdf3f38 20585d3983
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Merge pull request #52 from abicky/support-dir-without-traiing-slash
    
    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]