emailfuse 0.1.1 → 0.1.3

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: 1274876b4b77ade250f0c715be10ce93cb49d931bf8f0d76416eee9bba06d895
4
+ data.tar.gz: 8dd9a41d488ba5208809541405c8c740018123cbb76107cf9189221a5eceebf9
5
5
  SHA512:
6
- metadata.gz: 4143f719a80cb4639c4be3f0936cd7d4c518c3f25811c775fcb5f590ccf4beb97a109ae63f8432cea562c70b25fa78ce19ceaca2f429402123a9d194930f2850
7
- data.tar.gz: 836eb683894f0575addb17ade8fca333f91bd747df92f3a6dc89fb871554b06677d8aabf7726d81dfa287392fef6405d6d4a0837fc48fb151e2e1572125e2c9d
6
+ metadata.gz: 74bd64f6dce3054139754fdd6d5c7102ac432ca8f7427ad6883f21c61ead4ae254b601573ab0fb3ba3f3fde7823ef9b6fd1217b794ce7b21f817b4c989db7b59
7
+ data.tar.gz: ede7dab82a61cae0ce9f2741f64491d9122679edd2034d8ede4fad88662db1188d8f52dd4e3a016e5a6d8b76f22c40d2d1e085d6c7239d68691f59257f9f690b
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
  ```
@@ -2,11 +2,11 @@ module Emailfuse
2
2
  class Client
3
3
  class << self
4
4
  def url
5
- Emailfuse.config.host || "https://api.emailfuse.net"
5
+ Emailfuse.config.host || "https://emailfuse.net"
6
6
  end
7
7
 
8
8
  def connection
9
- @connection ||= Faraday.new("#{url}/v1") do |conn|
9
+ @connection ||= Faraday.new("#{url}/api/v1") do |conn|
10
10
  conn.request :authorization, :Bearer, Emailfuse.config.token
11
11
 
12
12
  conn.headers = {
@@ -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.3"
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry