kawaii_email_address 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -1
- data/Gemfile +4 -0
- data/README.md +1 -0
- data/lib/kawaii_email_address/validator.rb +1 -0
- data/lib/kawaii_email_address/version.rb +1 -1
- data/spec/kawaii_email_address_spec.rb +3 -0
- data/spec/spec_helper.rb +6 -0
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9f9d489cd5ff7ced98dc58ac741d37ba9d2dd5b
|
4
|
+
data.tar.gz: 375867f676963801390d00c416a570bbc72c43da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1c44947221d0e536e97d3e45fa2fc325b58d3b1cc7f2e59c9cff57857c9ddb71f220e49fa33226ab43b4e54c808ead3a2ad81c13c93bb1c3a49de09dcf04695
|
7
|
+
data.tar.gz: ba8abaa03b53fba5a4375b8ca4d3aba91e59c7e603587d50abb59237e83175d6e540b3e5fa2503d01669fee907194f6eb7e5f0a4a1b70dee6ea0705970238675
|
data/.travis.yml
CHANGED
@@ -3,5 +3,11 @@ language: ruby
|
|
3
3
|
rvm:
|
4
4
|
- 1.9.3
|
5
5
|
- 2.0.0
|
6
|
-
|
6
|
+
- 2.1
|
7
|
+
- 2.2
|
8
|
+
- 2.3.0
|
9
|
+
env:
|
10
|
+
- secure: "CoHbf7aGxnYRxUDVoIFKC3F8PnUSqfjXKxH05oQtGc7+RNXpPWXBbDlIp1Ee5SYtsTn8pQ8Ntxszxu330PeKLQnUwDNJAJOn2eo1ZiYkZoWENSP5nSRAuW+nFQLD5CDIcq8Di6gBYXsjqFHDwgJMFsMAqaDWdz9N9bdQglFBHOE="
|
7
11
|
script: bundle exec rspec
|
12
|
+
|
13
|
+
before_install: gem update bundler
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# KawaiiEmailAddress
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/esminc/kawaii_email_address.png?branch=master)](https://travis-ci.org/esminc/kawaii_email_address)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/esminc/kawaii_email_address.png)](https://codeclimate.com/github/esminc/kawaii_email_address)
|
4
5
|
|
5
6
|
Extraction of validate logic from `validates_email_format_of` to support japanese docomo/au kawaii addresses.
|
6
7
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'spec_helper'
|
1
2
|
require 'kawaii_email_address/validator'
|
2
3
|
|
3
4
|
describe KawaiiEmailAddress::Validator do
|
@@ -23,6 +24,8 @@ describe KawaiiEmailAddress::Validator do
|
|
23
24
|
|
24
25
|
it { should_not pass_validation_with 'example_address' }
|
25
26
|
|
27
|
+
it { should_not pass_validation_with '@example.com' }
|
28
|
+
|
26
29
|
context 'kawaii: aka.docomo' do
|
27
30
|
it { should pass_validation_with 'mail..example@docomo.ne.jp' }
|
28
31
|
it { should pass_validation_with 'example.@docomo.ne.jp' }
|
data/spec/spec_helper.rb
CHANGED
@@ -4,6 +4,12 @@
|
|
4
4
|
# loaded once.
|
5
5
|
#
|
6
6
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
|
8
|
+
if ENV['CODECLIMATE_REPO_TOKEN'] && RUBY_VERSION.start_with?('2.1')
|
9
|
+
require 'codeclimate-test-reporter'
|
10
|
+
CodeClimate::TestReporter.start
|
11
|
+
end
|
12
|
+
|
7
13
|
RSpec.configure do |config|
|
8
14
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
9
15
|
config.run_all_when_everything_filtered = true
|
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.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moro
|
@@ -9,48 +9,48 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.3'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.3'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
description: Extraction of validate logic from `validates_email_format_of` to support
|
@@ -62,9 +62,9 @@ executables: []
|
|
62
62
|
extensions: []
|
63
63
|
extra_rdoc_files: []
|
64
64
|
files:
|
65
|
-
- .gitignore
|
66
|
-
- .rspec
|
67
|
-
- .travis.yml
|
65
|
+
- ".gitignore"
|
66
|
+
- ".rspec"
|
67
|
+
- ".travis.yml"
|
68
68
|
- Gemfile
|
69
69
|
- LICENSE.txt
|
70
70
|
- README.md
|
@@ -85,17 +85,17 @@ require_paths:
|
|
85
85
|
- lib
|
86
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.5.2
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Extraction of validate logic from `validates_email_format_of` to support
|