sendcloud-mailer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/sendcloud-mailer.rb +1 -0
- data/lib/sendcloud-mailer/base.rb +6 -1
- data/lib/sendcloud-mailer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 014e4a0ba58b96091774e0ec629f6d4a372659ce
|
4
|
+
data.tar.gz: 552cd74b98e3682dbe775b10e56504845bc86757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac0610941d92a4f2b689fe4b9764b6def7afcb3ec42c2bbdc3bff470a66f0e6b6852661a513e7281abd59cbe13f9e995ff07b4af8a3eda31f01d7c1dc9f9045
|
7
|
+
data.tar.gz: 38d30942f6ac169db04c439e8500c58e226ed361059f787af0afca2fcb70be7db69c37eaf5cdb28c349cbf097707b76a70769b5a8d478920a8d519e8ed2777f4
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/sendcloud-mailer.rb
CHANGED
@@ -21,7 +21,8 @@ module SendcloudMailer
|
|
21
21
|
:subject => mail.subject,
|
22
22
|
:html => html,
|
23
23
|
:plain => plain,
|
24
|
-
:attachments => attachments
|
24
|
+
:attachments => attachments,
|
25
|
+
:labelId => label_id
|
25
26
|
}
|
26
27
|
params.delete_if { |k, v| v.nil? }
|
27
28
|
|
@@ -82,5 +83,9 @@ module SendcloudMailer
|
|
82
83
|
return @file
|
83
84
|
end
|
84
85
|
end
|
86
|
+
|
87
|
+
def label_id
|
88
|
+
@mail.header.fields.find { |f| f.name == 'label-id' }.try :value
|
89
|
+
end
|
85
90
|
end
|
86
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendcloud-mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chen, Yi-Cyuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|