mail-gpg 0.2.5 → 0.2.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0013a726cc36fd4eb141aa3f8f20887f27dbfbfb
4
- data.tar.gz: 20eac895d6e3bc61712ebd63be00806421aa1618
3
+ metadata.gz: d9b7a9e0a92468331734266a6593036b8541560b
4
+ data.tar.gz: d8f57974921bc967db1c74b137642261f74a36c0
5
5
  SHA512:
6
- metadata.gz: 05870d215e2ecfa634e6eb81fe6d21ef9642cdcaead05e3373970c3eda1b711346a3a908deea9635c66c448b367e20a65679d36fa86dea681ed5a45b63db6b9f
7
- data.tar.gz: be35cf83e2cfbab24ec725a2dac1919196c3cd5cb238c5886d7d407f203edffac8d9f019e16e43c942f7672dd8e959863e506133323e062ca37452f989cd090f
6
+ metadata.gz: 8578a1a0906b5fee56751fc4d74ae00e6312106134e567633f2a35504c7cb24b676fda6c851074bf33fff8a0161682cfeef35275b2c62133471c0d6c6a730b84
7
+ data.tar.gz: 56ee2a97e4bc93d1847273a659b928fd6a9c5a70d393d338b6e1e6a092d48d1da8682d2b52cdc7caf5b7581731fa94a049d9c3dac22fb4744f4507b87a7b785a
@@ -1,3 +1,7 @@
1
+ == 0.2.6 2015-10-20
2
+
3
+ * fix handling of inline encrypted messages
4
+
1
5
  == 0.2.5 2015-09-30
2
6
 
3
7
  * allow overriding of encrypted attachment name (patch by @chrislewis60)
@@ -31,8 +31,9 @@ module Mail
31
31
  p.content_transfer_encoding Mail::Encodings::Base64
32
32
  p.body Mail::Encodings::Base64::encode(decrypted.to_s)
33
33
  else
34
- if part.body.include?('-----BEGIN PGP MESSAGE-----')
35
- decrypted = GpgmeHelper.decrypt(part.decoded, options)
34
+ body = part.body.decoded
35
+ if body.include?('-----BEGIN PGP MESSAGE-----')
36
+ decrypted = GpgmeHelper.decrypt(body, options)
36
37
  p.verify_result decrypted.verify_result if options[:verify]
37
38
  p.body decrypted.to_s
38
39
  else
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Gpg
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
4
4
  end
5
5
  end
Binary file
Binary file
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.5
4
+ version: 0.2.6
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-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail