Added Ruby gems script
Necessary to provide a single source of truth for installing Ruby dependencies. This used to be managed by the Ruby Setup project but that project is being deprecated in favor of this project.
This commit is contained in:
@@ -188,6 +188,19 @@ install_program() {
|
||||
}
|
||||
export -f install_program
|
||||
|
||||
# Installs Ruby.
|
||||
# Parameters: None.
|
||||
install_ruby() {
|
||||
local version="$(cat $HOME/.ruby-version | tr -d '\n')"
|
||||
|
||||
if [[ ! -x "$(command -v ruby)" && -n $(ruby --version | grep --quiet "$version") ]]; then
|
||||
$(get_homebrew_bin_root)/ruby-install "ruby-$version"
|
||||
chruby "$version"
|
||||
gem update --system && gem update
|
||||
fi
|
||||
}
|
||||
export -f install_ruby
|
||||
|
||||
# Installs Rust.
|
||||
# Parameters: None.
|
||||
install_rust() {
|
||||
|
||||
Reference in New Issue
Block a user