Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add programming language to libraries table #276

Merged
merged 5 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/pr-check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def next_state(state)

def sort_and_check(arr, label)
begin
sorted = arr.sort_by{|l| l.scan(/^\| \[([^\]]+)\]/).first.first.downcase }
sorted = arr.sort_by.with_index{|l,i|
[ l.scan(/^\| \[([^\]]+)\]/).first.first.downcase, i ]
}
rescue => e
return false
end
Expand Down Expand Up @@ -73,6 +75,11 @@ def sort_and_check(arr, label)
puts "Line #{lc} does not match format | |", line
fails = true
end
elsif state == :libraries
if !line.match(/^\| [^\|]+ \| [^\|]+ \| [^\|]+ \| [^\|]+ \|$/)
puts "Line #{lc} does not match format | | | |", line
fails = true
end
else
if !line.match(/^\| [^\|]+ \| [^\|]+ \| [^\|]+ \|$/)
puts "Line #{lc} does not match format | | |", line
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ For information on the `NO_COLOR` standard, see
To add or update software on the `no-color.org` website, clone this Git
repository and update `index.md` with a line under the appropriate section,
keeping entries in alphabetical order.

The line must be formatted as:
```
For libraries:
| [Software Name](URL) | Short description | Language(s) | [YYYY-MM-DD / X.X.X](URL) |

| [Software Name](URL) | Short description | [YYYY-MM-DD / X.X.X](URL) |
For general software:
| [Software Name](URL) | Short description | [YYYY-MM-DD / X.X.X](URL) |
```

For the third field, the date and version number should be those of the first
release of the software available with `NO_COLOR` support, with a link to the
release notes for that version.
For the third/fourth field (the date and version number), the value should
refer to the first release of the software available with `NO_COLOR` support,
with a link to the release notes for that version.

If a version is not available, just include a date and link to the commit when
`NO_COLOR` support was added.
Expand Down
Loading
Loading