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