add ruby version to gemfile code example Example: specify ruby version in gemfile source "https://rubygems.org" ruby "2.5.1" # ...