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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f2bdd9267f91e61670a13871264ff5147b4a94d
4
- data.tar.gz: 21e4caa89623e7ae09a0e56dfe529d86d6733104
3
+ metadata.gz: 17026bb359e9e8681f5e61e5fbc2b53ede7daa68
4
+ data.tar.gz: 084f875fc24201c8f074c27c8029e6b77ec6bb9e
5
5
  SHA512:
6
- metadata.gz: c36bc5f37255e7eb1af591b72c056b6a47fc69df10a554344d2cc22c47cf794888fa7f2d7d00e9e86795953f279bbf0e2c220ff80b650f46a99807f4dd021d7e
7
- data.tar.gz: 0d69b3db9aebe8ef48f542d061d044a1bc9300ad72319ddfd5b0f6610ee246cb3e3d26ea7a624faccb4ac41e1768878f5b3fd0f3bb2817854695fd9089254fa4
6
+ metadata.gz: 893411f59ec0483c471d40ef7501948543f8405be9a3138c458d8728bbe8a8da480bf84a8cc298a99ce8f16038ef888162f6e65289c37003c29582d9f17f2830
7
+ data.tar.gz: b859c9850ec90f8a9877b34db7d3a89918ad46c7f3331073caf01dec216e6cd62e82ce3e17105e584d611ef7c26315a38d62ec05bb5a6514cce911661d7cd068
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.2.2
3
4
  - 2.1.1
4
5
  - 2.0.0
5
6
  - 1.9.3
@@ -1,3 +1,8 @@
1
+ == 0.2.4 2015-04-20
2
+
3
+ * preserve List-Id and List-Unsubscribe headers
4
+ * run tests on travis under Ruby 2.2.2
5
+
1
6
  == 0.2.3 2015-02-18
2
7
 
3
8
  * inline pgp detection now ignores signature.asc attachments
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Gpg
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -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 "minitest", "~> 4.0"
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
@@ -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.3
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-02-18 00:00:00.000000000 Z
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: minitest
68
+ name: test-unit
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '4.0'
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: '4.0'
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.2.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: