/simpson-ruby-version

💎 Modeled after chruby simpson-ruby-version is an Emacs package that changes the Ruby environment based on the .ruby-version file.

Primary LanguageEmacs Lisp

simpson-ruby-version

Example configuration

(use-package simpson-ruby-version
  :commands simpson-ruby-version
  :config (progn
            (setq simpson-ruby-default-gem-path "/usr/local/bin/gem")
            (setq simpson-ruby-rubies-path "/usr/local/rubies/")
            (setq simpson-ruby-gem-path "~/.gem/ruby/")))

Usage

M-x simpson-ruby-version whenever you need to change the environment to a new Ruby version.