mailpy 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailpy/version.rb +1 -1
- data/lib/mailpy.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba6e5cb49ef2945eb15ec71e4c82fc3a00b04fa611551de15222a693e192de7a
|
4
|
+
data.tar.gz: 996c89f4dc9fe937f64b8a764071840230f55972d0e7a1f43328fb2c09f1e541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cca3471d496cb3141b2ab8663ca1fecb750290657d3b8fbb3e438538d038c72839b98333039637754d3030b47b74ff2c9b3078855dd46f77fa7f253b15b4e41f
|
7
|
+
data.tar.gz: b48d73b9750ec27f9e67c0b095da3af32a322c9a6dee387a2b375936d550f9bab81f687b7805b46e855385aa9930735412f2607c493ec508e238acaf6615a4e2
|
data/lib/mailpy/version.rb
CHANGED
data/lib/mailpy.rb
CHANGED
@@ -22,7 +22,7 @@ module Mailpy
|
|
22
22
|
result = MailerApi.new(mail, settings).send
|
23
23
|
raise(MailpyDeliveryError, JSON.parse(result.body)['message']) unless result.code === 200
|
24
24
|
result
|
25
|
-
rescue Errno::ECONNREFUSED
|
25
|
+
rescue Errno::ECONNREFUSED, Mailpy::DeliveryMethod::MailpyDeliveryError
|
26
26
|
smtp_settings = Rails.application.config.action_mailer.smtp_settings
|
27
27
|
raise(MailpyDeliveryError, "SMTP miss configured. Please add SMTP configuration in your environment config") if smtp_settings.blank?
|
28
28
|
result = SMTPApi.new(mail, smtp_settings).send
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailpy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nasrul Gunawan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description: Action Mailer Adapter for
|
41
|
+
description: Action Mailer Adapter for Send Email Through HTTP APIs.
|
42
42
|
email:
|
43
43
|
- nasrul.remaza@gmail.com
|
44
44
|
executables: []
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
75
|
+
rubygems_version: 3.3.23
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Summary of Mailpy.
|