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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52ace0a622b1296cfaf753148596ae5dbc4353b003b47dab9281918b967b4d4b
4
- data.tar.gz: 19068e35c021e5439f4a2ecb8e583ca2fc15d24f971c755f445a1f8082c3cac8
3
+ metadata.gz: c95b89e617570c8ae5e7c893be1269fe1489f0798ad8ab260b8b5eee0e33160d
4
+ data.tar.gz: a95b8e4f6fd5ba61f9447e988ad4eb644b595a26822bf3f27cd5568c9ebda2f8
5
5
  SHA512:
6
- metadata.gz: f83b5986d9996d2ef206091e73c393258dd9698b353912709533e6f5ddcba3972ca8ad883b7064490e3b9dd90ee8bc46e0adaf99533ef6b2ac9e93421911e859
7
- data.tar.gz: bbc629ed5f045b77f37dbc6eb18f56b9efb09a2f1842b1cc3fd401b366c8ec0263b0e8701244e61d88546c23f12222c3af195f889b8913d361514f921b225c62
6
+ metadata.gz: 1d6edca8868169adaac945f29e0d5296639e598b2666a2a80b5183e5652297cd7ec03f5aa426de9e68a543e58ee15cfeacac56e2b60ebdb780d544c24d15f492
7
+ data.tar.gz: 80ef7c14485e97bd3f067e951c9d8b072be4cd9ed628deb17ca9bcbe4626beb62f3a2147909c025e286aeb5b5c2e9d18ae9b3bc34eb44dd7d931e2af3a010876
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.1)
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
+ @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.html = @html if self.html != ''
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'
@@ -1,3 +1,3 @@
1
1
  module CustomersMailCloud
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.1"
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.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: 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: []