1
0
mirror of https://github.com/dkhamsing/open-source-ios-apps.git synced 2024-12-23 14:57:59 +01:00

[script] display update date and apps count

This commit is contained in:
dkhamsing 2016-05-13 07:58:49 -07:00
parent 76792d3fc0
commit dfa2d0732a

7
.github/convert.rb vendored
View File

@ -1,3 +1,4 @@
require 'date'
require 'json' require 'json'
OUTPUT = 'README.md' OUTPUT = 'README.md'
@ -92,9 +93,15 @@ f = j['footer']
cats = j['categories'] cats = j['categories']
apps = j['projects'] apps = j['projects']
date = DateTime.now
date_display = date.strftime "%B %d, %Y"
output = '# ' + t output = '# ' + t
output << "\n\n" output << "\n\n"
output << desc 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" output << "\n \nJump to \n \n"
cats.each do |c| cats.each do |c|