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

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

[nongnu] elpa/inf-ruby e7001f3972: inf-ruby-console-default: Behave diff


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby e7001f3972: inf-ruby-console-default: Behave differently when 'gem "pry"' is commented out
Date: Tue, 16 Jan 2024 13:00:27 -0500 (EST)

branch: elpa/inf-ruby
commit e7001f397207fc31d70d9e9590c05e2d4c7c4dbc
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    inf-ruby-console-default: Behave differently when 'gem "pry"' is commented 
out
    
    https://github.com/dgutov/robe/issues/147
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index eba7873321..e4a4a9c832 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -1297,7 +1297,7 @@ Return the end position of the breakpoint prompt."
     (unless (file-exists-p "Gemfile")
       (error "The directory must contain a Gemfile"))
     (cond
-     ((inf-ruby-file-contents-match "Gemfile" "[\"']pry[\"']")
+     ((inf-ruby-file-contents-match "Gemfile" "^[ \t]*gem[ \t]*[\"']pry[\"']")
       (inf-ruby-console-run "bundle exec pry" "pry"))
      (t
       (inf-ruby-console-run "bundle console" "bundle console")))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]