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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffde28e5d7178162903ab8385f212687b114b1a0
4
- data.tar.gz: 5d172f3cf45fc3ac826ec0a72674058a00dffdf7
3
+ metadata.gz: b9f9d489cd5ff7ced98dc58ac741d37ba9d2dd5b
4
+ data.tar.gz: 375867f676963801390d00c416a570bbc72c43da
5
5
  SHA512:
6
- metadata.gz: 02a6029584b557590b48450c5665bc8cfcc671e46f7435cf953d55d66974d317e7f3fa094c1156d2fa67319591430086dae1084b1e3643e5389d448f85437fef
7
- data.tar.gz: 4dafa09430162cc982e9b57a178c5c004cd19b30407906b2f308edd6820b2888e3252e510ca0f4dbf8c56b6b4cd3adcf3e02ef1179661618a6bf709e36b88391
6
+ metadata.gz: b1c44947221d0e536e97d3e45fa2fc325b58d3b1cc7f2e59c9cff57857c9ddb71f220e49fa33226ab43b4e54c808ead3a2ad81c13c93bb1c3a49de09dcf04695
7
+ data.tar.gz: ba8abaa03b53fba5a4375b8ca4d3aba91e59c7e603587d50abb59237e83175d6e540b3e5fa2503d01669fee907194f6eb7e5f0a4a1b70dee6ea0705970238675
@@ -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
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in kawaii_email_address.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'codeclimate-test-reporter', require: false
8
+ end
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
 
@@ -36,6 +36,7 @@ module KawaiiEmailAddress
36
36
  end
37
37
 
38
38
  def valid_local_part?
39
+ return false if local_part.empty?
39
40
  return false if invalid_period_position?
40
41
 
41
42
  in_quoted_pair = false
@@ -1,3 +1,3 @@
1
1
  module KawaiiEmailAddress
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -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' }
@@ -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.3
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: 2014-04-15 00:00:00.000000000 Z
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.0.7
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