kawaii_email_address 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13d8c3769df4f32a061f862231db237b7c0f4302
4
- data.tar.gz: fa6a908f00939f7180727ae9efffef6984862834
3
+ metadata.gz: ffde28e5d7178162903ab8385f212687b114b1a0
4
+ data.tar.gz: 5d172f3cf45fc3ac826ec0a72674058a00dffdf7
5
5
  SHA512:
6
- metadata.gz: f37d0792c6c8703728b5d2e8e3a32b8d21799ccdfb22c15ff8f6ec82675dc4152e2269c9da6766aa5d1eada93d5a79d29e20bff65601dcf86d1565b2486a3c82
7
- data.tar.gz: 7e9f8b6e71a07051587c25a194ece8b1964c19a55b87f4f180d1ea6878815e84441b77eeed06d944744105344328755314e4d4ae95c5fc7a48bbe54aa24a8012
6
+ metadata.gz: 02a6029584b557590b48450c5665bc8cfcc671e46f7435cf953d55d66974d317e7f3fa094c1156d2fa67319591430086dae1084b1e3643e5389d448f85437fef
7
+ data.tar.gz: 4dafa09430162cc982e9b57a178c5c004cd19b30407906b2f308edd6820b2888e3252e510ca0f4dbf8c56b6b4cd3adcf3e02ef1179661618a6bf709e36b88391
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+
7
+ script: bundle exec rspec
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # KawaiiEmailAddress
2
2
 
3
+ [![Build Status](https://travis-ci.org/esminc/kawaii_email_address.png?branch=master)](https://travis-ci.org/esminc/kawaii_email_address)
4
+
3
5
  Extraction of validate logic from `validates_email_format_of` to support japanese docomo/au kawaii addresses.
4
6
 
5
7
  ## Installation
@@ -21,7 +23,7 @@ Or install it yourself as:
21
23
  It's NOT Rails' validator. Use it with this
22
24
 
23
25
  ```
24
- # acdept `kawaii` local part with docomo or ezweb.
26
+ # accept `kawaii` local part with docomo or ezweb.
25
27
  KawaiiEmailAddress::Validator.new('....-_-....@docomo.ne.jp').valid? # => true
26
28
 
27
29
  # reject with other domains.
@@ -0,0 +1 @@
1
+ require 'kawaii_email_address/validator'
@@ -88,7 +88,7 @@ module KawaiiEmailAddress
88
88
  def valid_domain_literal?(domain)
89
89
  begin
90
90
  IPAddr.new(domain)
91
- rescue IPAddr::InvalidAddressError
91
+ rescue ArgumentError
92
92
  false
93
93
  end
94
94
  end
@@ -1,3 +1,3 @@
1
1
  module KawaiiEmailAddress
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kawaii_email_address
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - moro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-10 00:00:00.000000000 Z
12
+ date: 2014-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -64,11 +64,13 @@ extra_rdoc_files: []
64
64
  files:
65
65
  - .gitignore
66
66
  - .rspec
67
+ - .travis.yml
67
68
  - Gemfile
68
69
  - LICENSE.txt
69
70
  - README.md
70
71
  - Rakefile
71
72
  - kawaii_email_address.gemspec
73
+ - lib/kawaii_email_address.rb
72
74
  - lib/kawaii_email_address/validator.rb
73
75
  - lib/kawaii_email_address/version.rb
74
76
  - spec/kawaii_email_address_spec.rb
@@ -93,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
95
  version: '0'
94
96
  requirements: []
95
97
  rubyforge_project:
96
- rubygems_version: 2.0.3
98
+ rubygems_version: 2.0.7
97
99
  signing_key:
98
100
  specification_version: 4
99
101
  summary: Extraction of validate logic from `validates_email_format_of` to support