Setup a new pure Ruby project

Category:

I assume that you use rbenv.


Update your rbenv and ruby-build

cd ~/.rbenv && git pull

cd "$(rbenv root)"/plugins/ruby-build && git pull


Check what versions are installed

rbenv versions


Check what versions of Ruby are available for installing

rbenv install -l


Install Ruby in some version

rbenv install 2.4.2


Create the project directory and go there

mkdir ~/projects/hosting_manager

cd ~/projects/hosting_manager/


Switch the directory to your Ruby version

rbenv local 2.4.2


Install Bundler and init it

gem install bundler

bundle init

bundle install --path vendor/bundle