swot-ruby 1.0.4.20230718 → 1.0.5.20230718
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -4
- data/README.md +7 -8
- data/Rakefile +0 -2
- data/academic_data/id/ac/horizon/krw.txt +1 -0
- data/academic_data/in/edu/cgrinternationalschool.txt +1 -0
- data/academic_data/md/ceef.txt +2 -0
- data/academic_data/mx/edu/cetis108.txt +1 -0
- data/academic_data/mx/uadeo.txt +2 -0
- data/academic_data/org/gpranchi.txt +1 -0
- data/academic_data/org/nonsuchschool.txt +1 -0
- data/academic_data/org/shsd/student.txt +1 -0
- data/academic_data/org/spartandocs.txt +1 -0
- data/academic_data/vn/edu/caodangvietmy.txt +2 -0
- data/academic_data/zw/ac/hit.txt +2 -0
- data/lib/swot.rb +1 -1
- data/swot.gemspec +2 -8
- data/test/test_swot.rb +59 -1
- metadata +23 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 989413ded407daaeab9b4c6365cffb42707de3abbb6777716de6498859f9050b
|
4
|
+
data.tar.gz: 8785a8fdb299d7b3935b6a41637be7b9e67222321c337543c45599eabf2ab93d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e10d52340a504a01cd98fc9c42fc72c318e52a5c4a3b7bc8a19c0feb17bfcf6fd39e0746a4abd4fbc763c71f0a371f7084b97363144f8f28ffd81d3c2a015af0
|
7
|
+
data.tar.gz: 8f88638d29294ca430a9731125299a27fbf77ff45ae5099fdbd460d501132ff240e04f32fb173d4299b392d98c3cbb6dbdd726bbd08fae65ae8434b5c13455e8
|
data/Gemfile
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
source "
|
1
|
+
source "https://rubygems.org"
|
2
2
|
|
3
3
|
gem 'public_suffix'
|
4
4
|
gem 'naughty_or_nice', "~> 2.0"
|
5
5
|
|
6
6
|
group :development do
|
7
7
|
gem "nokogiri", "~> 1.5"
|
8
|
-
gem "rake"
|
9
|
-
gem "
|
10
|
-
gem "bundler", "~> 2.2"
|
8
|
+
gem "rake"
|
9
|
+
gem "bundler"
|
11
10
|
gem "minitest", "~> 4.7.5"
|
12
11
|
end
|
13
12
|
|
data/README.md
CHANGED
@@ -108,11 +108,10 @@ Hopefully, you'll be surprised by some of this:
|
|
108
108
|
|
109
109
|
If you verified this by visiting all of the websites, how long did it take you? Did you have fun? Imagine you had to do this 10 - 100 times every day. Now you know a little something about the inspiration for Swot. Swot can verify them all in a fraction of a second and remove a :poop: part of someone's job.
|
110
110
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
* [swot](https://github.com/abadojack/swot) - Go port of Swot
|
111
|
+
#### Contributing to Swot
|
112
|
+
|
113
|
+
##### Updating the database
|
114
|
+
|
115
|
+
https://github.com/jetbrains/swot is the canonical source of truth for the list of domains.
|
116
|
+
If you want to add a new domain, please submit a pull request there. This database is updated
|
117
|
+
periodically based on the information in that repository.
|
data/Rakefile
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
STMIK Horizon Karawang
|
@@ -0,0 +1 @@
|
|
1
|
+
CGR International School, India
|
@@ -0,0 +1 @@
|
|
1
|
+
Centro de Estudios Tecnológicos Industrial y de Servicios No. 108
|
@@ -0,0 +1 @@
|
|
1
|
+
Government Polytechnic Ranchi
|
@@ -0,0 +1 @@
|
|
1
|
+
Nonsuch High School For Girls
|
@@ -0,0 +1 @@
|
|
1
|
+
Bernards High School
|
@@ -0,0 +1 @@
|
|
1
|
+
Southern Lehigh High School
|
data/lib/swot.rb
CHANGED
data/swot.gemspec
CHANGED
@@ -1,18 +1,12 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
Gem::Specification.new do |s|
|
3
2
|
s.name = "swot-ruby"
|
4
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.5.20230718"
|
5
4
|
|
6
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
7
6
|
s.authors = ["Dave Kimura", "Lee Reilly"]
|
8
7
|
s.date = "2023-06-10"
|
9
8
|
s.description = "Identify email addresses or domains names that belong to colleges or universities. Help automate the process of approving or rejecting academic discounts."
|
10
9
|
s.email = "dave@k-innovations.net"
|
11
|
-
s.extra_rdoc_files = [
|
12
|
-
"LICENSE.txt",
|
13
|
-
"README.md"
|
14
|
-
]
|
15
|
-
|
16
10
|
s.files = `git ls-files -z`.split("\x0") + Dir['data/lib/domains/*']
|
17
11
|
|
18
12
|
s.homepage = "https://github.com/kobaltz/swot"
|
@@ -23,7 +17,7 @@ Gem::Specification.new do |s|
|
|
23
17
|
s.summary = "Identify email addresses or domains names that belong to colleges or universities."
|
24
18
|
s.test_files = ["test/helper.rb", "test/test_collection_methods.rb", "test/test_swot.rb"]
|
25
19
|
|
26
|
-
s.add_dependency('public_suffix', ">= 0")
|
27
20
|
s.add_dependency('naughty_or_nice', "~> 2.0")
|
21
|
+
s.add_dependency('public_suffix', ">= 0")
|
28
22
|
end
|
29
23
|
|
data/test/test_swot.rb
CHANGED
@@ -46,7 +46,65 @@ describe Swot do
|
|
46
46
|
assert_not Swot::is_academic?('gmail.com')
|
47
47
|
assert_not Swot::is_academic?('stanford.edu.com')
|
48
48
|
assert_not Swot::is_academic?('strath.ac.uk.com')
|
49
|
-
|
49
|
+
assert_not Swot::is_academic?('alumni.albany.edu')
|
50
|
+
assert_not Swot::is_academic?('dave@faculdadefia.edu.br')
|
51
|
+
assert_not Swot::is_academic?('dave@hait.edu.cn')
|
52
|
+
assert_not Swot::is_academic?('dave@uteco.edu.do')
|
53
|
+
assert_not Swot::is_academic?('dave@uca.edu.ar')
|
54
|
+
assert_not Swot::is_academic?('dave@mail.chzu.edu.cn')
|
55
|
+
assert_not Swot::is_academic?('dave@my.barstow.edu')
|
56
|
+
assert_not Swot::is_academic?('dave@student.ccp.edu')
|
57
|
+
assert_not Swot::is_academic?('dave@students.prairiestate.edu')
|
58
|
+
assert_not Swot::is_academic?('dave@sinclair.edu')
|
59
|
+
assert_not Swot::is_academic?('dave@collin.edu')
|
60
|
+
assert_not Swot::is_academic?('dave@buc.blinn.edu')
|
61
|
+
assert_not Swot::is_academic?('dave@roxbury.edu')
|
62
|
+
assert_not Swot::is_academic?('dave@stchas.edu')
|
63
|
+
assert_not Swot::is_academic?('dave@email.tjc.edu')
|
64
|
+
assert_not Swot::is_academic?('dave@stud.tjut.edu.cn')
|
65
|
+
assert_not Swot::is_academic?('dave@njit.edu.cn')
|
66
|
+
assert_not Swot::is_academic?('dave@hait.edu.cn')
|
67
|
+
assert_not Swot::is_academic?('dave@stumail.sdut.edu.cn')
|
68
|
+
assert_not Swot::is_academic?('dave@ucsiuniversity.edu.my')
|
69
|
+
assert_not Swot::is_academic?('dave@asu.edu')
|
70
|
+
assert_not Swot::is_academic?('dave@student.ptss.edu.my')
|
71
|
+
assert_not Swot::is_academic?('dave@buc.edu.eg')
|
72
|
+
assert_not Swot::is_academic?('dave@hbtcm.edu.cn')
|
73
|
+
assert_not Swot::is_academic?('dave@campusucc.edu.co')
|
74
|
+
assert_not Swot::is_academic?('dave@student.utem.edu.my')
|
75
|
+
assert_not Swot::is_academic?('dave@pucgo.edu.br')
|
76
|
+
assert_not Swot::is_academic?('dave@mahasiswa.itb.ac.id')
|
77
|
+
assert_not Swot::is_academic?('dave@case.edu')
|
78
|
+
assert_not Swot::is_academic?('dave@uncp.edu.pe')
|
79
|
+
assert_not Swot::is_academic?('dave@edu.azores.gov.pt')
|
80
|
+
assert_not Swot::is_academic?('dave@dyptc.edu.in')
|
81
|
+
assert_not Swot::is_academic?('dave@mubs.ac.ug')
|
82
|
+
assert_not Swot::is_academic?('dave@aluno.unip.br')
|
83
|
+
assert_not Swot::is_academic?('dave@jmpaneracollege.com')
|
84
|
+
assert_not Swot::is_academic?('dave@dtcc.edu')
|
85
|
+
assert_not Swot::is_academic?('dave@wwcc.edu')
|
86
|
+
assert_not Swot::is_academic?('dave@aluno.unicarioca.edu.br')
|
87
|
+
assert_not Swot::is_academic?('dave@indoamerica.edu.ec')
|
88
|
+
assert_not Swot::is_academic?('dave@workschool.ca')
|
89
|
+
assert_not Swot::is_academic?('dave@umbc.edu')
|
90
|
+
assert_not Swot::is_academic?('dave@azhar.edu.eg')
|
91
|
+
assert_not Swot::is_academic?('dave@cibertec.edu.pe')
|
92
|
+
assert_not Swot::is_academic?('dave@ivytech.edu')
|
93
|
+
assert_not Swot::is_academic?('dave@my.stchas.edu')
|
94
|
+
assert_not Swot::is_academic?('dave@student.egcc.edu')
|
95
|
+
assert_not Swot::is_academic?('dave@holmescc.edu')
|
96
|
+
assert_not Swot::is_academic?('dave@navarrocollege.edu')
|
97
|
+
assert_not Swot::is_academic?('dave@alumni.imperial.ac.uk')
|
98
|
+
assert_not Swot::is_academic?('dave@cwru.edu')
|
99
|
+
assert_not Swot::is_academic?('dave@mec.edu.py')
|
100
|
+
assert_not Swot::is_academic?('dave@mu.edu.sa')
|
101
|
+
assert_not Swot::is_academic?('dave@itstep.academy')
|
102
|
+
assert_not Swot::is_academic?('dave@moe-dl.edu.my')
|
103
|
+
assert_not Swot::is_academic?('dave@lau.edu')
|
104
|
+
assert_not Swot::is_academic?('dave@os-dkorac.edu.me')
|
105
|
+
assert_not Swot::is_academic?('dave@ghanacu.org')
|
106
|
+
assert_not Swot::is_academic?('dave@continental.edu.pe')
|
107
|
+
assert_not Swot::is_academic?('dave@utch.edu.co')
|
50
108
|
assert_not Swot::is_academic?(nil)
|
51
109
|
assert_not Swot::is_academic?('')
|
52
110
|
assert_not Swot::is_academic?('the')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swot-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5.20230718
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Kimura
|
@@ -12,41 +12,39 @@ cert_chain: []
|
|
12
12
|
date: 2023-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: naughty_or_nice
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
20
|
+
version: '2.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
27
|
+
version: '2.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: public_suffix
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '0'
|
42
42
|
description: Identify email addresses or domains names that belong to colleges or
|
43
43
|
universities. Help automate the process of approving or rejecting academic discounts.
|
44
44
|
email: dave@k-innovations.net
|
45
45
|
executables: []
|
46
46
|
extensions: []
|
47
|
-
extra_rdoc_files:
|
48
|
-
- LICENSE.txt
|
49
|
-
- README.md
|
47
|
+
extra_rdoc_files: []
|
50
48
|
files:
|
51
49
|
- ".github/workflows/ruby.yml"
|
52
50
|
- ".github/workflows/update_domains.yml"
|
@@ -9326,6 +9324,7 @@ files:
|
|
9326
9324
|
- academic_data/id/ac/gunadarma.txt
|
9327
9325
|
- academic_data/id/ac/handayani.txt
|
9328
9326
|
- academic_data/id/ac/handayani/student.txt
|
9327
|
+
- academic_data/id/ac/horizon/krw.txt
|
9329
9328
|
- academic_data/id/ac/iailm.txt
|
9330
9329
|
- academic_data/id/ac/ibik.txt
|
9331
9330
|
- academic_data/id/ac/icpa-banyuwangi.txt
|
@@ -10080,6 +10079,7 @@ files:
|
|
10080
10079
|
- academic_data/in/edu/aot.txt
|
10081
10080
|
- academic_data/in/edu/cambridge.txt
|
10082
10081
|
- academic_data/in/edu/cet.txt
|
10082
|
+
- academic_data/in/edu/cgrinternationalschool.txt
|
10083
10083
|
- academic_data/in/edu/charusat.txt
|
10084
10084
|
- academic_data/in/edu/cit.txt
|
10085
10085
|
- academic_data/in/edu/dituniversity.txt
|
@@ -11827,6 +11827,7 @@ files:
|
|
11827
11827
|
- academic_data/ma/usms.txt
|
11828
11828
|
- academic_data/ma/youcode/student.txt
|
11829
11829
|
- academic_data/md/ase.txt
|
11830
|
+
- academic_data/md/ceef.txt
|
11830
11831
|
- academic_data/md/ceiti.txt
|
11831
11832
|
- academic_data/md/kdu.txt
|
11832
11833
|
- academic_data/md/ltpetrestefanuca.txt
|
@@ -11990,6 +11991,7 @@ files:
|
|
11990
11991
|
- academic_data/mx/edu/cenyca.txt
|
11991
11992
|
- academic_data/mx/edu/cesun.txt
|
11992
11993
|
- academic_data/mx/edu/cesunbc.txt
|
11994
|
+
- academic_data/mx/edu/cetis108.txt
|
11993
11995
|
- academic_data/mx/edu/cetys.txt
|
11994
11996
|
- academic_data/mx/edu/ceu.txt
|
11995
11997
|
- academic_data/mx/edu/cgcarmen.txt
|
@@ -12245,6 +12247,7 @@ files:
|
|
12245
12247
|
- academic_data/mx/uach.txt
|
12246
12248
|
- academic_data/mx/uacj.txt
|
12247
12249
|
- academic_data/mx/uadec.txt
|
12250
|
+
- academic_data/mx/uadeo.txt
|
12248
12251
|
- academic_data/mx/uady.txt
|
12249
12252
|
- academic_data/mx/uaem.txt
|
12250
12253
|
- academic_data/mx/uaemex.txt
|
@@ -14001,6 +14004,7 @@ files:
|
|
14001
14004
|
- academic_data/org/gniindia.txt
|
14002
14005
|
- academic_data/org/gocommodores.txt
|
14003
14006
|
- academic_data/org/gouldacademy.txt
|
14007
|
+
- academic_data/org/gpranchi.txt
|
14004
14008
|
- academic_data/org/gpsne.txt
|
14005
14009
|
- academic_data/org/graniteschools.txt
|
14006
14010
|
- academic_data/org/granitesd.txt
|
@@ -14371,6 +14375,7 @@ files:
|
|
14371
14375
|
- academic_data/org/nimsuniversity.txt
|
14372
14376
|
- academic_data/org/nkcschools.txt
|
14373
14377
|
- academic_data/org/nlpanthers.txt
|
14378
|
+
- academic_data/org/nonsuchschool.txt
|
14374
14379
|
- academic_data/org/nordakademie.txt
|
14375
14380
|
- academic_data/org/norfolkacademy.txt
|
14376
14381
|
- academic_data/org/northeastacademy.txt
|
@@ -14545,6 +14550,7 @@ files:
|
|
14545
14550
|
- academic_data/org/shenschools.txt
|
14546
14551
|
- academic_data/org/shriswaminarayanmission.txt
|
14547
14552
|
- academic_data/org/shschools.txt
|
14553
|
+
- academic_data/org/shsd/student.txt
|
14548
14554
|
- academic_data/org/siai.txt
|
14549
14555
|
- academic_data/org/siasindia.txt
|
14550
14556
|
- academic_data/org/sibadi.txt
|
@@ -14563,6 +14569,7 @@ files:
|
|
14563
14569
|
- academic_data/org/sonomaacademy.txt
|
14564
14570
|
- academic_data/org/southasia-uni.txt
|
14565
14571
|
- academic_data/org/southwestcoloradoeschool.txt
|
14572
|
+
- academic_data/org/spartandocs.txt
|
14566
14573
|
- academic_data/org/spartanmed.txt
|
14567
14574
|
- academic_data/org/spencerportschools.txt
|
14568
14575
|
- academic_data/org/spjain.txt
|
@@ -19425,6 +19432,7 @@ files:
|
|
19425
19432
|
- academic_data/vn/edu/c3chuvanan.txt
|
19426
19433
|
- academic_data/vn/edu/c3lqdon-khanhhoa.txt
|
19427
19434
|
- academic_data/vn/edu/cantho.txt
|
19435
|
+
- academic_data/vn/edu/caodangvietmy.txt
|
19428
19436
|
- academic_data/vn/edu/caothang.txt
|
19429
19437
|
- academic_data/vn/edu/cdythadong.txt
|
19430
19438
|
- academic_data/vn/edu/chuyenthaibinh.txt
|
@@ -19765,6 +19773,7 @@ files:
|
|
19765
19773
|
- academic_data/zm/unza.txt
|
19766
19774
|
- academic_data/zm/unza/www.txt
|
19767
19775
|
- academic_data/zw/ac/cut.txt
|
19776
|
+
- academic_data/zw/ac/hit.txt
|
19768
19777
|
- academic_data/zw/ac/msu.txt
|
19769
19778
|
- academic_data/zw/ac/nust.txt
|
19770
19779
|
- academic_data/zw/ac/riversidecollege.txt
|