customers_mail_cloud 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52ace0a622b1296cfaf753148596ae5dbc4353b003b47dab9281918b967b4d4b
4
- data.tar.gz: 19068e35c021e5439f4a2ecb8e583ca2fc15d24f971c755f445a1f8082c3cac8
3
+ metadata.gz: 7cdbca25fe57436409f8390d3ab6dc5a61fe8540ba2abab0604e906e2be332ad
4
+ data.tar.gz: 545610d4b3b4db204a841e7f56599543ed9dd25224c3cf05fff3c98f232c55fd
5
5
  SHA512:
6
- metadata.gz: f83b5986d9996d2ef206091e73c393258dd9698b353912709533e6f5ddcba3972ca8ad883b7064490e3b9dd90ee8bc46e0adaf99533ef6b2ac9e93421911e859
7
- data.tar.gz: bbc629ed5f045b77f37dbc6eb18f56b9efb09a2f1842b1cc3fd401b366c8ec0263b0e8701244e61d88546c23f12222c3af195f889b8913d361514f921b225c62
6
+ metadata.gz: 2b9b17b636422c284695ec6fe05e9f553f30c3d599b47934dc917136a917a6c97739155a3f4af5ba11c57886fbec25935621817fc9328134314f31987b3e2c5f
7
+ data.tar.gz: b7b38ad6e256d39a3f93a2e63d949a4ea2a86d71930ca368fbdc41bda1959f2e369a1f02969d645d4097fe9f953e79d8f45fd4b80873fa604adbac12cc6f784f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- customers_mail_cloud (0.2.0)
4
+ customers_mail_cloud (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,10 +19,14 @@ module CustomersMailCloud
19
19
  @subject = ''
20
20
  @text = ''
21
21
  @html = ''
22
+ @envfrom = nil
23
+ @replyto = 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,11 @@ module CustomersMailCloud
63
67
  subject: @subject,
64
68
  text: @text
65
69
  }
66
- params.html = @html if self.html != ''
70
+ params[:envfrom] = @envfrom if @envfrom
71
+ params[:replyto] = @replyto if @replyto
72
+ params[:headers] = @headers if @headers.size > 0
73
+ params[:charset] = @charset if @charset != 'UTF-8'
74
+ params[:html] = @html if @html != ''
67
75
  headers = {
68
76
  'Content-Type': 'application/json',
69
77
  'Accept': 'application/json'
@@ -1,3 +1,3 @@
1
1
  module CustomersMailCloud
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atsushi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-25 00:00:00.000000000 Z
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.0.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: []