free_email_checker 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile.lock +2 -2
- data/README.md +5 -4
- data/free_email_checker.gemspec +1 -1
- data/lib/free_email_checker/version.rb +1 -1
- data/lib/free_email_checker.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: be28ae4a8272add76229ac85fdca422320afd95196f373afc1ae81bab8b7be73
|
4
|
+
data.tar.gz: 8be6f5183758aa8c81162cb8cddf9d10a6e4566fcdf342c39ba914d5e6064217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d0dd1c0714ef95a6bc00946cb8cbf09fe0ee4563a2ab653f3bdae3ffa0abeb66b6714cb95fe486c183324924ab73489df7b9638d90b21b5bc3ed58758ab8961
|
7
|
+
data.tar.gz: 972be012e8a0a739703274edb58221ab651b25b04c945861c1c2b7646405d94244ddbbd2c58911dffdfd6a17618b01aee527cfb9b21f211ca040b519a5089fba
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# FreeEmailChecker
|
2
2
|
|
3
|
-
This gem checks
|
3
|
+
This gem checks an email is free account or not. If its not check domain existence. If founds domain, response mx record(s).
|
4
4
|
|
5
5
|
This gem uses free domain list, which is generated by Ammar Shah, and you can find list at https://gist.github.com/ammarshah/f5c2624d767f91a7cbdc4e54db8dd0bf
|
6
6
|
|
@@ -38,7 +38,8 @@ Or install it yourself as:
|
|
38
38
|
$ result = FreeEmailChecker.check("some_name@github.com")
|
39
39
|
|
40
40
|
```ruby
|
41
|
-
{:free=>false, :domain=>true, :status=>"Found
|
41
|
+
{:free=>false, :domain=>true, :status=>"Found mx records for github.com; ALT1.ASPMX.L.GOOGLE.com, ALT3.ASPMX.L.GOOGLE.com, ASPMX.L.GOOGLE.com, ALT4.ASPMX.L.GOOGLE.com, ALT2.ASPMX.L.GOOGLE.com, "}
|
42
|
+
|
42
43
|
|
43
44
|
```
|
44
45
|
|
@@ -50,7 +51,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
50
51
|
|
51
52
|
## Contributing
|
52
53
|
|
53
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/hamityay/free_email_checker
|
54
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hamityay/free_email_checker/issues and https://github.com/hamityay/free_email_checker/pulls.
|
54
55
|
|
55
56
|
## License
|
56
57
|
|
@@ -58,4 +59,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
58
59
|
|
59
60
|
## Code of Conduct
|
60
61
|
|
61
|
-
Everyone interacting in the FreeEmailChecker project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
62
|
+
Everyone interacting in the FreeEmailChecker project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hamityay/free_email_checker/blob/master/CODE_OF_CONDUCT.md).
|
data/free_email_checker.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
["= 0.0.0"]
|
13
13
|
|
14
14
|
spec.summary = %q{Free Email Check}
|
15
|
-
spec.description = %q{Checks an email is free account than if its not gives domain
|
15
|
+
spec.description = %q{Checks an email is free account than if its not gives domain mx records(if present).}
|
16
16
|
spec.homepage = "https://rubygems.org/gems/free_email_checker"
|
17
17
|
spec.metadata = { "source_code_uri" => "https://github.com/hamityay/free_email_checker" }
|
18
18
|
spec.license = "MIT"
|
data/lib/free_email_checker.rb
CHANGED
@@ -13,13 +13,13 @@ module FreeEmailChecker
|
|
13
13
|
check[:status] = "#{email} found in free email provider list."
|
14
14
|
else
|
15
15
|
require 'resolv-ipv6favor'
|
16
|
-
|
17
|
-
response = Resolv::DNS.new.getresources(w,
|
16
|
+
mx = Resolv::DNS::Resource::IN::MX
|
17
|
+
response = Resolv::DNS.new.getresources(w, mx)
|
18
18
|
if response.size > 0
|
19
19
|
check[:domain] = true
|
20
|
-
t = "Found
|
20
|
+
t = "Found mx record(s) for #{w}; "
|
21
21
|
response.each do |r|
|
22
|
-
t = t.concat(r.
|
22
|
+
t = t.concat(r.exchange.to_s + ", ")
|
23
23
|
end
|
24
24
|
check[:status] = t
|
25
25
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: free_email_checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hamit YAY
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
|
-
description: Checks an email is free account than if its not gives domain
|
55
|
+
description: Checks an email is free account than if its not gives domain mx records(if
|
56
56
|
present).
|
57
57
|
email:
|
58
58
|
- hamityay@hotmail.com
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.7.6
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Free Email Check
|