customers_mail_cloud 0.3.0 → 0.4.1
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/Gemfile.lock +1 -1
- data/lib/customers_mail_cloud/client.rb +14 -2
- data/lib/customers_mail_cloud/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c95b89e617570c8ae5e7c893be1269fe1489f0798ad8ab260b8b5eee0e33160d
|
|
4
|
+
data.tar.gz: a95b8e4f6fd5ba61f9447e988ad4eb644b595a26822bf3f27cd5568c9ebda2f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d6edca8868169adaac945f29e0d5296639e598b2666a2a80b5183e5652297cd7ec03f5aa426de9e68a543e58ee15cfeacac56e2b60ebdb780d544c24d15f492
|
|
7
|
+
data.tar.gz: 80ef7c14485e97bd3f067e951c9d8b072be4cd9ed628deb17ca9bcbe4626beb62f3a2147909c025e286aeb5b5c2e9d18ae9b3bc34eb44dd7d931e2af3a010876
|
data/Gemfile.lock
CHANGED
|
@@ -19,10 +19,14 @@ module CustomersMailCloud
|
|
|
19
19
|
@subject = ''
|
|
20
20
|
@text = ''
|
|
21
21
|
@html = ''
|
|
22
|
+
@env_from = nil
|
|
23
|
+
@reply_to = nil
|
|
24
|
+
@headers = {}
|
|
25
|
+
@charset = 'UTF-8'
|
|
22
26
|
@attachments = []
|
|
23
27
|
end
|
|
24
28
|
attr_accessor :api_user, :api_key, :to, :from,
|
|
25
|
-
:subject, :text, :html, :attachments
|
|
29
|
+
:subject, :text, :html, :envfrom, :replyto, :headers, :charset, :attachments
|
|
26
30
|
def trial
|
|
27
31
|
@url = @endpoints[:trial]
|
|
28
32
|
end
|
|
@@ -63,7 +67,15 @@ module CustomersMailCloud
|
|
|
63
67
|
subject: @subject,
|
|
64
68
|
text: @text
|
|
65
69
|
}
|
|
66
|
-
params
|
|
70
|
+
params[:envfrom] = @env_from if @env_from
|
|
71
|
+
params[:replyto] = @reply_to if @reply_to
|
|
72
|
+
if (@headers.empty?)
|
|
73
|
+
params[:headers] = @headers.map do |key, value|
|
|
74
|
+
{ name: key, value: value }
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
params[:charset] = @charset
|
|
78
|
+
params[:html] = @html if @html != ''
|
|
67
79
|
headers = {
|
|
68
80
|
'Content-Type': 'application/json',
|
|
69
81
|
'Accept': 'application/json'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: customers_mail_cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Atsushi
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-07-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby library for Customers Mail Cloud. Customers Mail Cloud is email
|
|
14
14
|
sending service provider that supports SMTP or Web API.
|
|
@@ -42,7 +42,7 @@ metadata:
|
|
|
42
42
|
homepage_uri: https://smtps.jp/
|
|
43
43
|
source_code_uri: https://github.com/goofmint/CustmersMailCloud-rb
|
|
44
44
|
changelog_uri: https://github.com/goofmint/CustmersMailCloud-rb/CHANGELOG
|
|
45
|
-
post_install_message:
|
|
45
|
+
post_install_message:
|
|
46
46
|
rdoc_options: []
|
|
47
47
|
require_paths:
|
|
48
48
|
- lib
|
|
@@ -57,8 +57,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
58
|
version: '0'
|
|
59
59
|
requirements: []
|
|
60
|
-
rubygems_version: 3.
|
|
61
|
-
signing_key:
|
|
60
|
+
rubygems_version: 3.4.9
|
|
61
|
+
signing_key:
|
|
62
62
|
specification_version: 4
|
|
63
63
|
summary: Ruby library for Customers Mail Cloud
|
|
64
64
|
test_files: []
|