How to use Ruby 3.1.0 with the ruby orb?

The Ruby Orb is using RVM to install Ruby, but RVM requires a re-release whenever Ruby is updated. Ruby was updated to 3.1.0 on Dec 25, but RVM has not been updated, meaning the Circle Ruby Orb cannot be used with Ruby 3.1.0 that I can tell.

Is there a way to work around this?

:wave: Hello @davetron5000,

Could you please elaborate on the issue you’re facing?

The latest rvm release is from January 15th 2021, and it is the version that is downloaded/installed if you choose to install ruby via the orb’s install command.

Although the aforementioned rvm release doesn’t explicitly mention support for ruby 3.1.0, I was able to successfully install ruby 3.1.0 via rvm using:

      - ruby/install:
          version: '3.1.0'

 
The subsequent step:

      - run: ruby -v

confirmed it:

ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-linux]
CircleCI received exit code 0

 
That said, I could be completely missing the point of your query :confused:

Let me know either way.

1 Like