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