Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 022c597

Browse files
committed
Fix locating gem when bundle show process outputs warnings
1 parent 43efb6b commit 022c597

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

bundler.el

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,19 +187,14 @@ found."
187187
"bundle info --path"))
188188
(bundler-stdout
189189
(shell-command-to-string
190-
(format "%s %s" cmd (shell-quote-argument gem-name))))
191-
(remote (file-remote-p default-directory)))
190+
(format "%s %s" cmd (shell-quote-argument gem-name)))))
192191
(cond
193192
((string-match "Could not locate Gemfile" bundler-stdout)
194193
'no-gemfile)
195194
((string-match "Could not find " bundler-stdout)
196195
nil)
197196
(t
198-
(concat remote
199-
(replace-regexp-in-string
200-
"Resolving dependencies...\\|The dependency .* will be unused by .*$\\|\n" ""
201-
bundler-stdout)
202-
"/")))))
197+
(last (split-string bundler-output "[\n]"))))))
203198

204199
(defvar bundle-gem-list-cache
205200
(make-hash-table)

0 commit comments

Comments
 (0)