Ruby Versions

How do I specify my app's Ruby version?

You have two options:

  • Write your Ruby version to a file called .ruby-version in the root of your git repo

    • echo "2.6.3 > .ruby-version"

    • git add .ruby-version

    • git commit -m "Set ruby version"

  • Or you can manage it in your Gemfile

    • ruby "2.6.3"

    • bundle

    • git add Gemfile Gemfile.lock

    • git commit -m "Set ruby version"

For legacy versions of Ruby, we only support the latest patch versions.

Here's a list of supported Ruby versions that are currently supported:

  • 2.6.3

  • 2.6.2

  • 2.6.1

  • 2.6.0

  • 2.5.5

  • 2.5.4

  • 2.5.3

  • 2.5.1

  • 2.5.0

  • 2.4.6

  • 2.4.5

  • 2.4.4

  • 2.4.3

  • 2.4.2

  • 2.4.1

  • 2.4.0

  • 2.3.8

  • 2.3.7

  • 2.3.6

  • 2.3.5

  • 2.3.4

  • 2.3.3

  • 2.3.2

  • 2.3.1

  • 2.3.0

  • 2.2.10

  • 2.2.9

  • 2.2.8

  • 2.2.7

  • 2.2.6

  • 2.0.0

  • 1.9.3

  • 1.8.7