Skip to content

Commit ee313d1

Browse files
committed
Handle curl tags in update_components Rake task
Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
1 parent 15027d6 commit ee313d1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tasks/update_components.rake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ def github_owner_repo(url)
2424
[Regexp.last_match(1), Regexp.last_match(2).sub(/\.git$/, '')]
2525
end
2626

27-
# Normalize a version string by stripping common tag prefixes.
27+
# Normalize a version string by stripping common tag prefixes and
28+
# replacing underscores with .
2829
def normalize_version(tag)
2930
return nil if tag.nil?
3031

3132
tag.sub(/\Av(?=\d)/, '')
3233
.sub(/\Arefs\/tags\/v?/, '')
3334
.sub(/\Arelease-/, '')
3435
.sub(/\Aopenssl-/, '')
36+
.sub(/\Acurl-/, '')
37+
.gsub('_', '.')
3538
end
3639

3740
# Try to parse a version from a normalized string, returning nil if unparseable.

0 commit comments

Comments
 (0)