2017-02-19 18:57:16 -05:00
|
|
|
;; -*- no-byte-compile: t; -*-
|
|
|
|
;;; lang/ruby/packages.el
|
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(package! inf-ruby)
|
|
|
|
(package! rspec-mode)
|
|
|
|
(package! ruby-refactor)
|
|
|
|
(package! yard-mode)
|
2017-02-19 18:57:16 -05:00
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(when (featurep! :completion company)
|
|
|
|
(package! company-inf-ruby))
|
2017-03-25 18:41:29 -04:00
|
|
|
|
|
|
|
;;
|
|
|
|
(def-bootstrap! ruby
|
|
|
|
;; Since there are so many possible setups for a ruby environment (rbenv, rvm,
|
|
|
|
;; etc), I'll leave it to you and only take care of installing gem
|
|
|
|
;; dependencies.
|
|
|
|
(unless (executable-find "ruby")
|
|
|
|
(error "ruby isn't installed"))
|
|
|
|
(unless (executable-find "gem")
|
|
|
|
(error "gem isn't installed"))
|
|
|
|
(when-let (pkgs (cl-remove-if 'executable-find) '("ruby-lint")))
|
|
|
|
(sh "gem install %s" (s-join " " pkgs)))
|