doomemacs/modules/lang/ruby/doctor.el

21 lines
837 B
EmacsLisp
Raw Normal View History

2018-05-15 13:50:58 +02:00
;;; lang/ruby/doctor.el -*- lexical-binding: t; -*-
(assert! (or (not (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")
(assert! (or (not (featurep! +tree-sitter))
(featurep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")
2018-05-15 13:50:58 +02:00
(unless (executable-find "ruby")
(warn! "Ruby isn't installed."))
(when (and (executable-find "rbenv") (featurep! +rbenv))
2018-05-15 13:50:58 +02:00
(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?")))
(when (and (executable-find "chruby") (featurep! +chruby))
(unless (split-string (shell-command-to-string "chruby") "\n" t)
(warn! "No versions of ruby are available via chruby, did you forget to install one?")))