Browse Source

gem no-document

main
pvincent 2 weeks ago
parent
commit
9c8c766005
  1. 11
      install.sh

11
install.sh

@ -3,7 +3,7 @@
# CONSTANTS # CONSTANTS
BASEDIR=$(dirname "$0") BASEDIR=$(dirname "$0")
DEBIAN_PACKAGES="curl git build-essential libssl-dev libreadline-dev zlib1g-dev"
DEBIAN_PACKAGES="curl git build-essential libssl-dev libreadline-dev zlib1g-dev libyaml-dev "
BASH_RELOAD=false BASH_RELOAD=false
# FUNCTIONS # FUNCTIONS
@ -22,14 +22,19 @@ function install_rails_templating {
function install_ruby { function install_ruby {
if ! command -v ruby >/dev/null; then if ! command -v ruby >/dev/null; then
ruby_version=$(wget_semver github jdx/ruby) ruby_version=$(wget_semver github jdx/ruby)
mise set --global GEM_INSTALL_OPTS="--no-document"
mise use --global ruby@${ruby_version} mise use --global ruby@${ruby_version}
tee $HOME/.gemrc &>/dev/null <<EOF
# Skip documentation generation
install: --no-document
update: --no-document
EOF
else else
echo 'ruby already installed!' echo 'ruby already installed!'
fi fi
if ! command -v rails >/dev/null; then if ! command -v rails >/dev/null; then
mise exec -- gem install rails
mise exec -- gem install rails --no-document
else else
echo 'rails already installed!' echo 'rails already installed!'
fi fi

Loading…
Cancel
Save