From 3a59d88e8025b9d2aae71e66e0ca371c5d92a658 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 7 Jun 2016 07:43:32 -0700 Subject: [PATCH] [script] update get links --- .github/osia_get_links.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/osia_get_links.rb b/.github/osia_get_links.rb index 5c379346..758d6c83 100644 --- a/.github/osia_get_links.rb +++ b/.github/osia_get_links.rb @@ -10,9 +10,15 @@ end j = get_json a = j['projects'] 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}" File.open(OUTPUT, 'w') { |f| f.puts links }