#!/bin/bash -e

#adding keys

cd /root

# added to fix https://github.com/rvm/rvm/issues/3108
curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -

echo "================= Installing RVM ==================="
curl -sSL https://get.rvm.io | bash -s stable

# Set source to rvm
source /usr/local/rvm/scripts/rvm
rvm requirements

echo "================= Installing default ruby ==================="
rvm reinstall 2.5.0 --disable-binary

# tell rvm to use this version as default
rvm use 2.5.0 --default

#update gems to current
rvm rubygems current

#!/bin/bash -e

#adding keys

cd /root

# added to fix https://github.com/rvm/rvm/issues/3108
curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -

echo "================= Installing RVM ==================="
curl -sSL https://get.rvm.io | bash -s stable

# Set source to rvm
source /usr/local/rvm/scripts/rvm
rvm requirements

echo "================= Installing default ruby ==================="
rvm reinstall 2.5.1 --disable-binary

# tell rvm to use this version as default
rvm use 2.5.1 --default

#update gems to current
rvm rubygems current

Update the ruby latest version 2.5.0 to 2.5.1
Update the ruby latest version 2.5.0 to 2.5.1