[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 4f6a265640 178/265: Add support for zeus console
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 4f6a265640 178/265: Add support for zeus console |
Date: |
Sat, 9 Jul 2022 21:59:24 -0400 (EDT) |
branch: elpa/inf-ruby
commit 4f6a2656402f02088b8a645fc71792ab580c624f
Author: Philipp Fehre <philipp@fehre.co.uk>
Commit: Philipp Fehre <philipp@fehre.co.uk>
Add support for zeus console
When a `.zeus.sock` file is present in the current directory this means
that the project uses [zeus](https://github.com/burke/zeus) and would be
suited to use it to launch a console. Depending on if zeus is installed
globally or for the current project only this might require `bundle
exec` to run.
---
inf-ruby.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 340c96d6d2..39399290ec 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -630,7 +630,8 @@ keymaps to bind `inf-ruby-switch-from-compilation' to `ะก-x
C-q'."
'inf-ruby-switch-from-compilation)))
(defvar inf-ruby-console-patterns-alist
- '((inf-ruby-console-rails-p . rails)
+ '((".zeus.sock" . zeus)
+ (inf-ruby-console-rails-p . rails)
("*.gemspec" . gem)
(inf-ruby-console-racksh-p . racksh)
("Gemfile" . default))
@@ -657,7 +658,7 @@ This checks if the current line is a pry or ruby-debug
prompt.")
;;;###autoload
(defun inf-ruby-console-auto ()
"Run the appropriate Ruby console command.
-The command and and the directory to run it from are detected
+The command and the directory to run it from are detected
automatically."
(interactive)
(let* ((dir (locate-dominating-file default-directory
@@ -674,6 +675,13 @@ automatically."
(inf-ruby-file-contents-match "config/application.rb"
"\\_<Rails::Application\\_>")))
+;;;###autoload
+(defun inf-ruby-console-zeus (dir)
+ (interactive "D")
+ (let ((default-directory (file-name-as-directory dir))
+ (exec-prefix (if (executable-find "zeus") "" "bundle exec ")))
+ (run-ruby (concat exec-prefix "zeus console") "zeus")))
+
;;;###autoload
(defun inf-ruby-console-rails (dir)
"Run Rails console in DIR."
- [nongnu] elpa/inf-ruby a960434970 096/265: run-ruby: write better docstring, (continued)
- [nongnu] elpa/inf-ruby a960434970 096/265: run-ruby: write better docstring, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby dbb8d63324 082/265: Add missing license section to comment front-matter, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 27143433e4 083/265: A few doc fixes, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d91f395070 080/265: Add missing require for thingatpt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4c39cd1509 123/265: Fix a couple of compilation warnings, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 00237986d8 130/265: Turn `inf-ruby-implementations` into custom form, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 70da83f8e4 131/265: Merge pull request #54 from wasamasa/feature-defcustom, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f6a6b89e08 161/265: Adapting code to use looking-at over re-search-forward., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 505a7bc140 170/265: Merge pull request #84 from janpath/patch-1, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4d82095424 174/265: inf-ruby-console-gem: Only try to load Ruby files, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4f6a265640 178/265: Add support for zeus console,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby af4f238ef4 200/265: Merge pull request #99 from dgopstein/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4893dd6426 208/265: Describe how to add custom prompt patterns (#108), ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 49d59a7897 216/265: Merge pull request #115 from p-sdk/add-ruby-send-and-go-commands, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a4c766e605 231/265: Use pry_instance, _pry_ is not in Pry 0.13 anymore, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9f0f79ff45 232/265: inf-ruby-console-rails: Try to handle IRB's "multiline" thing here, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby c2a28ef6a1 242/265: Replace toggle-read-only-mode with read-only-mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby cd50ce8432 249/265: Creating eval overlay feature, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 57642c27fd 053/265: inf-ruby-completions: support non-"current" inf-ruby-mode buffers and Pry, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 33e17e055f 037/265: Move keys to a new minor mode, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 91bbd7763d 071/265: Avoid error when trying to switch to non-existing inf-ruby buffer, ELPA Syncer, 2022/07/09