mail-gpg 0.2.3 → 0.2.4
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 -0
- data/History.txt +5 -0
- data/lib/mail/gpg.rb +1 -1
- data/lib/mail/gpg/version.rb +1 -1
- data/mail-gpg.gemspec +1 -1
- data/test/inline_decrypted_message_test.rb +2 -2
- data/test/message_test.rb +2 -0
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17026bb359e9e8681f5e61e5fbc2b53ede7daa68
|
4
|
+
data.tar.gz: 084f875fc24201c8f074c27c8029e6b77ec6bb9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 893411f59ec0483c471d40ef7501948543f8405be9a3138c458d8728bbe8a8da480bf84a8cc298a99ce8f16038ef888162f6e65289c37003c29582d9f17f2830
|
7
|
+
data.tar.gz: b859c9850ec90f8a9877b34db7d3a89918ad46c7f3331073caf01dec216e6cd62e82ce3e17105e584d611ef7c26315a38d62ec05bb5a6514cce911661d7cd068
|
data/.travis.yml
CHANGED
data/History.txt
CHANGED
data/lib/mail/gpg.rb
CHANGED
@@ -101,7 +101,7 @@ module Mail
|
|
101
101
|
end
|
102
102
|
|
103
103
|
STANDARD_HEADERS = %w(from to cc bcc reply_to subject in_reply_to return_path message_id)
|
104
|
-
MORE_HEADERS = %w(Auto-Submitted References)
|
104
|
+
MORE_HEADERS = %w(Auto-Submitted List-Id List-Unsubscribe References)
|
105
105
|
|
106
106
|
private
|
107
107
|
|
data/lib/mail/gpg/version.rb
CHANGED
data/mail-gpg.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency "mail", "~> 2.5", ">= 2.5.3"
|
22
22
|
spec.add_dependency "gpgme", "~> 2.0", ">= 2.0.2"
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
-
spec.add_development_dependency "
|
24
|
+
spec.add_development_dependency "test-unit", "~> 3.0"
|
25
25
|
spec.add_development_dependency "rake"
|
26
26
|
spec.add_development_dependency "actionmailer", ">= 3.2.0"
|
27
27
|
spec.add_development_dependency "pry-nav"
|
@@ -76,7 +76,7 @@ class InlineDecryptedMessageTest < Test::Unit::TestCase
|
|
76
76
|
assert !decrypted.encrypted?
|
77
77
|
check_headers(@mail, decrypted)
|
78
78
|
assert_equal 2, decrypted.parts.length
|
79
|
-
assert_equal @mail.body, decrypted.parts[0].body.to_s
|
79
|
+
assert_equal @mail.body.to_s, decrypted.parts[0].body.to_s
|
80
80
|
assert /application\/octet-stream; (?:charset=UTF-8; )?name=Rakefile/ =~ decrypted.parts[1].content_type
|
81
81
|
assert_equal 'attachment; filename=Rakefile', decrypted.parts[1].content_disposition
|
82
82
|
assert_equal rakefile, decrypted.parts[1].body.decoded
|
@@ -108,7 +108,7 @@ class InlineDecryptedMessageTest < Test::Unit::TestCase
|
|
108
108
|
assert !decrypted.encrypted?
|
109
109
|
check_headers(@mail, decrypted)
|
110
110
|
assert_equal 2, decrypted.parts.length
|
111
|
-
assert_equal @mail.body, decrypted.parts[0].body.to_s
|
111
|
+
assert_equal @mail.body.to_s, decrypted.parts[0].body.to_s
|
112
112
|
assert /application\/octet-stream; (?:charset=UTF-8; )?name=Rakefile/ =~ decrypted.parts[1].content_type
|
113
113
|
assert_equal 'attachment; filename=Rakefile', decrypted.parts[1].content_disposition
|
114
114
|
assert_equal rakefile, decrypted.parts[1].body.decoded
|
data/test/message_test.rb
CHANGED
@@ -74,11 +74,13 @@ class MessageTest < Test::Unit::TestCase
|
|
74
74
|
context "" do
|
75
75
|
setup do
|
76
76
|
@mail.header['Auto-Submitted'] = 'foo'
|
77
|
+
@mail.header['List-Unsubscribe'] = 'bar'
|
77
78
|
@mail.deliver
|
78
79
|
end
|
79
80
|
|
80
81
|
should 'keep custom header value' do
|
81
82
|
assert_equal 'foo', @mails.first.header['Auto-Submitted'].value
|
83
|
+
assert_equal 'bar', @mails.first.header['List-Unsubscribe'].value
|
82
84
|
end
|
83
85
|
|
84
86
|
should "deliver signed mail" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail-gpg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Kraemer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|
@@ -65,19 +65,19 @@ dependencies:
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '1.3'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
68
|
+
name: test-unit
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '
|
73
|
+
version: '3.0'
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: '
|
80
|
+
version: '3.0'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: rake
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
210
|
rubyforge_project:
|
211
|
-
rubygems_version: 2.
|
211
|
+
rubygems_version: 2.4.5
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: GPG/MIME encryption plugin for the Ruby Mail Library
|
@@ -229,4 +229,3 @@ test_files:
|
|
229
229
|
- test/sign_part_test.rb
|
230
230
|
- test/test_helper.rb
|
231
231
|
- test/version_part_test.rb
|
232
|
-
has_rdoc:
|