Skip to content

Commit aaa13fd

Browse files
committed
Use bundled Ruby 2.5
Ubuntu 18.04 LTS supports Ruby 2.5 without 3rd party tools. https://packages.ubuntu.com/bionic/ruby `ruby-full` is a Ubuntu package name to install Ruby via apt https://launchpad.net/ubuntu/bionic/+package/ruby-full https://www.ruby-lang.org/en/documentation/installation/#apt ```ruby vagrant@rails-dev-box:~$ ruby -v ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu] vagrant@rails-dev-box:~$ gem -v 2.7.7 vagrant@rails-dev-box:~$ bundle -v Bundler version 1.16.2 vagrant@rails-dev-box:~$ which ruby /usr/bin/ruby vagrant@rails-dev-box:~$ which gem /usr/bin/gem ```
1 parent 7cb1f29 commit aaa13fd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bootstrap.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,11 @@ swapon /swapfile
1515
echo '/swapfile none swap defaults 0 0' >> /etc/fstab
1616

1717
echo updating package information
18-
apt-add-repository -y ppa:brightbox/ruby-ng >/dev/null 2>&1
1918
apt-get -y update >/dev/null 2>&1
2019

20+
install Ruby ruby-full
2121
install 'development tools' build-essential autoconf libtool
2222

23-
install Ruby ruby2.5 ruby2.5-dev
24-
update-alternatives --set ruby /usr/bin/ruby2.5 >/dev/null 2>&1
25-
update-alternatives --set gem /usr/bin/gem2.5 >/dev/null 2>&1
26-
2723
# echo installing current RubyGems
2824
gem update --system -N >/dev/null 2>&1
2925

0 commit comments

Comments
 (0)