Skip to content
Extraction of validate logic from `validates_email_format_of` to support docomo addresses
Ruby
Branch: master
Clone or download
Latest commit cb6953d Apr 17, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib bump Nov 29, 2016
spec sorted spec Nov 29, 2016
.gitignore add .ruby-version to ignore Dec 25, 2016
.rspec bundle gem email_format_validator && rspec --nit Jul 9, 2013
.travis.yml use latest ruby version in CI Apr 15, 2017
Gemfile Add test reporter Jun 19, 2014
LICENSE.txt Rename EmailFormatValidator to KawaiiEmailAddress Jul 9, 2013
README.md Add Code Climate badge Jun 19, 2014
Rakefile
kawaii_email_address.gemspec Add homepage to GitHub Jul 10, 2013

README.md

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('....-_-....@docomo.ne.jp').valid? # => true

# reject with other domains.
KawaiiEmailAddress::Validator.new('u3u...chu@example.com').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

You can’t perform that action at this time.