mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-12-24 18:23:57 +03:00
[script] display update date and apps count
This commit is contained in:
parent
76792d3fc0
commit
dfa2d0732a
7
.github/convert.rb
vendored
7
.github/convert.rb
vendored
@ -1,3 +1,4 @@
|
||||
require 'date'
|
||||
require 'json'
|
||||
|
||||
OUTPUT = 'README.md'
|
||||
@ -92,9 +93,15 @@ f = j['footer']
|
||||
cats = j['categories']
|
||||
apps = j['projects']
|
||||
|
||||
date = DateTime.now
|
||||
date_display = date.strftime "%B %d, %Y"
|
||||
|
||||
output = '# ' + t
|
||||
output << "\n\n"
|
||||
output << desc
|
||||
output << "\n\nA collaborative list of **#{apps.count}** open-source iOS apps, your [contribution](https://github.com/dkhamsing/open-source-ios-apps/blob/master/.github/CONTRIBUTING.md) is welcome :smile: "
|
||||
output << "(last update *#{date_display}*)."
|
||||
|
||||
output << "\n \nJump to \n \n"
|
||||
|
||||
cats.each do |c|
|
||||
|
Loading…
Reference in New Issue
Block a user