Skip to content

Instantly share code, notes, and snippets.

@dnpp73
Last active March 29, 2019 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnpp73/65481037153f5f4c289548266616d518 to your computer and use it in GitHub Desktop.
Save dnpp73/65481037153f5f4c289548266616d518 to your computer and use it in GitHub Desktop.
rbenv_ruby_install
#!/usr/bin/env bash
set -x # tell sh to display commands before execution
test -s "$HOME/.gemrc" && cat "$HOME/.gemrc"
test -s "$HOME/.bundle/config" && cat "$HOME/.bundle/config"
VERSIONS=("2.3.0" "2.3.3" "2.5.0" "2.5.1" "2.5.2" "2.5.3" "2.5.4" "2.5.5" "2.6.0" "2.6.1" "2.6.2")
for VERSION in ${VERSIONS[@]}; do
rbenv install --skip-existing $VERSION
done
for VERSION in ${VERSIONS[@]}; do
rbenv local $VERSION
yes | gem uninstall -I -a -x --user-install --force
yes | gem update --system --force --no-document
yes | gem update --force --no-document
yes | gem cleanup
yes | gem install --force --no-document bundler # 2.x
# yes | gem install --force --no-document bundler:1.16.1
# yes | gem install --force --no-document bundler:1.17.2
# yes | gem install --force --no-document bundler:1.17.3
done
gem install bundler pry cocoapods xcpretty fastlane exif mini_exiftool rubocop ruby-debug-ide byebug
rbenv local --unset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment