Go to file
2012-02-04 12:56:28 -08:00
lib Add academic domains 2012-02-04 12:56:28 -08:00
test Train-Driven Development 🚋 2012-01-31 19:53:12 -08:00
.document Initial commit to email. 2012-01-30 17:14:23 -08:00
.gitignore Initial commit to email. 2012-01-30 17:14:23 -08:00
.rbenv-version Initial commit 2012-01-30 20:01:16 -08:00
email.gemspec Regenerate gemspec for version 0.1.0 2012-01-30 20:04:39 -08:00
Gemfile Initial commit 2012-01-30 20:01:16 -08:00
Gemfile.lock Initial commit 2012-01-30 20:01:16 -08:00
LICENSE.txt Initial commit to email. 2012-01-30 17:14:23 -08:00
Rakefile Initial commit 2012-01-30 20:01:16 -08:00
README.rdoc Train-Driven Development 🚋 2012-01-31 19:56:22 -08:00
VERSION Version bump to 0.1.0 2012-01-30 20:04:07 -08:00

= email

Helpers for email addresses.

    Email::academic?('lreilly@stanford.edu')          # true
    Email::academic?('lreilly@slac.stanford.edu')     # true
    Email::academic?('lreilly@strath.ac.uk')          # true
    Email::academic?('lreilly@soft-eng.strath.ac.uk') # true
    Email::academic?('lee@ugr.es')                    # true
    Email::academic?('lee@uottawa.ca')                # true

    Email::academic?('lee@leerilly.net')              # false
    Email::academic?('lee@gmail.com')                 # false
    Email::academic?('lee@stanford.edu.com')          # false
    Email::academic?('lee@strath.ac.uk.com')          # false

* is this email address from an academic institution?

== Contributing to email

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature/bugfix branch.
* Commit and push until you are happy with your contribution.
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2012 Lee Reilly. See LICENSE.txt for
further details.