mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-11-23 21:34:39 +03:00
Update header, close #398
This commit is contained in:
parent
4b9223bf85
commit
4b48157711
16
.github/osia_convert.rb
vendored
16
.github/osia_convert.rb
vendored
@ -111,6 +111,14 @@ def output_apps(apps)
|
||||
o
|
||||
end
|
||||
|
||||
def output_badges(count)
|
||||
date = DateTime.now
|
||||
date_display = date.strftime "%B %e, %Y"
|
||||
|
||||
b = "![](https://img.shields.io/badge/Projects-#{count}-green.svg) [![](https://img.shields.io/badge/Twitter-@opensourceios-blue.svg)](https://twitter.com/opensourceios) ![](https://img.shields.io/badge/Updated-#{date_display}-lightgrey.svg)"
|
||||
b
|
||||
end
|
||||
|
||||
def output_flag(lang)
|
||||
case lang
|
||||
when 'ger'
|
||||
@ -151,20 +159,18 @@ end
|
||||
|
||||
def write_readme(j)
|
||||
t = j['title']
|
||||
subt = j['subtitle']
|
||||
desc = j['description']
|
||||
h = j['header']
|
||||
f = j['footer']
|
||||
cats = j['categories']
|
||||
apps = j['projects']
|
||||
|
||||
date = DateTime.now
|
||||
date_display = date.strftime "%B %e, %Y"
|
||||
|
||||
output = '# ' + t
|
||||
output << "\n\n"
|
||||
output << desc
|
||||
output << "\n\nA collaborative list of **#{apps.count}** open-source `iOS`, `watchOS` and `tvOS` apps, your [contribution](https://github.com/dkhamsing/open-source-ios-apps/blob/master/.github/CONTRIBUTING.md) is welcome :smile: "
|
||||
output << "(updated *#{date_display}*)."
|
||||
output << "\n\n #{subt} \n"
|
||||
output << output_badges(apps.count)
|
||||
|
||||
output << "\n \nJump to \n \n"
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"title": "Open-Source iOS Apps",
|
||||
"subtitle": "A collaborative list of open-source `iOS`, `watchOS` and `tvOS` apps, your [contribution](https://github.com/dkhamsing/open-source-ios-apps/blob/master/.github/CONTRIBUTING.md) is welcome :smile:",
|
||||
"description": "<!-- \n⚠️ This README is generated, please do not update. To contribute, make changes to contents.json ⚠️ \n https://github.com/dkhamsing/open-source-ios-apps -->",
|
||||
"header": "```\n 100+ Stars: 🔥\n 200+ Stars: 🔥🔥\n 500+ Stars: 🔥🔥🔥\n1000+ Stars: 🔥🔥🔥🔥\n2000+ Stars: 🔥🔥🔥🔥🔥\n\nMost projects are in English, exceptions have a flag\n🇨🇳 Project is in Chinese\n🇪🇸 Project is in Spanish, etc\n\nClick ► to show more details\n```",
|
||||
"footer": "## Thanks\n\nThis list was inspired by [awesome-ios](https://github.com/vsouza/awesome-ios) and [awesome-swift](https://github.com/matteocrippa/awesome-swift). Thanks to all the [contributors](https://github.com/dkhamsing/open-source-ios-apps/graphs/contributors) 🎉 \n\n## Contact\n\n- [github.com/dkhamsing](https://github.com/dkhamsing)\n- [twitter.com/dkhamsing](https://twitter.com/dkhamsing)\n",
|
||||
|
Loading…
Reference in New Issue
Block a user