Skip to content

Commit

Permalink
Default teeny version of 3.3 to 3.3.5 in rb-sys-dock (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks authored Jan 11, 2025
1 parent ed80a48 commit 0acb787
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gem/exe/rb-sys-dock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ OPTIONS = {
directory: Dir.pwd
}

PATCH_RELEASE_OVERRIDES = {
"3.3" => "3.3.5"
}

def cargo_metadata
return @cargo_metadata if defined?(@cargo_metadata)

Expand Down Expand Up @@ -100,6 +104,10 @@ OptionParser.new do |opts|

opts.on("-r", "--ruby-versions LIST", "List all supported Ruby versions") do |arg|
vers = arg.split(/[^0-9.]+/).map do |v|
override = PATCH_RELEASE_OVERRIDES[v]

next override if override

parts = v.split(".")
parts[2] = "0" if parts[2].nil?
parts.join(".")
Expand Down

0 comments on commit 0acb787

Please sign in to comment.