2018-05-15 13:50:58 +02:00
|
|
|
;;; lang/ruby/doctor.el -*- lexical-binding: t; -*-
|
|
|
|
|
2019-04-22 03:10:25 -04:00
|
|
|
(assert! (or (not (featurep! +lsp))
|
|
|
|
(featurep! :tools lsp))
|
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
2018-05-15 13:50:58 +02:00
|
|
|
(unless (executable-find "ruby")
|
|
|
|
(warn! "Ruby isn't installed."))
|
|
|
|
|
|
|
|
(when (executable-find "rbenv")
|
|
|
|
(unless (split-string (shell-command-to-string "rbenv versions --bare") "\n" t)
|
|
|
|
(warn! "No versions of ruby are available via rbenv, did you forget to install one?")))
|