All Projects → esminc → kawaii_email_address

esminc / kawaii_email_address

Licence: MIT license
Extraction of validate logic from `validates_email_format_of` to support docomo addresses

Programming Languages

ruby
36898 projects - #4 most used programming language

KawaiiEmailAddress

Build Status Code Climate

Extraction of validate logic from validates_email_format_of to support japanese docomo/au kawaii addresses.

Installation

Add this line to your application's Gemfile:

gem 'kawaii_email_address'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kawaii_email_address

Usage

It's NOT Rails' validator. Use it with this

# accept `kawaii` local part with docomo or ezweb.
KawaiiEmailAddress::Validator.new('[email protected]').valid? # => true

# reject with other domains.
KawaiiEmailAddress::Validator.new('[email protected]').valid?    # => false

Contributing

  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

THANX

This library based on https://github.com/alexdunae/validates_email_format_of

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].