Skip to content

Commit

Permalink
add a bunch of SLDs, c/o quackit
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Jun 19, 2014
1 parent 23d57c9 commit 03da6a7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ task :quackit_import do
domains = domain_el.content.split(/\s*\/\s*/)
domains.each do |domain|
# remove leading space
domain = domain.sub(/\A\./, '')
domain = domain.strip.sub(/\A\./, '')
unless Swot::ACADEMIC_TLDS.include?(domain)
# print out for manual review
puts "#{domain} - #{desc.strip.gsub(/\s+/, ' ')}"
Expand All @@ -90,7 +90,7 @@ task :quackit_import do

puts "\nNEW DOMAINS (#{new_domains.size}):\n\n"

new_domains.sort.each do |domain|
new_domains.each do |domain|
puts domain
end
end
44 changes: 44 additions & 0 deletions lib/swot/academic_tlds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ module Swot
ac.at
ac.bd
ac.be
ac.cn
ac.cr
ac.cy
ac.fj
ac.gg
ac.gn
ac.id
ac.il
ac.in
Expand All @@ -18,15 +21,20 @@ module Swot
ac.ke
ac.kr
ac.ma
ac.me
ac.mu
ac.mw
ac.mz
ac.ni
ac.nz
ac.om
ac.pa
ac.pg
ac.pr
ac.rs
ac.ru
ac.rw
ac.sz
ac.th
ac.tz
ac.ug
Expand All @@ -35,6 +43,9 @@ module Swot
ac.za
ac.zm
ac.zw
ed.ao
ed.cr
ed.jp
edu
edu.af
edu.al
Expand All @@ -52,6 +63,7 @@ module Swot
edu.bs
edu.bt
edu.bz
edu.ck
edu.cn
edu.co
edu.cu
Expand All @@ -70,6 +82,7 @@ module Swot
edu.hk
edu.hn
edu.ht
edu.in
edu.iq
edu.jm
edu.jo
Expand All @@ -81,13 +94,19 @@ module Swot
edu.kz
edu.la
edu.lb
edu.lr
edu.lv
edu.ly
edu.me
edu.mg
edu.mk
edu.ml
edu.mm
edu.mn
edu.mo
edu.mt
edu.mv
edu.mw
edu.mx
edu.my
edu.ni
Expand All @@ -101,13 +120,17 @@ module Swot
edu.pr
edu.ps
edu.pt
edu.pw
edu.py
edu.qa
edu.rs
edu.ru
edu.sa
edu.sc
edu.sd
edu.sg
edu.sh
edu.sl
edu.sv
edu.sy
edu.tr
Expand All @@ -120,6 +143,27 @@ module Swot
edu.ws
edu.ye
edu.zm
es.kr
g12.br
hs.kr
ms.kr
sc.kr
sc.ug
sch.ae
sch.gg
sch.id
sch.ir
sch.je
sch.jo
sch.lk
sch.ly
sch.my
sch.om
sch.ps
sch.sa
sch.uk
school.nz
school.za
vic.edu.au
).to_set.freeze
end

0 comments on commit 03da6a7

Please sign in to comment.