mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-12-22 21:38:44 +01:00
[script] update get links
This commit is contained in:
parent
7dcfd8daf6
commit
3a59d88e80
10
.github/osia_get_links.rb
vendored
10
.github/osia_get_links.rb
vendored
@ -10,9 +10,15 @@ end
|
|||||||
j = get_json
|
j = get_json
|
||||||
a = j['projects']
|
a = j['projects']
|
||||||
archived = apps_archived a
|
archived = apps_archived a
|
||||||
links = a.reject { |x| archived.include? x }.map { |y| y['source']}
|
active = a.reject { |x| archived.include? x }
|
||||||
|
|
||||||
links.each_with_index { |z, i| puts "#{i+1} #{z}"}
|
links = []
|
||||||
|
active.each do |z|
|
||||||
|
links.push z['source']
|
||||||
|
links.push z['itunes'] unless z['itunes'].nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
links.each_with_index { |z, i| puts "#{i+1} #{z}" }
|
||||||
|
|
||||||
puts "Writing #{OUTPUT}"
|
puts "Writing #{OUTPUT}"
|
||||||
File.open(OUTPUT, 'w') { |f| f.puts links }
|
File.open(OUTPUT, 'w') { |f| f.puts links }
|
||||||
|
Loading…
Reference in New Issue
Block a user