From dbdb1d0390bd39550b7ad44deb1f46ba41efd2dc Mon Sep 17 00:00:00 2001 From: Silumesii Maboshe Date: Fri, 26 Apr 2024 11:42:00 +0200 Subject: [PATCH] Specify Ruby with `.ruby-version` in Gemfile `Gemfile` allows on to use a `file` argument to specify where to get the Ruby version. This commit implements this to get the Ruby version from `.ruby-version`. This will reduce the number of edits to make when upgrading the Ruby version in the future. Ref: - https://andycroll.com/ruby/read-ruby-version-in-your-gemfile/ --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 525a046d5..9f03781f6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -ruby "3.0.7" +ruby file: ".ruby-version" git_source(:github) do |repo_name| "https://github.com/#{repo_name}.git"