swot-ruby 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -25
- data/lib/swot.rb +1 -1
- data/swot.gemspec +4 -8
- metadata +4 -7
- data/.document +0 -5
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -24
- data/.ruby-version +0 -1
- data/.travis.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 591f0b186ca17e26eeb7b044351b6b1d0eefd78e30bf56a944029617648c16b6
|
4
|
+
data.tar.gz: ccc638371838097ca826a5fe9a4d0a30434310f882e7ab56e1f38f733fe24bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cbd381f2db84fcf45e8db3cba1c66175a7063c93816fbd31cc83e762daaae230e7e1ae2490e4ddbf56b968481cce710804bddb887b72d08021118fd0d598053
|
7
|
+
data.tar.gz: 5164c03c5c5384497d6bccb9a3b3bbb6d03e03e585a7d4625667d7489c113adbd61c7c64f6cad05bf5b4f5e3a151a9ba14134ce0babe5e5ea6d12ef036da72ca
|
data/README.md
CHANGED
@@ -8,19 +8,28 @@ Swot is a community-driven or crowdsourced library for verifying that domain nam
|
|
8
8
|
|
9
9
|
**Pop quiz:** Which of the following domain names should be eligible for an academic discount? `stanford.edu`, `america.edu`, `duep.edu`, `gla.ac.uk`, `unizar.es`, `usask.ca`, `hil.no`, `unze.ba`, `fu-berlin.de`, `ecla.de`, `bvb.de`, `lsmu.com`. Answers at the foot of the page.
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
## Note - This is a fork of the original swot gem...
|
12
|
+
which has since been archived. The original gem has gotten
|
13
|
+
overwhelmed by false pull requests and issues. This fork
|
14
|
+
removes the responsibility of maintaining the list of domains
|
15
|
+
and emails from the gem and instead relies on a submodule
|
16
|
+
to be updated. There is a nightly job which will update the
|
17
|
+
submodule and push the changes to this repo. However, to pick up the new domains, a gem release will be required. I'm still
|
18
|
+
considering the best path for this.
|
14
19
|
|
15
|
-
|
20
|
+
### Installation
|
16
21
|
|
17
22
|
Or add this to your `Gemfile` before doing a `bundle install`:
|
18
23
|
|
19
|
-
`gem 'swot'`
|
24
|
+
`gem 'swot-ruby', require 'swot'`
|
25
|
+
|
26
|
+
Do not ref this repo directly in your Gemfile. It will not work. It relies on the submodule to be updated.
|
20
27
|
|
21
28
|
## Requirements
|
22
29
|
|
23
|
-
- Ruby >= 2.
|
30
|
+
- Ruby >= 2.7
|
31
|
+
|
32
|
+
Other versions of Ruby may work, but the gem is tested against the above versions.
|
24
33
|
|
25
34
|
### Usage
|
26
35
|
|
@@ -57,12 +66,11 @@ Swot::school_name 'http://www.stanford.edu'
|
|
57
66
|
|
58
67
|
### Contributing to Swot
|
59
68
|
|
60
|
-
Contributions welcome! Please see the [contribution guidelines](CONTRIBUTING.md) for details on how to add, update, or delete schools.
|
61
|
-
|
62
|
-
**Thanks** to the following people for their contributions:
|
63
|
-
@blutack, @captn3m0, @chrishunt, @johndbritton, @johnotander, @pborreli, @rcurtis, @vikhyat,.
|
69
|
+
Contributions welcome! Please see the [contribution guidelines](CONTRIBUTING.md) for details on how to add, update, or delete schools.
|
64
70
|
|
65
|
-
**
|
71
|
+
**Thanks** to @lreilly for the original implementation and
|
72
|
+
you can find more thanks for the original contributors on
|
73
|
+
the original repo.
|
66
74
|
|
67
75
|
### Known Issues
|
68
76
|
|
@@ -72,20 +80,6 @@ Contributions welcome! Please see the [contribution guidelines](CONTRIBUTING.md)
|
|
72
80
|
|
73
81
|
**Please note:** just because someone has verified that they own `lreilly@stanford.edu` does *not* mean that they're a student. They could be faculty, staff, alumnni, or maybe even an external contractor. If you're suddenly getting a lot of traffic from websites like [FatWallet](http://www.fatwallet.com) or [SlickDeals](http://www.slickdeals.net), you might want to find out why. If you're suddenly getting a lot of requests from a particular school, you should look into that too. It may be good business, word of mouth, or someone may have found a loophole. Swot gives you a *high confidence level* - not a guarantee. I recommend putting some controls in place or at least monitor how it's doing from time to time.
|
74
82
|
|
75
|
-
### What is a swot?
|
76
|
-
|
77
|
-
According to [UrbanDictionary](http://www.urbandictionary.com/define.php?term=swot) :blue_book:
|
78
|
-
|
79
|
-
> A word used by morons to insult a person of superior academic abilities.
|
80
|
-
|
81
|
-
or
|
82
|
-
|
83
|
-
> [verb] To Swot; Revision undertaken preceding an examination.
|
84
|
-
|
85
|
-
or
|
86
|
-
|
87
|
-
> [backronym] Stupid Waste of Time
|
88
|
-
|
89
83
|
### Pop Quiz Answers
|
90
84
|
|
91
85
|
Hopefully, you'll be surprised by some of this:
|
data/lib/swot.rb
CHANGED
data/swot.gemspec
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = "swot-ruby"
|
4
|
-
s.version = "1.0.
|
4
|
+
s.version = "1.0.2"
|
5
5
|
|
6
6
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
7
|
-
s.authors = ["Lee Reilly"]
|
8
|
-
s.date = "
|
7
|
+
s.authors = ["Dave Kimura", "Lee Reilly"]
|
8
|
+
s.date = "2023-06-10"
|
9
9
|
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
|
-
s.email = "
|
10
|
+
s.email = "dave@k-innovations.net"
|
11
11
|
s.extra_rdoc_files = [
|
12
12
|
"LICENSE.txt",
|
13
13
|
"README.md"
|
@@ -15,10 +15,6 @@ Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
s.files = `git ls-files -z`.split("\x0") + Dir['data/lib/domains/*']
|
17
17
|
|
18
|
-
Dir.glob('lib/domains/**/*.txt').each do |path|
|
19
|
-
s.files << path if File.file?(path)
|
20
|
-
end
|
21
|
-
|
22
18
|
s.homepage = "https://github.com/kobaltz/swot"
|
23
19
|
s.licenses = ["MIT"]
|
24
20
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Dave Kimura
|
7
8
|
- Lee Reilly
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2023-06-10 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: public_suffix
|
@@ -40,21 +41,17 @@ dependencies:
|
|
40
41
|
version: '2.0'
|
41
42
|
description: Identify email addresses or domains names that belong to colleges or
|
42
43
|
universities. Help automate the process of approving or rejecting academic discounts.
|
43
|
-
email:
|
44
|
+
email: dave@k-innovations.net
|
44
45
|
executables: []
|
45
46
|
extensions: []
|
46
47
|
extra_rdoc_files:
|
47
48
|
- LICENSE.txt
|
48
49
|
- README.md
|
49
50
|
files:
|
50
|
-
- ".document"
|
51
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
52
51
|
- ".github/workflows/ruby.yml"
|
53
52
|
- ".github/workflows/update_domains.yml"
|
54
53
|
- ".gitignore"
|
55
54
|
- ".gitmodules"
|
56
|
-
- ".ruby-version"
|
57
|
-
- ".travis.yml"
|
58
55
|
- CONTRIBUTING.md
|
59
56
|
- Gemfile
|
60
57
|
- LICENSE.txt
|
data/.document
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
#### Institution/School Name
|
2
|
-
{Name Here}
|
3
|
-
|
4
|
-
#### Instiution/School Website
|
5
|
-
{Website URL}
|
6
|
-
|
7
|
-
#### Email Users
|
8
|
-
|
9
|
-
*Please place an x between the square brackets if yes*
|
10
|
-
- [ ] Students
|
11
|
-
- [ ] Academic/Teaching Staff
|
12
|
-
- [ ] Other/Support Staff
|
13
|
-
- [ ] Alumni
|
14
|
-
|
15
|
-
#### Education Levels
|
16
|
-
|
17
|
-
*Please place an x between the square brackets if yes*
|
18
|
-
|
19
|
-
- [ ] Post-graduate research
|
20
|
-
- [ ] Graduate School
|
21
|
-
- [ ] College (University) or Undergraduate School or equivalent
|
22
|
-
- [ ] Community College or equivalent
|
23
|
-
- [ ] High School or equivalent
|
24
|
-
- [ ] Elementary School or equivalent
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.0.0
|
data/.travis.yml
DELETED