doomemacs/modules/lang/ruby/doctor.el
Otávio Schwanck dos Santos 992f4b76f4
lang/ruby: add +chruby (#2667)
Co-authored-by: Henrik Lissner <accounts@v0.io>
2020-03-09 14:04:10 -04:00

16 lines
693 B
EmacsLisp

;;; lang/ruby/doctor.el -*- lexical-binding: t; -*-
(assert! (or (not (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")
(unless (executable-find "ruby")
(warn! "Ruby isn't installed."))
(when (and (executable-find "rbenv") (featurep! +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?")))
(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?")))