This commit is contained in:
Daniel Khamsing 2016-08-15 10:23:47 -07:00
commit 6f3b15d68b
4 changed files with 14 additions and 4 deletions

View File

@ -2,6 +2,7 @@ require_relative 'osia_helper'
UNIQUES = 'check-unique.txt' # should be unique
LINKS = 'check-links.txt' # allow dupes
INFO = 'check-info.txt' # errors are allowed
def apps_archived(apps)
a = apps.select {|a| a['tags'] != nil }.select {|b| b['tags'].include?'archive'}
@ -14,10 +15,11 @@ archived = apps_archived a
active = a.reject { |x| archived.include? x }
uniques = []
info = []
active.each do |z|
uniques.push z['source']
uniques.push z['itunes'] unless z['itunes'].nil?
uniques.push z['screenshots'] unless z['screenshots'].nil?
info.push z['itunes'] unless z['itunes'].nil?
end
uniques.each_with_index { |z, i| puts "#{i+1} #{z}" }
@ -25,6 +27,9 @@ uniques.each_with_index { |z, i| puts "#{i+1} #{z}" }
puts "Writing #{UNIQUES}"
File.open(UNIQUES, 'w') { |f| f.puts uniques }
puts "Writing #{INFO}"
File.open(INFO, 'w') { |f| f.puts info }
links = []
active.each do |z|
links.push z['homepage'] unless z['homepage'].nil?

5
.travis.yml Normal file
View File

@ -0,0 +1,5 @@
language: ruby
rvm: 2.2
before_script: gem install awesome_bot
script: ruby .github/osia_get_links.rb
after_script: awesome_bot check-info.txt -a 403

View File

@ -9,8 +9,8 @@ test:
- json validate --schema-file=.github/schema.json --document-file=contents.json
- ruby .github/osia_validate_categories.rb
- ruby .github/osia_get_links.rb
- awesome_bot check-unique.txt -a 403,302 -w xbmc/xbmc
- awesome_bot check-links.txt --allow-dupe -w wheelmap.org,sourceforge,radioparadise
- awesome_bot check-unique.txt -a 302 -w xbmc/xbmc
- awesome_bot check-links.txt --allow-dupe -w wheelmap.org,sourceforge,radioparadise
general:
artifacts:
- check-links.txt

View File

@ -4128,7 +4128,7 @@
{
"title": "Anypic in Swift",
"category": "parse",
"source": "https://github.com/kwkhaw/SwiftAnyPic",
"source": "https://github.com/SwiftAnyPic/SwiftAnyPic",
"tags": [
"swift"
],