Merge branch 'master' of github.com:leereilly/swot

This commit is contained in:
Lee Reilly 2012-02-16 16:03:27 -08:00
commit 8b3c3763dd

View File

@ -16,26 +16,26 @@ nigel@stanford.edu, bawbag@cs.strath.ac.uk, lee@wunizar.es, terrence@ubishops.ca
# Usage
## Verify Email Addresses
Swot::academic?('lreilly@stanford.edu') # true
Swot::academic?('lreilly@slac.stanford.edu') # true
Swot::academic?('lreilly@strath.ac.uk') # true
Swot::academic?('lreilly@soft-eng.strath.ac.uk') # true
Swot::academic?('lee@ugr.es') # true
Swot::academic?('lee@uottawa.ca') # true
Swot::academic?('lee@leerilly.net') # false
Swot::academic?('lee@gmail.com') # false
Swot::academic?('lee@stanford.edu.com') # false
Swot::academic?('lee@strath.ac.uk.com') # false
```ruby
Swot::is_academic?('lreilly@stanford.edu') # true
Swot::is_academic?('lreilly@slac.stanford.edu') # true
Swot::is_academic?('lreilly@strath.ac.uk') # true
Swot::is_academic?('lreilly@soft-eng.strath.ac.uk') # true
Swot::is_academic?('lee@ugr.es') # true
Swot::is_academic?('lee@uottawa.ca') # true
Swot::is_academic?('lee@leerilly.net') # false
Swot::is_academic?('lee@gmail.com') # false
Swot::is_academic?('lee@stanford.edu.com') # false
Swot::is_academic?('lee@strath.ac.uk.com') # false
```
## Verify Domain Names
Swot::academic?('harvard.edu') # true
Swot::academic?('www.harvard.edu') # true
Swot::academic?('http://www.harvard.edu') # true
Swot::academic?('http://www.kink.com') # false
Swot::academic?('http://www.rangers.co.uk') # false
```ruby
Swot::is_academic?('harvard.edu') # true
Swot::is_academic?('www.harvard.edu') # true
Swot::is_academic?('http://www.harvard.edu') # true
Swot::is_academic?('http://www.kink.com') # false
Swot::is_academic?('http://www.rangers.co.uk') # false
```
# What is a swot?
[UrbanDictionary will fill you in](http://www.urbandictionary.com/define.php?term=swot) ಠ_ಠ