email_assessor 0.4.4 → 0.4.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: 21459f3829c02193184477874feb7e994b5cad15
4
- data.tar.gz: 19a01dde1b6eea60710bce989cd35706f3799cb5
3
+ metadata.gz: c89b20f8b2bc819399f4bf53ed19eb81ef812dfc
4
+ data.tar.gz: ee26fc8bb82aa2c91b0295d08748833cf111e747
5
5
  SHA512:
6
- metadata.gz: 186babc51edb4b1bd6197b8f2baca989538a5fc3d76efead5bc1a4aecf5559a822692b4df1137d5bc7e4caf64b9a574d17bc9d97a90f6338eab01ccb9f1e150f
7
- data.tar.gz: 34648475aa21feba1c4688d7a77b74dafe54035746f8ddcc5acad9d288331a6880e5a364fca32b1b335e54a8d64a4be173ac0e71b749c9b09035bd805a9e9ffe
6
+ metadata.gz: ea699d15c55fde3226625a5ae7e5cc53b0eb88130814e98c7738844bc0142f56deb26af8f33d726fb93482437a52c75bad51d7a77da8ad9938744a8749af4424
7
+ data.tar.gz: 5c730508cd468733488d94d7eca9ee5f491bc6348d9068c1ec6d1e16b7df0d70abba2158208ddecd0255416059021fbb5a50647c63fa315e2dbd5c607cbe23df
@@ -1,4 +1,5 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
+ # encoding: UTF-8
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require "email_assessor/version"
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "email_assessor/email_validator"
2
3
 
3
4
  module EmailAssessor
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "email_assessor"
2
3
  require "resolv"
3
4
  require "mail"
@@ -25,8 +26,8 @@ module EmailAssessor
25
26
 
26
27
  domain.match?(%r{\.}) && # Valid address domain must contain a period
27
28
  !domain.match?(%r{\.{2,}}) && # Valid address domain cannot have consecutive periods
28
- !domain.match?(%r{^\.}) && # Valid address domain cannot start with a period
29
- domain.match?(%r{[a-z]\Z}i) # Valid address domain must end with letters
29
+ !domain.match?(%r{\A\.}) && # Valid address domain cannot start with a period
30
+ domain.match?(%r{[a-z]\z}i) # Valid address domain must end with letters
30
31
  else
31
32
  false
32
33
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "email_assessor/address"
2
3
  require "active_model"
3
4
  require "active_model/validations"
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module EmailAssessor
2
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
3
4
  end
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "yaml"
4
5
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require "spec_helper"
2
3
 
3
4
  class TestUser < TestModel
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  $:.unshift File.expand_path("../lib",__FILE__)
2
3
  require "email_assessor"
3
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_assessor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wolfe Millard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-29 00:00:00.000000000 Z
11
+ date: 2017-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler