branch: elpa/inf-ruby
commit b3747e95745e70e5374b833887b6520ed7db3c6f
Merge: 23929579a6 8979f51c53
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    Merge pull request #59 from proofit404/master
    
    Improve inf-ruby-console-default command selection
---
 inf-ruby.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 9f6da521b2..c6f7030a33 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -691,8 +691,10 @@ Gemfile, it should use the `gemspec' instruction."
     (cond
      ((inf-ruby-file-contents-match "Gemfile" "[\"']racksh[\"']")
       (run-ruby "bundle exec racksh" "racksh"))
+     ((inf-ruby-file-contents-match "Gemfile" "[\"']pry[\"']")
+      (run-ruby "bundle exec pry" "pry"))
      ((file-exists-p "console.rb")
-      (run-ruby "ruby console.rb" "console.rb"))
+      (run-ruby "bundle exec ruby console.rb" "console.rb"))
      (t
       (run-ruby "bundle console")))))
 

Reply via email to