Skip to content

Commit

Permalink
Merge pull request #156 from zeabur/pan93412/fix-155
Browse files Browse the repository at this point in the history
fix(planner/ruby): Support single-quoted version
  • Loading branch information
yuaanlin authored Oct 15, 2023
2 parents 1c31b85 + d8eec0d commit 77d8608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ruby/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 77d8608

Please sign in to comment.