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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.7 2014-06-03
2
+
3
+ * preserve References: header
4
+
1
5
  == 0.1.6 2014-05-30
2
6
 
3
7
  * preserve names in mail headers (i.e. Jane Doe <user@host.com>)
data/lib/mail/gpg.rb CHANGED
@@ -96,7 +96,7 @@ module Mail
96
96
  end
97
97
 
98
98
  STANDARD_HEADERS = %w(from to cc bcc reply_to subject in_reply_to return_path message_id)
99
- MORE_HEADERS = %w(Auto-Submitted)
99
+ MORE_HEADERS = %w(Auto-Submitted References)
100
100
 
101
101
  private
102
102
 
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Gpg
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
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 header' do
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.6
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-05-30 00:00:00.000000000 Z
12
+ date: 2014-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail