swot-ruby 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -25
  3. data/lib/swot.rb +1 -1
  4. data/swot.gemspec +4 -4
  5. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4d6bc77cb526656be8cfd79b2617c57f59cd03a5d3b0ab10ebd8acdebc70d04
4
- data.tar.gz: 50bc525d978231cba12d9ab1bb45ab1a81bf88688da2a14001b65fcd5c6a2aa1
3
+ metadata.gz: 48975caa5bc76ace803513f8a88f4b85ecacee1bf403bf16391ee3c70a1ed25c
4
+ data.tar.gz: 9e3b7455b425fe93de048e3c52d1d526ebd0fde6fb64a3ce43245db6249ce8e9
5
5
  SHA512:
6
- metadata.gz: 0f58f873100c5091f7c0189fe240ff6143952a17f2d80f9b363c4f5ab9b75d1a65e11ffa410dd3c6a396dd37b8141889542cab1f0465dd7875d37b9365a9d4f5
7
- data.tar.gz: e568e25362a5506b3b3df13c2ee28d8a815f3d1d59123bd64f9106d971e248c0454aee9023099cf75d5fcefd35225f7b793af105f3fc9e456ee24b547a5998a3
6
+ metadata.gz: dd4cdb067c3ffde706579eb3c4199103c432b1175cef16afe61c64d8cefd376b9a8aad9396a40f5ce0999bc82e6a9357321d5e18bd55126ed0399580c2590e73
7
+ data.tar.gz: 458d5c2edba7652a510f88dd6d388f46b2050014b714e71020905c44c4f76cf70605b2872c0b87dcead26c3c834f204187f99c738cb5df275867a0fcd0d88b62
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
- ### Installation
12
-
13
- Swot is a Ruby gem, so you'll need a little Ruby-fu to get it working. Simply
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
- `gem install swot`
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.0
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. Code contributions and ports to different languages welcome too.
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
- **Special thanks** to @weppos for the [public_suffix](https://github.com/weppos/publicsuffix-ruby) gem :metal:
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
@@ -5,7 +5,7 @@ require_relative "swot/collection_methods"
5
5
 
6
6
  class Swot
7
7
 
8
- VERSION = "0.4.2"
8
+ VERSION = "1.0.1"
9
9
 
10
10
  # These are domains that snuck into the edu registry,
11
11
  # but don't pass the education sniff test
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.0"
4
+ s.version = "1.0.1"
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 = "2015-07-10"
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 = "lee@leereilly.net"
10
+ s.email = "dave@k-innovations.net"
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE.txt",
13
13
  "README.md"
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.0
4
+ version: 1.0.1
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: 2015-07-10 00:00:00.000000000 Z
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,7 +41,7 @@ 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: lee@leereilly.net
44
+ email: dave@k-innovations.net
44
45
  executables: []
45
46
  extensions: []
46
47
  extra_rdoc_files: