[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 8b198d01e9 180/265: Merge pull request #93 from s
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 8b198d01e9 180/265: Merge pull request #93 from sideshowcoder/zeus-console-support |
Date: |
Sat, 9 Jul 2022 21:59:24 -0400 (EDT) |
branch: elpa/inf-ruby
commit 8b198d01e90ca4e769743ab5bf5b5176881a0055
Merge: df014b0717 4f6a265640
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: GitHub <noreply@github.com>
Merge pull request #93 from sideshowcoder/zeus-console-support
Add support for zeus console
---
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 8979f51c53 126/265: Start console.rb through bundler., (continued)
- [nongnu] elpa/inf-ruby 8979f51c53 126/265: Start console.rb through bundler., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby db0bdf3f38 107/265: Merge pull request #50 from avsej/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 2cebc69ecd 095/265: Remove some outdated code, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6c00b018bf 142/265: inf-ruby-console-rails-p: Use a stricter check, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby d130ede56a 133/265: Define a proper completion function, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b31b7d3061 137/265: inf-ruby-console-patterns-alist: Detect Rails by the presence of bin/rails, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1f69ae4baf 157/265: Automatically entering inf-ruby on pry, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 03e969c89a 146/265: Retain compilation-arguments, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 7f8f32e7d0 154/265: Use 'point-min instead of the hardcoded value, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 45af13a729 172/265: Recognize byebug prompt, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8b198d01e9 180/265: Merge pull request #93 from sideshowcoder/zeus-console-support,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby c14a68d164 207/265: Specify environment correctly, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5ae6149a15 211/265: Merge pull request #110 from ppiotrowicz/master, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a986a1a8c6 260/265: Fix broken behaviour on load-current-ruby-file fn, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby dbf4386bac 264/265: Use a more uniform style, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1940f90fde 017/265: Version 2.2.3, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby b45b057006 044/265: Fix syntax error highlighting, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby a85ae010c6 046/265: Handle different prompts, not just the IRB default, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 310da805b6 129/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 67629312ad 120/265: Work around pry/pry#1267, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 866483eecc 190/265: Fix a comment, ELPA Syncer, 2022/07/09