mail-gpg 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/mail/gpg/inline_decrypted_message.rb +3 -2
- data/lib/mail/gpg/version.rb +1 -1
- data/test/gpghome/pubring.gpg +0 -0
- data/test/gpghome/pubring.gpg~ +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9b7a9e0a92468331734266a6593036b8541560b
|
4
|
+
data.tar.gz: d8f57974921bc967db1c74b137642261f74a36c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8578a1a0906b5fee56751fc4d74ae00e6312106134e567633f2a35504c7cb24b676fda6c851074bf33fff8a0161682cfeef35275b2c62133471c0d6c6a730b84
|
7
|
+
data.tar.gz: 56ee2a97e4bc93d1847273a659b928fd6a9c5a70d393d338b6e1e6a092d48d1da8682d2b52cdc7caf5b7581731fa94a049d9c3dac22fb4744f4507b87a7b785a
|
data/History.txt
CHANGED
@@ -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
|
-
|
35
|
-
|
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
|
data/lib/mail/gpg/version.rb
CHANGED
data/test/gpghome/pubring.gpg
CHANGED
Binary file
|
data/test/gpghome/pubring.gpg~
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|