Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Extraction of validate logic from `validates_email_format_of` to support docomo addresses

License

Notifications You must be signed in to change notification settings

esminc/kawaii_email_address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extraction of validate logic from `validates_email_format_of` to support docomo addresses

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages