email-verification 0.1.8 → 0.1.9

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
  SHA256:
3
- metadata.gz: 1e01d40e388495a5f4de1b67105df6e41e39ad8ca0f6bd5d3ee1fb9fe1575862
4
- data.tar.gz: 6cdab5b9a6b8fe9734374beac907c0a2b5caa2e22b0682682d3f14efe39ef36d
3
+ metadata.gz: 2cafa6a875dafeb9ca51dba2da2f099c7f543bed34ecc933f26009bb5647c53f
4
+ data.tar.gz: 7abe43cef996eac4b977d4848bb561ea93a57fee80af97e03b8399a1eb098916
5
5
  SHA512:
6
- metadata.gz: 798b78d6a347c742a3f9e5111d3afb0708adb913afeea8d678f78ae2873be451a1b61ef3a7f376fa8410ac622370f37a1a7eff167b210070c6c9c4d3a4282a19
7
- data.tar.gz: 3a7c474d60b82da0b4c032f9d7c984bccd893371a012f3fb4b6d6a90e5986f5f5001aa26a271bf3a8ccfdc1fd7ce43ec29f95bc4017981492ccc89cf908d4cde
6
+ metadata.gz: 0bfef6b3de29a8644c955721c9fc7627011b1eaf3ccfc791bdf89b064acb0bb1bf41de97c92876ebfd8289a6c33db7e6500c29955d4265b02df7824435db04ce
7
+ data.tar.gz: aa79c4d837a23790f67f2a907d13d4fe4f48ba3d0e573e3bd2f8b09dbca9c65162da04090e00e53d8bb7316d1530d1af6158317299d8d075b38aa6f3067c00f4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- email-verification (0.1.0)
4
+ email-verification (0.1.9)
5
5
  gmail (~> 0.7.1)
6
6
 
7
7
  GEM
@@ -17,7 +17,7 @@ GEM
17
17
  mail (2.7.1)
18
18
  mini_mime (>= 0.1.1)
19
19
  method_source (0.9.2)
20
- mini_mime (1.0.1)
20
+ mini_mime (1.0.2)
21
21
  oauth (0.5.4)
22
22
  pry (0.12.2)
23
23
  coderay (~> 1.1.0)
@@ -6,6 +6,8 @@ require "email/verification/version"
6
6
 
7
7
  require "email/verification/configuration"
8
8
 
9
+ require "email/verification/errors"
10
+
9
11
  require "email/verification/base"
10
12
  require "email/verification/gmail"
11
13
  require "email/verification/hotmail"
@@ -36,7 +36,7 @@ module Email
36
36
  end
37
37
 
38
38
  rescue Net::IMAP::NoResponseError => e
39
- raise ArgumentError, "Please check account/password settings for email #{email}!"
39
+ raise ::Email::Verification::Errors::InvalidCredentialsError.new("Please check account/password settings for email #{email}!")
40
40
  end
41
41
 
42
42
  if settings_provided?(settings)
@@ -0,0 +1,10 @@
1
+ module Email
2
+ module Verification
3
+ module Errors
4
+
5
+ class Error < StandardError; end
6
+ class InvalidCredentialsError < Email::Verification::Errors::Error; end
7
+
8
+ end
9
+ end
10
+ end
@@ -27,7 +27,7 @@ module Email
27
27
  end
28
28
 
29
29
  rescue Net::IMAP::BadResponseError => e
30
- raise ArgumentError, "You need to enable logins for less secure apps in Gmail for #{email}!"
30
+ raise ::Email::Verification::Errors::InvalidCredentialsError.new("You need to enable logins for less secure apps in Gmail for #{email}!")
31
31
  end
32
32
 
33
33
  if settings_provided?(settings)
@@ -1,5 +1,5 @@
1
1
  module Email
2
2
  module Verification
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email-verification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Johnsson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-04 00:00:00.000000000 Z
11
+ date: 2019-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gmail
@@ -103,6 +103,7 @@ files:
103
103
  - lib/email/verification/base.rb
104
104
  - lib/email/verification/configuration.rb
105
105
  - lib/email/verification/data/domains.yml
106
+ - lib/email/verification/errors.rb
106
107
  - lib/email/verification/gmail.rb
107
108
  - lib/email/verification/hotmail.rb
108
109
  - lib/email/verification/verifier.rb