File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -525,12 +525,13 @@ need to be shell-quoted."
525
525
526
526
Returns t if GEM-NAME is listed in the current project's
527
527
Gemfile.lock, nil otherwise."
528
- (let* ((lockfile " Gemfile.lock" )
529
- (file (buffer-file-name ))
530
- (dir (and file (locate-dominating-file file lockfile))))
531
- (and dir
528
+ (let* ((file (buffer-file-name ))
529
+ (lockfile " Gemfile.lock" )
530
+ (lockdir (and file (locate-dominating-file file lockfile)))
531
+ (lockfile (and lockdir (expand-file-name lockfile lockdir))))
532
+ (and lockfile
532
533
(with-temp-buffer
533
- (insert-file-contents ( expand-file-name lockfile dir) )
534
+ (insert-file-contents lockfile)
534
535
(re-search-forward (format " ^ %s " (regexp-quote gem-name))
535
536
nil t ))
536
537
t )))
You can’t perform that action at this time.
0 commit comments