monkey-mail 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: cc33ad55c156f230de1e3da84dfb1a531b6aa1b2f77ff4c5d6ae26445c24c424
4
+ data.tar.gz: 1fe3b2936b6f433b7668a546bdf0796e2d9d9af147667ed3b23e6403a1827a83
5
+ SHA512:
6
+ metadata.gz: a0023b52f0765ba02a97dfd558fa6119234a45cc8f16757210ccf1d5c33fb88df74cc8a1158d0dc48a8585863d41a10d85e1982e0a1c6da37cd08b478aabccc4
7
+ data.tar.gz: 9207a648ef10e9d71ad08dbd87b426680c4d3b6bd7403cedefa8bb329fce85045169e982e65575534e3efa6c144ab733842c47471804e97eb01ef781db914751
@@ -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 i.demukh@appodeal.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 drill.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,11 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+
5
+ PLATFORMS
6
+ ruby
7
+
8
+ DEPENDENCIES
9
+
10
+ BUNDLED WITH
11
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 TODO: Write your name
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,43 @@
1
+ # Monkey-mail
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/monkey_mail`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'monkey-mail'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install monkey-mail
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/monkey_mail. 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.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Monkey_mail project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/monkey_mail/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,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'monkey_mail'
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.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
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
Binary file
@@ -0,0 +1,30 @@
1
+ require 'erb'
2
+
3
+ module MonkeyMail
4
+ module Clients
5
+ class BaseClient
6
+ def render_template(template_name:, vars: {})
7
+ @template_name = template_name
8
+ @vars = vars
9
+ { 'html' => render_fake_template }
10
+ end
11
+
12
+ private
13
+
14
+ def render_fake_template
15
+ ERB.new(fake_template).result(binding)
16
+ end
17
+
18
+ def fake_template
19
+ %(
20
+ <h1> Template: <%= @template_name %> </h1>
21
+ <h2> Variables </h2>
22
+ <ul>
23
+ <% @vars.each do |var| %>
24
+ <li><b><%= var %></b></li>
25
+ <% end %>
26
+ </ul>)
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,37 @@
1
+ require 'rest_client'
2
+ require 'monkey_mail/clients/base_client'
3
+
4
+ module MonkeyMail
5
+ module Clients
6
+ class MailgunClient < BaseClient
7
+ attr_reader :api_key, :domain
8
+
9
+ def initialize(api_key, domain)
10
+ @api_key = api_key
11
+ @domain = domain
12
+ end
13
+
14
+ def send_template(template_name:, subject:, from_email:, from_name:, to:, vars:)
15
+ payload = { :from => "#{from_name} <#{from_email}>",
16
+ :to => to.join(', '),
17
+ :subject => subject,
18
+ :template => template_name,
19
+ 't:variables' => vars.to_json }
20
+
21
+ RestClient::Request.execute(method: :post,
22
+ url: messages_url,
23
+ payload: payload)
24
+ end
25
+
26
+ private
27
+
28
+ def messages_url
29
+ "#{api_url}/messages"
30
+ end
31
+
32
+ def api_url
33
+ "https://api:#{api_key}@api.mailgun.net/v3/#{domain}"
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,57 @@
1
+ require 'rest_client'
2
+
3
+ module MonkeyMail
4
+ module Clients
5
+ class MandrillClient
6
+ attr_reader :api_key
7
+
8
+ def initialize(api_key)
9
+ @api_key = api_key
10
+ end
11
+
12
+ def send_template(template_name:, subject:, from_email:, from_name:, to:, vars:)
13
+ message = { from_email: from_email,
14
+ from_name: from_name,
15
+ to: prepare_to(to),
16
+ subject: subject,
17
+ global_merge_vars: prepate_vars(vars) }
18
+
19
+ RestClient::Request.execute(method: :post,
20
+ url: template_messages_url,
21
+ payload: { key: api_key, template_name: template_name, template_content: [],
22
+ message: message })
23
+ end
24
+
25
+ def render_template(template_name:, vars:)
26
+ RestClient::Request.execute(method: :post,
27
+ url: template_render_url,
28
+ payload: { key: api_key, template_name: template_name, template_content: [],
29
+ merge_vars: prepate_vars(vars) })
30
+ end
31
+
32
+ private
33
+
34
+ def prepate_vars(vars)
35
+ vars.map do |name, content|
36
+ { name: name.to_s.upcase, content: content }
37
+ end
38
+ end
39
+
40
+ def prepare_recipient(to)
41
+ [{ email: to, type: 'to' }]
42
+ end
43
+
44
+ def template_messages_url
45
+ "#{api_url}/messages/send-template"
46
+ end
47
+
48
+ def template_render_url
49
+ "#{api_url}/templates/render"
50
+ end
51
+
52
+ def api_url
53
+ 'https://mandrillapp.com/api/1.0'
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,12 @@
1
+ # require 'sidekiq'
2
+
3
+ module MonkeyMail
4
+ class DeliveryWorker
5
+ # include ActiveJob::Base
6
+ # queue_as :monkey_mail
7
+
8
+ # def perform(params)
9
+ # client.send_template(**params.except!(:wait))
10
+ # end
11
+ end
12
+ end
@@ -0,0 +1,19 @@
1
+ module MonkeyMail
2
+ class Base
3
+ attr_reader :params
4
+
5
+ def initialize(params)
6
+ @params = params
7
+ end
8
+
9
+ private
10
+
11
+ def delivery_params
12
+ params.except(:skip_delivery)
13
+ end
14
+
15
+ def render_template_params
16
+ params.slice(:template_name, :vars)
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'monkey_mail/mail/base'
4
+
5
+ module MonkeyMail
6
+ module Mail
7
+ class Default < Base
8
+ def deliver
9
+ return if params[:skip_delivery]
10
+
11
+ MonkeyMail.client.send_template(**delivery_params)
12
+ end
13
+
14
+ def deliver_later(wait: nil)
15
+ return if params[:skip_delivery]
16
+
17
+ raise NotImplementedError
18
+
19
+ # TODO
20
+ # if wait
21
+ # worker.perform_in(wait.to_i, template_name, message_hash)
22
+ # else
23
+ # worker.perform_async(template_name, message_hash)
24
+ # end
25
+ end
26
+
27
+ private
28
+
29
+ def worker
30
+ MonkeyMail::DeliveryWorker
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'mail'
4
+ require 'letter_opener'
5
+ require 'letter_opener_web' if defined?(Rails)
6
+ require 'monkey_mail/mail/base'
7
+
8
+ module MonkeyMail
9
+ module Mail
10
+ class LetterOpener < Base
11
+ attr_accessor :mail
12
+
13
+ def deliver
14
+ return if params[:skip_delivery]
15
+
16
+ prepare_mail!
17
+ delivery_method.deliver!(mail)
18
+ end
19
+
20
+ def deliver_later(wait: nil)
21
+ deliver
22
+ end
23
+
24
+ private
25
+
26
+ def delivery_method
27
+ case MonkeyMail.configuration.delivery_method
28
+ when :letter_opener
29
+ ::LetterOpener::DeliveryMethod.new
30
+ when :letter_opener_web
31
+ ::LetterOpenerWeb::DeliveryMethod.new
32
+ end
33
+ end
34
+
35
+ def prepare_mail!
36
+ @mail = ::Mail.new
37
+ mail.to = params[:to]
38
+ mail.from = params[:from_email]
39
+ mail.sender = params[:from_name]
40
+ mail.content_type = 'text/html'
41
+ mail.body = render_html
42
+ end
43
+
44
+ def render_html
45
+ MonkeyMail.client.render_template(**render_template_params)['html']
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,21 @@
1
+ module MonkeyMail
2
+ module Mail
3
+ autoload :Default, 'monkey_mail/mail/default'
4
+ autoload :LetterOpener, 'monkey_mail/mail/letter_opener'
5
+
6
+ module_function
7
+
8
+ def new(params)
9
+ mail.new(params)
10
+ end
11
+
12
+ def mail
13
+ case MonkeyMail.configuration.delivery_method
14
+ when :letter_opener, :letter_opener_web
15
+ LetterOpener
16
+ else
17
+ Default
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'monkey_mail/mail'
4
+
5
+ module MonkeyMail
6
+ class Mailer
7
+ PERMITTED_PARAM_KYES = %i[subject from_name from_email to vars template_name skip_delivery].freeze
8
+
9
+ attr_reader :action_name
10
+
11
+ class << self
12
+ private
13
+
14
+ def method_missing(method, *args)
15
+ super unless respond_to_missing?(method)
16
+
17
+ new(method).public_send(method, *args)
18
+ end
19
+
20
+ def respond_to_missing?(method, include_all = false)
21
+ public_instance_methods(false).include?(method) || super
22
+ end
23
+ end
24
+
25
+ def initialize(action_name)
26
+ @action_name = action_name
27
+ end
28
+
29
+ def mail(params = {})
30
+ params[:template_name] = template_name(params)
31
+
32
+ result_params = MonkeyMail.configuration.default_mail_parameters.dup
33
+ result_params.merge!(vars: vars_from_instance_variables)
34
+ result_params.merge!(params)
35
+ result_params[:to] = [params[:to]] if params[:to].is_a? String
36
+ result_params = permitted_params(result_params)
37
+
38
+ Mail.new(result_params)
39
+ end
40
+
41
+ private
42
+
43
+ def template_name(params)
44
+ template_name ||= params[:template_name] || action_name
45
+ template_name = "#{template_name}_#{params[:locale]}" if params[:locale]
46
+ template_name
47
+ end
48
+
49
+ def permitted_params(params)
50
+ params.slice(*PERMITTED_PARAM_KYES)
51
+ end
52
+
53
+ def vars_from_instance_variables
54
+ permitted_instance_variables
55
+ .each.with_object({}) do |instance_variable, vars|
56
+ name = instance_variable.to_s.sub('@', '').to_sym
57
+ content = instance_variable_get(instance_variable)
58
+
59
+ vars[name] = content
60
+ end
61
+ end
62
+
63
+ def permitted_instance_variables
64
+ instance_variables - %i[@action_name]
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,3 @@
1
+ module MonkeyMail
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'monkey_mail/version'
4
+ require 'monkey_mail/mailer'
5
+ require 'monkey_mail/clients/mailgun_client'
6
+ require 'monkey_mail/clients/mandrill_client'
7
+ require 'monkey_mail/delivery_worker'
8
+
9
+ module MonkeyMail
10
+ Configuration = Struct.new(
11
+ :provider, :api_key, :domain, :delivery_method, :default_mail_parameters,
12
+ keyword_init: true
13
+ )
14
+
15
+ module_function
16
+
17
+ def configuration
18
+ @configuration ||= Configuration.new(
19
+ delivery_method: :default,
20
+ default_mail_parameters: {}
21
+ )
22
+ end
23
+
24
+ def configure
25
+ yield configuration
26
+ end
27
+
28
+ def client
29
+ @client ||= __send__("#{configuration.provider}_client")
30
+ end
31
+
32
+ def mandrill_client
33
+ MonkeyMail::Clients::MandrillClient.new(configuration.api_key)
34
+ end
35
+
36
+ def mailgun_client
37
+ MonkeyMail::Clients::MailgunClient.new(configuration.api_key, configuration.domain)
38
+ end
39
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'monkey_mail/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'monkey-mail'
9
+ spec.version = MonkeyMail::VERSION
10
+ spec.authors = ['']
11
+ spec.email = ['']
12
+
13
+ spec.summary = 'ActionMailer like gem for mandrill & mailgun'
14
+ spec.description = 'ActionMailer like gem for mandrill & mailgun'
15
+ spec.homepage = 'https://github.com/wwwermishel/monkey_mail'
16
+ spec.license = 'MIT'
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = 'exe'
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ['lib']
26
+
27
+ spec.add_development_dependency 'letter_opener', '~> 1.8'
28
+ spec.add_development_dependency 'letter_opener_web', '~> 2.0'
29
+ spec.add_development_dependency 'mail', '~> 2.7'
30
+ spec.add_development_dependency 'rest-client', '~> 2.1'
31
+
32
+ spec.add_development_dependency 'bundler', '~> 2.4'
33
+ spec.add_development_dependency 'rake', '~> 13.0'
34
+ spec.add_development_dependency 'rspec', '~> 3.12'
35
+ spec.add_development_dependency 'rubocop', '~> 1.45'
36
+ end
metadata ADDED
@@ -0,0 +1,176 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: monkey-mail
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - ''
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-03-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: letter_opener
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: letter_opener_web
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mail
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.7'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.7'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rest-client
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.4'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '13.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '13.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.12'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.12'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.45'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.45'
125
+ description: ActionMailer like gem for mandrill & mailgun
126
+ email:
127
+ - ''
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - CODE_OF_CONDUCT.md
133
+ - Gemfile
134
+ - Gemfile.lock
135
+ - LICENSE.txt
136
+ - README.md
137
+ - Rakefile
138
+ - bin/console
139
+ - bin/setup
140
+ - lib/monkey_mail.rb
141
+ - lib/monkey_mail/.DS_Store
142
+ - lib/monkey_mail/clients/base_client.rb
143
+ - lib/monkey_mail/clients/mailgun_client.rb
144
+ - lib/monkey_mail/clients/mandrill_client.rb
145
+ - lib/monkey_mail/delivery_worker.rb
146
+ - lib/monkey_mail/mail.rb
147
+ - lib/monkey_mail/mail/base.rb
148
+ - lib/monkey_mail/mail/default.rb
149
+ - lib/monkey_mail/mail/letter_opener.rb
150
+ - lib/monkey_mail/mailer.rb
151
+ - lib/monkey_mail/version.rb
152
+ - monkey_mail.gemspec
153
+ homepage: https://github.com/wwwermishel/monkey_mail
154
+ licenses:
155
+ - MIT
156
+ metadata: {}
157
+ post_install_message:
158
+ rdoc_options: []
159
+ require_paths:
160
+ - lib
161
+ required_ruby_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ required_rubygems_version: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ requirements: []
172
+ rubygems_version: 3.2.3
173
+ signing_key:
174
+ specification_version: 4
175
+ summary: ActionMailer like gem for mandrill & mailgun
176
+ test_files: []