Skip to content

Commit

Permalink
The version table was broken (GitHub-flavored markdown changed?)
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Mar 24, 2017
1 parent 6b2b9aa commit cc09ce8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ I used the following Ubuntu deb packages to test this program.
61 |Groovy |groovy |2.4.7-2
62 |Haskell |ghc |7.10.3-9ubuntu1
63 |Haxe |haxe |1:3.2.1+dfsg-1build3
64 |Icon |icont |9.4.3-4.2ubuntu1
| |iconx |9.4.3-4.2ubuntu1
64 |Icon |icont, iconx |9.4.3-4.2ubuntu1
65 |INTERCAL |intercal |30:0.30-1
66 |Jasmin |jasmin-sable |2.5.0-1
67 |Java |openjdk-8-jdk |8u121-b13-0ubuntu1.16.10.2
Expand Down
13 changes: 10 additions & 3 deletions src/README.md.gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@
end

rows = [["\\#", "language", "ubuntu package", "version"]]
rows += RunSteps.flat_map.with_index do |s, idx|
(s.apt.is_a?(Array) ? s.apt : [s.apt]).map.with_index do |apt, i|
[i == 0 ? (idx + 1).to_s : "", i == 0 ? s.name : "", apt || "*N/A*", pkg_versions[apt] || '-']
rows += RunSteps.map.with_index do |s, idx|
if s.apt.is_a?(Array)
apt = s.apt.join(", ")
ver = pkg_versions.values_at(*s.apt)
raise if ver.uniq.size > 1
ver = ver.first
else
apt = s.apt || "*N/A*"
ver = pkg_versions[apt]
end
[(idx + 1).to_s, s.name, apt, ver || "-"]
end

ws = rows.transpose.map {|row| row.map {|s| s.size }.max + 1 }
Expand Down

0 comments on commit cc09ce8

Please sign in to comment.