mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-11-24 06:06:12 +03:00
Merge branch 'master' of https://github.com/dkhamsing/open-source-ios-apps
This commit is contained in:
commit
6f3b15d68b
7
.github/osia_get_links.rb
vendored
7
.github/osia_get_links.rb
vendored
@ -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
5
.travis.yml
Normal 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
|
@ -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
|
||||
|
@ -4128,7 +4128,7 @@
|
||||
{
|
||||
"title": "Anypic in Swift",
|
||||
"category": "parse",
|
||||
"source": "https://github.com/kwkhaw/SwiftAnyPic",
|
||||
"source": "https://github.com/SwiftAnyPic/SwiftAnyPic",
|
||||
"tags": [
|
||||
"swift"
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user