Last active
March 29, 2019 08:10
-
-
Save dnpp73/65481037153f5f4c289548266616d518 to your computer and use it in GitHub Desktop.
rbenv_ruby_install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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