From d8eec0d19792a982b3dc49d8300220531070ba55 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Sun, 15 Oct 2023 23:21:49 +0800 Subject: [PATCH] fix(planner/ruby): Support single-quoted version --- internal/ruby/plan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ruby/plan.go b/internal/ruby/plan.go index abba32eb..2418b0d9 100644 --- a/internal/ruby/plan.go +++ b/internal/ruby/plan.go @@ -10,7 +10,7 @@ import ( // DetermineRubyVersion determines the version of Ruby used in the project. func DetermineRubyVersion(source afero.Fs) string { - reg := regexp.MustCompile(`ruby "(\d+\.\d+\.\d+)"`) + reg := regexp.MustCompile(`ruby ["'](\d+\.\d+\.\d+)["']`) sourceFile, err := afero.ReadFile(source, "Gemfile") if err != nil { return ""