From f90fc589864a401fe509e0fd3f7cd9019b5fc1aa Mon Sep 17 00:00:00 2001 From: Daniel Khamsing Date: Fri, 5 Aug 2016 12:47:23 -0700 Subject: [PATCH] [script] check titles, descriptions, categories --- .github/osia_get_links.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/osia_get_links.rb b/.github/osia_get_links.rb index 095b2595..a41398fa 100644 --- a/.github/osia_get_links.rb +++ b/.github/osia_get_links.rb @@ -1,7 +1,7 @@ require_relative 'osia_helper' -OUTPUT = 'check-links.txt' -HP = 'check-homepages.txt' +OUTPUT = 'check-unique.txt' # should be unique +HP = 'check-links.txt' # allow dupes def apps_archived(apps) a = apps.select {|a| a['tags'] != nil }.select {|b| b['tags'].include?'archive'} @@ -27,6 +27,13 @@ File.open(OUTPUT, 'w') { |f| f.puts links } hp = [] active.each do |z| hp.push z['homepage'] unless z['homepage'].nil? + hp.push z['title'] unless z['title'].nil? + hp.push z['description'] unless z['description'].nil? +end + +c = j['categories'] +c.each do |z| + hp.push z['title'] end hp.each_with_index { |z, i| puts "#{i+1} #{z}" }