I'm running into a build failure when dpl is being installed — it's pulling a version that requires Ruby >= 3.1, but our build uses Ruby 2.7.6. Looking for guidance on the best way to handle this

During installation of dpl the following error occurs:


24.57s$ rvm use 2 --fuzzy do ruby -S gem install dpl -v ''
ERROR: Error installing dpl:
The last version of dpl (>= 0) to support your Ruby & RubyGems was 1.10.16. Try installing it with `gem install dpl -v 1.10.16`
dpl requires Ruby version >= 3.1. The current ruby version is 2.7.6.219.
Successfully installed uri-1.0.3
Successfully installed mime-0.4.4
Successfully installed json_pure-2.8.1
Successfully installed excon-0.112.0
Successfully installed travis-packagecloud-ruby-1.1.0
Successfully installed regstry-1.0.15
Successfully installed travis-cl-1.2.4
Successfully installed net-http-0.6.0
Successfully installed logger-1.7.0
The command "rvm use 2 --fuzzy do ruby -S gem install dpl -v ''" failed and exited with 1 during .

travis.yml

dist: focal
python: "3.11"

facing same issue