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 +4 -4
- data/README.md +8 -12
- data/lib/emailfuse/client.rb +2 -2
- data/lib/emailfuse/version.rb +1 -1
- data/lib/emailfuse.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1274876b4b77ade250f0c715be10ce93cb49d931bf8f0d76416eee9bba06d895
|
4
|
+
data.tar.gz: 8dd9a41d488ba5208809541405c8c740018123cbb76107cf9189221a5eceebf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74bd64f6dce3054139754fdd6d5c7102ac432ca8f7427ad6883f21c61ead4ae254b601573ab0fb3ba3f3fde7823ef9b6fd1217b794ce7b21f817b4c989db7b59
|
7
|
+
data.tar.gz: ede7dab82a61cae0ce9f2741f64491d9122679edd2034d8ede4fad88662db1188d8f52dd4e3a016e5a6d8b76f22c40d2d1e085d6c7239d68691f59257f9f690b
|
data/README.md
CHANGED
@@ -1,26 +1,22 @@
|
|
1
|
-
#
|
1
|
+
# Emailfuse Gem
|
2
2
|
|
3
|
-
|
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 "
|
10
|
+
gem "emailfuse"
|
13
11
|
```
|
14
12
|
|
15
13
|
## Usage
|
16
14
|
|
17
|
-
|
15
|
+
Create an initializer file in `config/initializers/emailfuse.rb` with the following:
|
18
16
|
|
19
17
|
```ruby
|
20
|
-
config.action_mailer.delivery_method = :
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
```
|
data/lib/emailfuse/client.rb
CHANGED
@@ -2,11 +2,11 @@ module Emailfuse
|
|
2
2
|
class Client
|
3
3
|
class << self
|
4
4
|
def url
|
5
|
-
Emailfuse.config.host || "https://
|
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 = {
|
data/lib/emailfuse/version.rb
CHANGED
data/lib/emailfuse.rb
CHANGED