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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6ef985d452b362d2bb8aa83fe234b554c79cf60d
4
- data.tar.gz: f6eedd9df696bc7943eb00ee0f2b6581e166fec8
2
+ SHA256:
3
+ metadata.gz: be28ae4a8272add76229ac85fdca422320afd95196f373afc1ae81bab8b7be73
4
+ data.tar.gz: 8be6f5183758aa8c81162cb8cddf9d10a6e4566fcdf342c39ba914d5e6064217
5
5
  SHA512:
6
- metadata.gz: ff532eafd7a3b9b4174f5309c2a82e70365869a7c258c6dd373b012ac099b784101a38cba80917ab10f051795c4b6ddbe94c0c98e0e7343d6475a1106e267441
7
- data.tar.gz: 79ae13e6dcdc5dc27346f7abfc2ad3b44b92708e69fdf9b5eec7d4d8c62a8e9092f601c45fc74a2e3dffb59e2f505b7cfc9bbe0594376369980e76db52043024
6
+ metadata.gz: 2d0dd1c0714ef95a6bc00946cb8cbf09fe0ee4563a2ab653f3bdae3ffa0abeb66b6714cb95fe486c183324924ab73489df7b9638d90b21b5bc3ed58758ab8961
7
+ data.tar.gz: 972be012e8a0a739703274edb58221ab651b25b04c945861c1c2b7646405d94244ddbbd2c58911dffdfd6a17618b01aee527cfb9b21f211ca040b519a5089fba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- free_email_checker (0.1.1)
4
+ free_email_checker (0.2.0)
5
5
  resolv-ipv6favor (= 0.0.0)
6
6
 
7
7
  GEM
@@ -19,4 +19,4 @@ DEPENDENCIES
19
19
  rake (~> 10.0)
20
20
 
21
21
  BUNDLED WITH
22
- 1.16.1
22
+ 1.16.2
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FreeEmailChecker
2
2
 
3
- This gem checks en email is free account or not. If its not check domain existence. If founds domain response ip address(es).
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 ip address(es) for github.com 192.30.253.113, 192.30.253.112, "}
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. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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/[USERNAME]/free_email_checker/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -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 ip address(if present).}
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"
@@ -1,3 +1,3 @@
1
1
  module FreeEmailChecker
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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
- a = Resolv::DNS::Resource::IN::A
17
- response = Resolv::DNS.new.getresources(w, a)
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 ip address(es) for #{w} "
20
+ t = "Found mx record(s) for #{w}; "
21
21
  response.each do |r|
22
- t = t.concat(r.address.to_s + ", ")
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.1.1
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 ip address(if
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.5.1
97
+ rubygems_version: 2.7.6
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Free Email Check