courier_rails 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ad674601255f7e729de16b884fd64550516ff2930e9c8388345ede8500df9a2e
4
+ data.tar.gz: ab171f926c7467b79f9406e657986d26cc852346225a542b82e7b1d9c0a9663a
5
+ SHA512:
6
+ metadata.gz: 0045eca096853ee403d58eaba3cef7e738a99cf0027b758af717bbbe25b81789d16d5286180a1ab049adfe762ecb643c27160f822cb9ad95ec00547c64a742c5
7
+ data.tar.gz: 3e81c4cc98fa208a4474780522d2454dc4dcf54624b3e8a284890c695b53e6892a036145cbeca3be94d055be9d8aa9431d2b38a33f8281f9ea22807b6eaebb43
@@ -0,0 +1,17 @@
1
+ ## Expected Behavior
2
+
3
+
4
+ ## Actual Behavior
5
+
6
+
7
+ ## Steps to Reproduce the Problem
8
+
9
+ 1.
10
+ 1.
11
+ 1.
12
+
13
+ ## Specifications
14
+
15
+ - Version:
16
+ - Platform:
17
+ - Subsystem:
@@ -0,0 +1,27 @@
1
+ ## Description of the change
2
+
3
+ > Description here
4
+
5
+ ## Type of change
6
+ - [ ] Bug fix (non-breaking change that fixes an issue)
7
+ - [ ] New feature (non-breaking change that adds functionality)
8
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
9
+
10
+ ## Related issues
11
+
12
+ > Fix [#1]()
13
+
14
+ ## Checklists
15
+
16
+ ### Development
17
+
18
+ - [ ] Lint rules pass locally
19
+ - [ ] The code changed/added as part of this pull request has been covered with tests
20
+ - [ ] All tests related to the changed code pass in development
21
+
22
+ ### Code review
23
+
24
+ - [ ] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
25
+ - [ ] "Ready for review" label attached to the PR and reviewers mentioned in a comment
26
+ - [ ] Changes have been reviewed by at least one other engineer
27
+ - [ ] Issue from task tracker has a link to this pull request
@@ -0,0 +1,33 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ tags:
7
+ - v*
8
+ pull_request:
9
+ branches: [main]
10
+
11
+ jobs:
12
+ build:
13
+ name: Build + Publish
14
+ if: startsWith(github.ref, 'refs/tags/v')
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v2
19
+ - name: Set up Ruby 2.6
20
+ uses: actions/setup-ruby@v1
21
+ with:
22
+ ruby-version: 2.6.x
23
+
24
+ - name: Publish to RubyGems
25
+ run: |
26
+ mkdir -p $HOME/.gem
27
+ touch $HOME/.gem/credentials
28
+ chmod 0600 $HOME/.gem/credentials
29
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
30
+ gem build *.gemspec
31
+ gem push *.gem
32
+ env:
33
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -0,0 +1,11 @@
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
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,10 @@
1
+ Style/StringLiterals:
2
+ Enabled: true
3
+ EnforcedStyle: double_quotes
4
+
5
+ Style/StringLiteralsInInterpolation:
6
+ Enabled: true
7
+ EnforcedStyle: double_quotes
8
+
9
+ Layout/LineLength:
10
+ Max: 120
@@ -0,0 +1,10 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ This project adheres to [Semantic Versioning](http://semver.org/).
5
+
6
+ ## [Unreleased][unreleased]
7
+
8
+ Initial release.
9
+
10
+ [unreleased]: https://github.com/trycourier/courier-ruby-rails/compare/HEAD...HEAD
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at aydrian@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in courier_rails.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 0.80"
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Aydrian Howard
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.
@@ -0,0 +1,108 @@
1
+ # Courier Rails
2
+
3
+ This gem provides seamless integration of Courier with ActionMailer. It provides a `delivery_method` based upon the [Courier API](https://docs.courier.com/reference), and makes getting setup and sending notifications in a Rails app using Courier easier.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'courier_rails'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ ## Configuration
18
+
19
+ Retrieve your [Courier Authentication Token](https://app.courier.com/settings/api-keys). By default, the gem will look for your token in your environment, with the key `COURIER_AUTH_TOKEN`. You can override this key by setting it manually in the file `config/initializers/courier_rails.rb`:
20
+
21
+ ```ruby
22
+ CourierRails.configure do |c|
23
+ c.api_key = 'your-auth-token'
24
+ end
25
+ ```
26
+
27
+ Then, edit `config/application.rb` or `config/environments/$ENVIRONMENT.rb` and add/change the following to the ActionMailer configuration:
28
+
29
+ ```ruby
30
+ config.action_mailer.delivery_method = :courier
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ Normal ActionMailer usage will now send notifications from the Courier template designer, using the Courier API:
36
+
37
+ ```ruby
38
+ data = {
39
+ event: "EVENT_ID",
40
+ recipient: "RECIPIENT_ID",
41
+ data: {
42
+ hello: "Rails!"
43
+ }
44
+ }
45
+
46
+ mail(to: "jane@doe.com", body: "not used", courier_data: data)
47
+ ```
48
+
49
+ The "body" parameter is required for ActionMailer, even though the email body is already described by the notification designer. You can also add `default body: not used` to the top of your mailer instead of this parameter.
50
+
51
+ The elements of "courier_data" are described below:
52
+
53
+ ### event (required)
54
+
55
+ The unique identification key of a notification template to be sent. If the notification is mapped to an event key, use the event key here instead.
56
+
57
+ ### recipient (optional)
58
+
59
+ The unique identification key attached to a recipient and their profile. If empty, the code will auto-generate a unique key.
60
+
61
+ ### profile (optional)
62
+
63
+ An object that includes the profile data attached to this message. For example,
64
+
65
+ ```ruby
66
+ c_data={
67
+ event: "your.event.key"
68
+ profile:{
69
+ phone_number: "555-123-4567",
70
+ name: "Jane Doe"
71
+ email: "jane@doe.com"
72
+ ...
73
+ }
74
+ }
75
+ mail(body: "not used", courier_data: c_data)
76
+ ```
77
+
78
+ As shown above, the recipient's email can be set inside of the profile instead of using the ActionMailer `to:"email"` parameter. When both are used, however, the "to" parameter overrides the profile email.
79
+
80
+ ### data (optional)
81
+
82
+ An object that includes any data you want to pass to a Courier template. The data will populate the corresponding template variables.
83
+
84
+ When calling the `deliver!` method on the mail object returned from your mailer. `CourierRails` provides the response data directly back from Courier in a `Courier::SendResponse` object.
85
+
86
+ ```ruby
87
+ result = MyMailer.welcome_message(user).deliver!
88
+ puts result.code // Status Code
89
+ puts result.message_id // Message ID
90
+ ```
91
+
92
+ ## Development
93
+
94
+ 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.
95
+
96
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
97
+
98
+ ## Contributing
99
+
100
+ Bug reports and pull requests are welcome on GitHub at https://github.com/trycourier/courier_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/trycourier/courier_rails/blob/master/CODE_OF_CONDUCT.md).
101
+
102
+ ## License
103
+
104
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
105
+
106
+ ## Code of Conduct
107
+
108
+ Everyone interacting in the CourierRails project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/trycourier/courier_rails/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "courier_rails"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
@@ -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,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/courier_rails/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "courier_rails"
7
+ spec.version = CourierRails::VERSION
8
+ spec.authors = ["Aydrian Howard"]
9
+ spec.email = ["aydrian@trycourier.com"]
10
+
11
+ spec.summary = "Courier for Rails"
12
+ spec.description = "Delivery Method for Rails ActionMailer to send notifications using the Courier API"
13
+ spec.homepage = "https://github.com/trycourier/courier-ruby-rails"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/trycourier/courier-ruby-rails"
21
+ spec.metadata["changelog_uri"] = "https://github.com/trycourier/courier-ruby-rails/blob/main/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ # spec.add_dependency "example-gem", "~> 1.0"
34
+ # spec.add_dependency "rails", ">= 4.0", "< 6.1"
35
+ spec.add_dependency "rails", "~> 6.1.0"
36
+ spec.add_dependency "trycourier"
37
+
38
+ # For more information and examples about making a new gem, checkout our
39
+ # guide at: https://bundler.io/guides/creating_gem.html
40
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+ require_relative "courier_rails/data_options"
3
+ require_relative "courier_rails/delivery_method"
4
+ require_relative "courier_rails/railtie"
5
+ require_relative "courier_rails/version"
6
+
7
+ module CourierRails
8
+ class << self
9
+ attr_accessor :configuration
10
+ end
11
+
12
+ def self.configuration
13
+ @configuration ||= Configuration.new
14
+ end
15
+
16
+ def self.configure
17
+ self.configuration ||= Configuration.new
18
+ yield(configuration)
19
+ end
20
+
21
+ class Configuration
22
+ attr_accessor :api_key
23
+
24
+ def initialize
25
+ set_defaults
26
+ end
27
+
28
+ def set_defaults
29
+ if ENV.has_key?("COURIER_AUTH_TOKEN")
30
+ @api_key = ENV["COURIER_AUTH_TOKEN"]
31
+ else
32
+ @api_key = ""
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,25 @@
1
+ module CourierRails
2
+ module DataOptions
3
+
4
+ def self.included(base)
5
+ base.class_eval do
6
+ prepend InstanceMethods
7
+ end
8
+ end
9
+
10
+ module InstanceMethods
11
+
12
+ def mail(headers={}, &block)
13
+ headers = headers.clone
14
+ courier_data = headers.delete(:courier_data)
15
+ courier_data ||= {}
16
+ super(headers, &block).tap do |message|
17
+ message.singleton_class.class_eval { attr_accessor "courier_data" }
18
+ message.courier_data = courier_data
19
+ end
20
+ end
21
+
22
+ end
23
+
24
+ end
25
+ end
@@ -0,0 +1,89 @@
1
+ module CourierRails
2
+ class DeliveryMethod
3
+ require "trycourier"
4
+ require "securerandom"
5
+
6
+ attr_accessor :settings, :payload, :response
7
+
8
+ def initialize(options = {})
9
+ @settings = options
10
+ end
11
+
12
+ def deliver!(mail)
13
+ @payload = {}
14
+
15
+ courier_data = find_courier_data_from mail
16
+
17
+ prepare_event_from courier_data
18
+ prepare_recipient_from mail, courier_data
19
+ prepare_profile_from mail, courier_data
20
+ prepare_data_from courier_data
21
+ prepare_brand_from courier_data
22
+
23
+ result = perfom_send_request
24
+
25
+ result
26
+ end
27
+
28
+ private
29
+
30
+ def client
31
+ ## TODO: Allow passed in Courier Data?
32
+ @client = Courier::Client.new CourierRails.configuration.api_key
33
+ end
34
+
35
+ def find_courier_data_from mail
36
+ mail.courier_data
37
+ end
38
+
39
+ def prepare_event_from courier_data
40
+ if courier_data.has_key?(:event)
41
+ @payload["event"] = courier_data[:event]
42
+ else
43
+ raise Exception.new "Must specify :event key in courier_data."
44
+ end
45
+ end
46
+
47
+ def prepare_recipient_from mail, courier_data
48
+ if courier_data.has_key?(:recipient)
49
+ @payload["recipient"] = courier_data[:recipient]
50
+ else
51
+ @payload["recipient"] = SecureRandom.uuid
52
+ end
53
+ end
54
+
55
+ def prepare_profile_from mail, courier_data
56
+ profile = {}
57
+ if courier_data.has_key?(:profile)
58
+ profile = courier_data[:profile]
59
+ end
60
+
61
+ if !mail.to.nil?
62
+ profile["email"] = mail.to.first
63
+ end
64
+
65
+ if !profile.empty?
66
+ @payload["profile"] = profile
67
+ end
68
+ end
69
+
70
+ def prepare_data_from courier_data
71
+ if courier_data.has_key?(:data)
72
+ @payload["data"] = courier_data[:data]
73
+ end
74
+ end
75
+
76
+ def prepare_brand_from courier_data
77
+ if courier_data.has_key?(:brand)
78
+ @payload["brand"] = courier_data[:brand]
79
+ end
80
+ end
81
+
82
+ def perfom_send_request
83
+ result = client.send(@payload)
84
+
85
+ result
86
+ end
87
+
88
+ end
89
+ end
@@ -0,0 +1,8 @@
1
+ module CourierRails
2
+ class DeliveryException < StandardError
3
+
4
+ def initialize(response)
5
+ super(response)
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,15 @@
1
+ module CourierRails
2
+ class Railtie < Rails::Railtie
3
+ initializer "courier_rails.add_delivery_method" do
4
+ ActiveSupport.on_load :action_mailer do
5
+ ActionMailer::Base.add_delivery_method :courier, CourierRails::DeliveryMethod, return_response: true
6
+ end
7
+ end
8
+
9
+ initializer "courier_rails.extend_with_data_options" do
10
+ ActiveSupport.on_load :action_mailer do
11
+ ActionMailer::Base.send :include, CourierRails::DataOptions
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CourierRails
4
+ VERSION = "0.1.3"
5
+ end
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: courier_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Aydrian Howard
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-12-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 6.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 6.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: trycourier
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Delivery Method for Rails ActionMailer to send notifications using the
42
+ Courier API
43
+ email:
44
+ - aydrian@trycourier.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".github/ISSUE_TEMPLATE.md"
50
+ - ".github/PULL_REQUEST_TEMPLATE.md"
51
+ - ".github/workflows/gem-push.yml"
52
+ - ".gitignore"
53
+ - ".rspec"
54
+ - ".rubocop.yml"
55
+ - CHANGELOG.md
56
+ - CODE_OF_CONDUCT.md
57
+ - Gemfile
58
+ - LICENSE.txt
59
+ - README.md
60
+ - Rakefile
61
+ - bin/console
62
+ - bin/setup
63
+ - courier_rails.gemspec
64
+ - lib/courier_rails.rb
65
+ - lib/courier_rails/data_options.rb
66
+ - lib/courier_rails/delivery_method.rb
67
+ - lib/courier_rails/exceptions.rb
68
+ - lib/courier_rails/railtie.rb
69
+ - lib/courier_rails/version.rb
70
+ homepage: https://github.com/trycourier/courier-ruby-rails
71
+ licenses:
72
+ - MIT
73
+ metadata:
74
+ homepage_uri: https://github.com/trycourier/courier-ruby-rails
75
+ source_code_uri: https://github.com/trycourier/courier-ruby-rails
76
+ changelog_uri: https://github.com/trycourier/courier-ruby-rails/blob/main/CHANGELOG.md
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: 2.3.0
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubygems_version: 3.0.3
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: Courier for Rails
96
+ test_files: []