emailfuse 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10f6474788d0e55fd6b5acf21634b0400093ae064a2edea2bad4e24bf5492f23
4
- data.tar.gz: '0359d5d174aa60a50a152fa99d1846b314a61614ff54d016ed734536417f93d4'
3
+ metadata.gz: 9cbf4602cc744b6975dae3b8270edcf971935bb89d754d26d001f759ce22cf50
4
+ data.tar.gz: 6afb324f38ccef286802240b61e0b4bfc474a113fddcfafbdd2fda6852162119
5
5
  SHA512:
6
- metadata.gz: 4143f719a80cb4639c4be3f0936cd7d4c518c3f25811c775fcb5f590ccf4beb97a109ae63f8432cea562c70b25fa78ce19ceaca2f429402123a9d194930f2850
7
- data.tar.gz: 836eb683894f0575addb17ade8fca333f91bd747df92f3a6dc89fb871554b06677d8aabf7726d81dfa287392fef6405d6d4a0837fc48fb151e2e1572125e2c9d
6
+ metadata.gz: c63d05761c93746539005398cc1708a2206f9998d858ed8aef62b7d914bbfdb657960087c315f92fb3abdb96018d1ae5294ce40c199c81aaf6350d31d63feddd
7
+ data.tar.gz: 89a27c562f6195577b7942782462ff2fd294ff830e064714f6387c056a3e54ac3920b41fc5834f816b95cdbcffdba672b92466ed6fbe341eab3f750eb9323e05
data/README.md CHANGED
@@ -1,26 +1,22 @@
1
- # Voupe Emails
1
+ # Emailfuse Gem
2
2
 
3
- *email_fuse* is an Action Mailer adapter for using [Emails](https://github.com/voupe/emails) in Rails apps.
4
-
5
- It is a heavily modified version of the [mailgun_rails](https://github.com/jorgemanrubia/mailgun_rails) gem
3
+ An API wrapper for Emailfuse, including a Rails Action Mailer adapter.
6
4
 
7
5
  ## Installing
8
6
 
9
7
  In your `Gemfile`
10
8
 
11
9
  ```ruby
12
- gem "email_fuse"
10
+ gem "emailfuse"
13
11
  ```
14
12
 
15
13
  ## Usage
16
14
 
17
- To configure your VoupeEmails credentials place the following code in the corresponding environment file (`development.rb`, `production.rb`...)
15
+ Create an initializer file in `config/initializers/emailfuse.rb` with the following:
18
16
 
19
17
  ```ruby
20
- config.action_mailer.delivery_method = :email_fuse
21
- config.action_mailer.email_fuse_settings = {
22
- api_token: "abc",
23
- host: "your.host.com",
24
- ssl: true
25
- }
18
+ config.action_mailer.delivery_method = :emailfuse
19
+ Emailfuse.configure do |config|
20
+ config.token = ENV["EMAILFUSE_TOKEN"]
21
+ end
26
22
  ```
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Emailfuse
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/emailfuse.rb CHANGED
@@ -3,6 +3,8 @@ require "action_mailer"
3
3
  require "faraday"
4
4
  require "faraday/multipart"
5
5
 
6
+ require "emailfuse/version"
7
+
6
8
  module Emailfuse
7
9
  autoload :Configuration, "emailfuse/configuration"
8
10
  autoload :Client, "emailfuse/client"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emailfuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry