1
0
mirror of https://github.com/dkhamsing/open-source-ios-apps.git synced 2025-02-26 00:27:46 +01:00

[script] Cleanup

This commit is contained in:
dkhamsing 2016-05-13 08:50:39 -07:00
parent 10d8469f95
commit 7e0cd5acf0

16
.github/convert.rb vendored
View File

@ -1,7 +1,7 @@
require 'date'
require 'json'
OUTPUT = 'README.md'
README = 'README.md'
def output_stars(number)
case number
@ -83,9 +83,7 @@ def output_apps(apps)
o
end
c = File.read 'contents.json'
j = JSON.parse c
def write_readme(j)
t = j['title']
desc = j['description']
h = j['header']
@ -131,5 +129,11 @@ end
output << "\n"
output << f
File.open(OUTPUT, 'w') { |f| f.write output }
puts "wrote #{OUTPUT}"
File.open(README, 'w') { |f| f.write output }
puts "wrote #{README}"
end
c = File.read 'contents.json'
j = JSON.parse c
write_readme(j)