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:
parent
10d8469f95
commit
7e0cd5acf0
16
.github/convert.rb
vendored
16
.github/convert.rb
vendored
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user