Sha256: 93f14078b5beb004550b2da7d8e2898303ca6c467abe3f4ece0a6d5ee2bbc8d3
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
# Humdrum Humdrum is a simple gem for checking whether an email address is from a common public domain (e.g. gmail.com, hotmail.com etc.). New in 0.0.5: Check if an email belongs to a microsoft domain. ## Installation Add this line to your application's Gemfile: gem 'humdrum' And then execute: $ bundle Or install it yourself as: $ gem install humdrum ## Usage require 'humdrum' Humdrum.is_common? 'user@gmail.com' => TRUE Humdrum.is_common? 'unique@validseriousbusiness.org' => FALSE Humdrum.is_outlook? 'user@hotmail.com' => TRUE Humdrum.is_outlook? 'user@gmail.com' => FALSE ## Contributing As with the nature of domains, this list is only a 'best guess', so use with caution, or send a pull request with additional domains. 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
humdrum-0.0.6 | README.md |