branch: elpa/inf-ruby
commit 870e27f1eed46ee5d72a1f364add9a6167a876d0
Author: Malyshev Artem <[email protected]>
Commit: Malyshev Artem <[email protected]>
Detect pry gem in case to run bundle exec pry.
---
inf-ruby.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/inf-ruby.el b/inf-ruby.el
index 9f6da521b2..9f4869acd4 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -691,6 +691,8 @@ 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"))
(t