Skip to content

Commit

Permalink
Add a logo
Browse files Browse the repository at this point in the history
  • Loading branch information
sudara committed May 8, 2022
1 parent 1d11813 commit a44d84e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
Binary file added images/juce awesome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 20 additions & 5 deletions updateReadme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,32 @@
# and outputs a Github Flavored Markdown table, like so:
#
# ## Templates
# | name | author | description | stars | created | last updated |
# | --- | --- | --- | --- |--- |
# | name & author | description | stars | created | last updated |
# | --- | --- | --- |--- |
# | [pamplejuce](https://github.com/sudara/pamplejuce) | JUCE, CMAKE, Catch2 on GitHub Actions | ⭐️ | March 2, 2022|

require 'fileutils'
require 'octokit'

heading = "\n| name | author | description | ⭐️ | last updated |\n"
heading += "| --- | --- | --- | --- | --- |\n"
heading = "\n| repo & author | description | ⭐️ | last updated |\n"
heading += "| --- | --- | --- | --- |\n"

tempfile=File.open("README.tmp", 'w')
tempfile << <<-PREAMBLE
<p align="center">
<br>
<img src="juce awesome.png" width="200"/>
<br>
</p>
# JUCE "Awesome List" Directory
Inspired by [awesome lists](https://github.com/topics/awesome-list), here's a ~curated~
completist list of JUCE GitHub repositories, organized by category!
Add your repo, by forking and [adding a link and description to sites.md](https://github.com/sudara/awesome-juce/edit/main/sites.md).
PREAMBLE

client = Octokit::Client.new(access_token: ENV["GITHUB_ACCESS_TOKEN"])

File.open('sites.md') do |file|
Expand All @@ -36,7 +51,7 @@
begin
repo = client.repo(name_and_repo)
last_committed_at = client.commits(name_and_repo).first[:commit][:committer][:date].strftime('%b %d %Y')
table_row = "|[#{repo.name}](#{repo.html_url})|[#{repo.owner[:login]}](#{repo.owner.html_url})| #{description.strip}|#{repo.stargazers_count}|#{last_committed_at}|\n"
table_row = "|[#{repo.owner[:login]}](#{repo.owner.html_url})/[#{repo.name}](#{repo.html_url})| #{description.strip}|#{repo.stargazers_count}|#{last_committed_at}|\n"
rows << [repo.stargazers_count, table_row]
rescue Octokit::NotFound
puts "NOT FOUND OR MOVED?: #{name_and_repo}"
Expand Down

0 comments on commit a44d84e

Please sign in to comment.