mail-gpg 0.1.6 → 0.1.7
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.
- data/History.txt +4 -0
- data/lib/mail/gpg.rb +1 -1
- data/lib/mail/gpg/version.rb +1 -1
- data/test/gpg_test.rb +3 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/mail/gpg.rb
CHANGED
data/lib/mail/gpg/version.rb
CHANGED
data/test/gpg_test.rb
CHANGED
@@ -110,10 +110,11 @@ class GpgTest < Test::Unit::TestCase
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
context 'mail with custom
|
113
|
+
context 'mail with custom headers' do
|
114
114
|
setup do
|
115
115
|
@mail.header['X-Custom-Header'] = 'custom value'
|
116
116
|
@mail.header['Return-Path'] = 'bounces@example.com'
|
117
|
+
@mail.header['References'] = 'some-message-id'
|
117
118
|
@signed = Mail::Gpg.sign(@mail, password: 'abc')
|
118
119
|
end
|
119
120
|
|
@@ -132,6 +133,7 @@ class GpgTest < Test::Unit::TestCase
|
|
132
133
|
should 'preserve customer header values' do
|
133
134
|
assert_equal 'custom value', @signed.header['X-Custom-Header'].to_s
|
134
135
|
assert_equal 'bounces@example.com', @signed.return_path
|
136
|
+
assert_equal 'some-message-id', @signed.header['References'].value
|
135
137
|
end
|
136
138
|
end
|
137
139
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail-gpg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mail
|