From dfa2d0732a6217d78250cf46f33cff8ab016731a Mon Sep 17 00:00:00 2001 From: dkhamsing Date: Fri, 13 May 2016 07:58:49 -0700 Subject: [PATCH] [script] display update date and apps count --- .github/convert.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/convert.rb b/.github/convert.rb index 07ed8645..94b44f3e 100644 --- a/.github/convert.rb +++ b/.github/convert.rb @@ -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|