email-verification 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cfc3ab8898cecfba92dc9503f32dea94133613d831832e02cde1aceb8fe71dd7
4
+ data.tar.gz: be0c28e0614b05ef73327a1c7824e71db0fffd1067f327fe4771dc47957cf58d
5
+ SHA512:
6
+ metadata.gz: dcd2558ac7c582d53915bdaa9c6ceae103316a5a0729f685b1318ebc087b27b466d9abee683a635b5d8a3d267ae8d82d408a166653112a28aa365e5291c3e798
7
+ data.tar.gz: 28d869fce17dfb239a70c650f2bb9762f5445746848333009615574e182977a96dfbbc7d769475499ed824836ea7ca90097261332dee60852addc491d5f2b42f
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ .DS_Store
14
+
15
+ .ruby-version
16
+ .ruby-gemset
17
+
18
+ /bin/.pry_history
19
+ .pry_history
20
+
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 1.17.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at sebastian.johnsson@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in email-verification.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,51 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ email-verification (0.1.0)
5
+ gmail (~> 0.7.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ coderay (1.1.2)
11
+ diff-lcs (1.3)
12
+ gmail (0.7.1)
13
+ gmail_xoauth (>= 0.3.0)
14
+ mail (>= 2.2.1)
15
+ gmail_xoauth (0.4.2)
16
+ oauth (>= 0.3.6)
17
+ mail (2.7.1)
18
+ mini_mime (>= 0.1.1)
19
+ method_source (0.9.2)
20
+ mini_mime (1.0.1)
21
+ oauth (0.5.4)
22
+ pry (0.12.2)
23
+ coderay (~> 1.1.0)
24
+ method_source (~> 0.9.0)
25
+ rake (10.5.0)
26
+ rspec (3.8.0)
27
+ rspec-core (~> 3.8.0)
28
+ rspec-expectations (~> 3.8.0)
29
+ rspec-mocks (~> 3.8.0)
30
+ rspec-core (3.8.2)
31
+ rspec-support (~> 3.8.0)
32
+ rspec-expectations (3.8.4)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.8.0)
35
+ rspec-mocks (3.8.1)
36
+ diff-lcs (>= 1.2.0, < 2.0)
37
+ rspec-support (~> 3.8.0)
38
+ rspec-support (3.8.2)
39
+
40
+ PLATFORMS
41
+ ruby
42
+
43
+ DEPENDENCIES
44
+ bundler (~> 1.17)
45
+ email-verification!
46
+ pry (~> 0.12.2)
47
+ rake (~> 10.0)
48
+ rspec (~> 3.0)
49
+
50
+ BUNDLED WITH
51
+ 1.17.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Sebastian Johnsson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Email::Verification
2
+
3
+ Email::Verification is a gem that helps out with retrieving emails and parsing out confirmation/verification codes and urls.
4
+
5
+ Currently supported providers are Gmail and Hotmail but adding custom providers is fairly straightforward.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'email-verification'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install email-verification
22
+
23
+ ## Usage
24
+
25
+ Email::Verification expects a settings hash in the following format:
26
+
27
+ ```ruby
28
+ settings = {
29
+ address: "confirmation@foo.com",
30
+ from: "Confirmation",
31
+ subject: /Confirm your email!/i,
32
+ regex: /<a href=['"](?<match>[^"]*)['"]>\s*Click here\s*<\/a>/i
33
+ }
34
+ ```
35
+
36
+ Note that the regex must include a :match capture group!
37
+
38
+ Then the client is invoked using:
39
+
40
+ ```ruby
41
+ Email::Verification.retrieve_verification_code(email: 'email.address@gmail.com', password: 's0mEpasSwOrD', settings: settings)
42
+ ```
43
+
44
+ ## Development
45
+
46
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
47
+
48
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
49
+
50
+ ## Contributing
51
+
52
+ Bug reports and pull requests are welcome on GitHub at https://github.com/SebastianJ/email-verification. 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.
53
+
54
+ ## License
55
+
56
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
57
+
58
+ ## Code of Conduct
59
+
60
+ Everyone interacting in the Email::Verification project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/SebastianJ/email-verification/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "email/verification"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ require "pry"
11
+ Pry.config.history.file = File.join(__FILE__, "../.pry_history")
12
+ Pry.start
13
+
14
+ #require "irb"
15
+ #IRB.start(__FILE__)
16
+
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,44 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "email/verification/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "email-verification"
8
+ spec.version = Email::Verification::VERSION
9
+ spec.authors = ["Sebastian Johnsson"]
10
+ spec.email = ["sebastian.johnsson@gmail.com"]
11
+
12
+ spec.summary = %q{Email verification gem}
13
+ spec.description = %q{Verify email addresses using Gmail, Hotmail etc.}
14
+ spec.homepage = "https://github.com/SebastianJ/email-verification"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/SebastianJ/email-verification"
22
+ spec.metadata["changelog_uri"] = "https://github.com/SebastianJ/email-verification/CHANGELOG.md"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against " \
25
+ "public gem pushes."
26
+ end
27
+
28
+ # Specify which files should be added to the gem when it is released.
29
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
31
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
+ end
33
+ spec.bindir = "exe"
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ["lib"]
36
+
37
+ spec.add_dependency "gmail", "~> 0.7.1"
38
+
39
+ spec.add_development_dependency "bundler", "~> 1.17"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rspec", "~> 3.0"
42
+
43
+ spec.add_development_dependency "pry", "~> 0.12.2"
44
+ end
@@ -0,0 +1,40 @@
1
+ require "gmail"
2
+ require "mail"
3
+ require "yaml"
4
+
5
+ require "email/verification/version"
6
+
7
+ require "email/verification/configuration"
8
+
9
+ require "email/verification/base"
10
+ require "email/verification/gmail"
11
+ require "email/verification/hotmail"
12
+
13
+ require "email/verification/verifier"
14
+
15
+ module Email
16
+ module Verification
17
+ class Error < StandardError; end
18
+
19
+ class << self
20
+ attr_writer :configuration
21
+ end
22
+
23
+ def self.configuration
24
+ @configuration ||= ::Email::Verification::Configuration.new
25
+ end
26
+
27
+ def self.reset
28
+ @configuration = ::Email::Verification::Configuration.new
29
+ end
30
+
31
+ def self.configure
32
+ yield(configuration)
33
+ end
34
+
35
+ def self.retrieve_verification_code(email:, password:, mailboxes: %w(Inbox), settings: {})
36
+ ::Email::Verification::Verifier.new.retrieve_verification_code(email: email, password: password, mailboxes: mailboxes, settings: settings)
37
+ end
38
+
39
+ end
40
+ end
@@ -0,0 +1,61 @@
1
+ module Email
2
+ module Verification
3
+ class Base
4
+ attr_accessor :configuration
5
+
6
+ def initialize(configuration: ::Email::Verification.configuration)
7
+ self.configuration = configuration
8
+ end
9
+
10
+ def retrieve_verification_code(email:, password:, host:, port: 993, enable_ssl: true, mailboxes: %w(Inbox), settings: {})
11
+ emails = []
12
+ result = nil
13
+
14
+ begin
15
+ Mail.defaults do
16
+ retriever_method :imap, address: host,
17
+ port: port,
18
+ user_name: email,
19
+ password: password,
20
+ enable_ssl: enable_ssl
21
+ end
22
+
23
+ mailboxes.each do |mailbox|
24
+ Mail.find(mailbox: mailbox, order: :desc)&.each do |email|
25
+ log("From: #{email.from&.first&.strip}. Subject: #{email.subject}")
26
+
27
+ if settings_provided?(settings)
28
+ if email.from&.first&.strip == settings[:address] && email.subject =~ settings[:subject]
29
+ emails << (email.html_part || email.text_part || email).body.decoded
30
+ end
31
+ else
32
+ emails << (email.html_part || email.text_part || email).body.decoded
33
+ end
34
+ end
35
+ end
36
+
37
+ rescue Net::IMAP::NoResponseError => e
38
+ raise ArgumentError, "Please check account/password settings for email #{email}!"
39
+ end
40
+
41
+ if settings_provided?(settings)
42
+ message = emails&.first
43
+ code = message&.match(settings[:regex])&.[](:match) if settings_provided?(settings)
44
+ else
45
+ result = emails
46
+ end
47
+
48
+ return result
49
+ end
50
+
51
+ def settings_provided?(settings = {})
52
+ settings && !settings.empty?
53
+ end
54
+
55
+ def log(message)
56
+ puts "[Email::Verification] - #{Time.now.to_s}: #{message}" if self.configuration.verbose
57
+ end
58
+
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,12 @@
1
+ module Email
2
+ module Verification
3
+ class Configuration
4
+ attr_accessor :verbose
5
+
6
+ def initialize
7
+ self.verbose = false
8
+ end
9
+
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,104 @@
1
+ gmail:
2
+ - gmail.com
3
+
4
+ hotmail:
5
+ - hotmail.be
6
+ - hotmail.ca
7
+ - hotmail.cl
8
+ - hotmail.co.id
9
+ - hotmail.co.il
10
+ - hotmail.co.in
11
+ - hotmail.co.jp
12
+ - hotmail.co.kr
13
+ - hotmail.co.th
14
+ - hotmail.co.uk
15
+ - hotmail.co.za
16
+ - hotmail.com
17
+ - hotmail.com.ar
18
+ - hotmail.com.au
19
+ - hotmail.com.br
20
+ - hotmail.com.hk
21
+ - hotmail.com.tr
22
+ - hotmail.com.tw
23
+ - hotmail.com.vn
24
+ - hotmail.cz
25
+ - hotmail.de
26
+ - hotmail.dk
27
+ - hotmail.es
28
+ - hotmail.fi
29
+ - hotmail.fr
30
+ - hotmail.gr
31
+ - hotmail.hu
32
+ - hotmail.it
33
+ - hotmail.lt
34
+ - hotmail.lv
35
+ - hotmail.my
36
+ - hotmail.nl
37
+ - hotmail.no
38
+ - hotmail.ph
39
+ - hotmail.rs
40
+ - hotmail.se
41
+ - hotmail.sg
42
+ - hotmail.sk
43
+ - live.at
44
+ - live.be
45
+ - live.ca
46
+ - live.cl
47
+ - live.cn
48
+ - live.co.kr
49
+ - live.co.uk
50
+ - live.co.za
51
+ - live.com
52
+ - live.com.ar
53
+ - live.com.au
54
+ - live.com.mx
55
+ - live.com.my
56
+ - live.com.ph
57
+ - live.com.pt
58
+ - live.com.sg
59
+ - live.de
60
+ - live.dk
61
+ - live.fi
62
+ - live.fr
63
+ - live.hk
64
+ - live.ie
65
+ - live.in
66
+ - live.it
67
+ - live.jp
68
+ - live.nl
69
+ - live.no
70
+ - live.ru
71
+ - live.se
72
+ - livemail.tw
73
+ - outlook.at
74
+ - outlook.be
75
+ - outlook.cl
76
+ - outlook.co.id
77
+ - outlook.co.il
78
+ - outlook.co.th
79
+ - outlook.com
80
+ - outlook.com.ar
81
+ - outlook.com.au
82
+ - outlook.com.br
83
+ - outlook.com.gr
84
+ - outlook.com.tr
85
+ - outlook.com.vn
86
+ - outlook.cz
87
+ - outlook.de
88
+ - outlook.dk
89
+ - outlook.es
90
+ - outlook.fr
91
+ - outlook.hu
92
+ - outlook.ie
93
+ - outlook.in
94
+ - outlook.it
95
+ - outlook.jp
96
+ - outlook.kr
97
+ - outlook.lv
98
+ - outlook.my
99
+ - outlook.ph
100
+ - outlook.pt
101
+ - outlook.sa
102
+ - outlook.sg
103
+ - outlook.sk
104
+ - windowslive.com
@@ -0,0 +1,44 @@
1
+ module Email
2
+ module Verification
3
+ class Gmail < Base
4
+
5
+ def retrieve_verification_code(email:, password:, mark_as_read: true, mailboxes: [], settings: {})
6
+ emails = []
7
+ result = nil
8
+
9
+ begin
10
+ args = settings_provided?(settings) ? {from: settings[:address]} : {}
11
+
12
+ ::Gmail.connect(email, password) do |gmail|
13
+ gmail.inbox.emails(args).each do |email|
14
+ log("Email - from: #{email.from.first.name}, subject: #{email.subject}")
15
+
16
+ if settings_provided?(settings)
17
+ if email.from.first.name == settings[:from] && email.subject =~ settings[:subject]
18
+ emails << (email.html_part || email.text_part || email).body.decoded
19
+ email.read! if mark_as_read
20
+ end
21
+ else
22
+ emails << (email.html_part || email.text_part || email).body.decoded
23
+ email.read! if mark_as_read
24
+ end
25
+ end
26
+ end
27
+
28
+ rescue Net::IMAP::BadResponseError => e
29
+ raise ArgumentError, "You need to enable logins for less secure apps in Gmail for #{email}!"
30
+ end
31
+
32
+ if settings_provided?(settings)
33
+ message = emails.last&.to_s
34
+ result = message&.match(settings[:regex])&.[](:match)
35
+ else
36
+ result = emails
37
+ end
38
+
39
+ return result
40
+ end
41
+
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,11 @@
1
+ module Email
2
+ module Verification
3
+ class Hotmail < Base
4
+
5
+ def retrieve_verification_code(email:, password:, settings: {})
6
+ super(email: email, password: password, host: "outlook.office365.com", port: 993, enable_ssl: true, mailboxes: %w(Inbox Junk), settings: settings)
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,50 @@
1
+ module Email
2
+ module Verification
3
+ class Verifier
4
+ attr_accessor :mapping
5
+
6
+ def initialize
7
+ set_mapping
8
+ end
9
+
10
+ def set_mapping
11
+ mappings_path = File.join(File.dirname(__FILE__), "data/domains.yml")
12
+
13
+ if ::File.exists?(mappings_path)
14
+ self.mapping = YAML.load_file(mappings_path)
15
+ end
16
+ end
17
+
18
+ def retrieve_verification_code(email:, password:, mailboxes: %w(Inbox), settings: {})
19
+ service = determine_email_service(email)
20
+
21
+ verifier = case service
22
+ when :gmail
23
+ ::Email::Verification::Gmail.new
24
+ when :hotmail
25
+ ::Email::Verification::Hotmail.new
26
+ else
27
+ nil
28
+ end
29
+
30
+ result = verifier ? verifier.retrieve_verification_code(email: email, password: password, mailboxes: mailboxes, settings: settings) : nil
31
+ end
32
+
33
+ def determine_email_service(email_address)
34
+ email_domain = email_address&.split('@')&.last&.strip
35
+
36
+ detected_service = catch(:service_detection) do
37
+ self.mapping.each do |service, domains|
38
+ if domains.include?(email_domain)
39
+ detected_service = service.to_sym
40
+ throw :service_detection, detected_service
41
+ end
42
+ end unless email_domain.to_s.empty?
43
+ end
44
+
45
+ return detected_service
46
+ end
47
+
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,5 @@
1
+ module Email
2
+ module Verification
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: email-verification
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sebastian Johnsson
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-07-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gmail
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.7.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.7.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.17'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.12.2
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.12.2
83
+ description: Verify email addresses using Gmail, Hotmail etc.
84
+ email:
85
+ - sebastian.johnsson@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - Gemfile.lock
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - email-verification.gemspec
102
+ - lib/email/verification.rb
103
+ - lib/email/verification/base.rb
104
+ - lib/email/verification/configuration.rb
105
+ - lib/email/verification/data/domains.yml
106
+ - lib/email/verification/gmail.rb
107
+ - lib/email/verification/hotmail.rb
108
+ - lib/email/verification/verifier.rb
109
+ - lib/email/verification/version.rb
110
+ homepage: https://github.com/SebastianJ/email-verification
111
+ licenses:
112
+ - MIT
113
+ metadata:
114
+ homepage_uri: https://github.com/SebastianJ/email-verification
115
+ source_code_uri: https://github.com/SebastianJ/email-verification
116
+ changelog_uri: https://github.com/SebastianJ/email-verification/CHANGELOG.md
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubygems_version: 3.0.3
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: Email verification gem
136
+ test_files: []