Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit bb0e9a7

Browse files
authored
Merge pull request #553 from Homebrew/update-os-versions
cmd/formula-analytics: update OS versions
2 parents d8e231c + e3527f3 commit bb0e9a7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cmd/formula-analytics.rb

+1-7
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,6 @@ def format_os_version_dimension(dimension)
379379
.gsub(/^macOS ?/, "")
380380
.gsub(/ \(.+\)$/, "")
381381
case dimension
382-
when "10.4" then "Mac OS X Tiger (10.4)"
383-
when "10.5" then "Mac OS X Leopard (10.5)"
384-
when "10.6" then "Mac OS X Snow Leopard (10.6)"
385-
when "10.7" then "Mac OS X Lion (10.7)"
386-
when "10.8" then "OS X Mountain Lion (10.8)"
387-
when "10.9" then "OS X Mavericks (10.9)"
388-
when "10.10" then "OS X Yosemite (10.10)"
389382
when "10.11", /^10\.11\.?/ then "OS X El Capitan (10.11)"
390383
when "10.12", /^10\.12\.?/ then "macOS Sierra (10.12)"
391384
when "10.13", /^10\.13\.?/ then "macOS High Sierra (10.13)"
@@ -403,6 +396,7 @@ def format_os_version_dimension(dimension)
403396
when /CentOS (\w+) (\d+)/ then "CentOS #{Regexp.last_match(1)} #{Regexp.last_match(2)}"
404397
when /Fedora Linux (\d+)[.\d]*/ then "Fedora Linux #{Regexp.last_match(1)}"
405398
when /KDE neon .*?([\d.]+)/ then "KDE neon #{Regexp.last_match(1)}"
399+
when /Amazon Linux (\d+)\.[.\d]*/ then "Amazon Linux #{Regexp.last_match(1)}"
406400
else dimension
407401
end
408402
end

0 commit comments

Comments
 (0)