schleuder 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/schleuder.rb +1 -1
- data/lib/schleuder/plugins/key_management.rb +2 -19
- data/lib/schleuder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e820f173303f3322674fe67b3bf7fc6468b376d15afa959feca090de32381f3
|
4
|
+
data.tar.gz: 5747036650daa9ad1a3d67fd8597d084fa6f78ddefd063293c7e61ce53431805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 206b404982bec910328d1fb9b90eaa1c3f6b088da5acdaf2f7825a45401bc334938a71b6afb639f0a75b2e8e1b18a7af675213d05b1d60ea539d904fe4da9987
|
7
|
+
data.tar.gz: 3f4224d41d1b1de88e3b2648c378b7c09b5762d15ee38f9f45331317d749f0266c1cc9a11ffdec65f2907b8da340d20f6e1c3442f2a8dc7ce625c2b732ff3a2f
|
data/README.md
CHANGED
@@ -47,15 +47,15 @@ Additionally these **rubygems** are required (will be installed automatically un
|
|
47
47
|
Installing Schleuder
|
48
48
|
------------
|
49
49
|
|
50
|
-
1. Download [the gem](https://schleuder.org/download/schleuder-3.5.
|
50
|
+
1. Download [the gem](https://schleuder.org/download/schleuder-3.5.2.gem) and [the OpenPGP-signature](https://schleuder.org/download/schleuder-3.5.2.gem.sig) and verify:
|
51
51
|
```
|
52
52
|
gpg --recv-key 0xB3D190D5235C74E1907EACFE898F2C91E2E6E1F3
|
53
|
-
gpg --verify schleuder-3.5.
|
53
|
+
gpg --verify schleuder-3.5.2.gem.sig
|
54
54
|
```
|
55
55
|
|
56
56
|
2. If all went well install the gem:
|
57
57
|
```
|
58
|
-
gem install schleuder-3.5.
|
58
|
+
gem install schleuder-3.5.2.gem
|
59
59
|
```
|
60
60
|
|
61
61
|
3. Set up schleuder:
|
@@ -145,4 +145,4 @@ GNU GPL 3.0. Please see [LICENSE.txt](LICENSE.txt).
|
|
145
145
|
Alternative Download
|
146
146
|
--------------------
|
147
147
|
|
148
|
-
Alternatively to the gem-files you can download the latest release as [a tarball](https://schleuder.org/download/schleuder-3.5.
|
148
|
+
Alternatively to the gem-files you can download the latest release as [a tarball](https://schleuder.org/download/schleuder-3.5.2.tar.gz) and [its OpenPGP-signature](https://schleuder.org/download/schleuder-3.5.2.tar.gz.sig).
|
data/lib/schleuder.rb
CHANGED
@@ -104,35 +104,18 @@ module Schleuder
|
|
104
104
|
# helper methods
|
105
105
|
private
|
106
106
|
|
107
|
-
def self.is_armored_key?(material)
|
108
|
-
return false unless /^-----BEGIN PGP PUBLIC KEY BLOCK-----\r?$/ =~ material
|
109
|
-
return false unless /^-----END PGP PUBLIC KEY BLOCK-----\r?$/ =~ material
|
110
|
-
|
111
|
-
lines = material.split(/\r?\n/).reject(&:empty?)
|
112
|
-
# remove header
|
113
|
-
lines.shift
|
114
|
-
# remove tail
|
115
|
-
lines.pop
|
116
|
-
# verify the rest
|
117
|
-
# TODO: verify length except for lasts lines?
|
118
|
-
# headers according to https://tools.ietf.org/html/rfc4880#section-6.2
|
119
|
-
lines.map do |line|
|
120
|
-
/\A((comment|version|messageid|hash|charset):.*|[0-9a-z\/=+]+)\Z/i =~ line
|
121
|
-
end.all?
|
122
|
-
end
|
123
|
-
|
124
107
|
def self.import_keys_from_attachments(list, mail)
|
125
108
|
mail.attachments.map do |attachment|
|
126
109
|
material = attachment.body.to_s
|
127
110
|
|
128
|
-
list.import_key(material)
|
111
|
+
list.import_key(material)
|
129
112
|
end
|
130
113
|
end
|
131
114
|
|
132
115
|
def self.import_key_from_body(list, mail)
|
133
116
|
key_material = mail.first_plaintext_part.body.to_s
|
134
117
|
|
135
|
-
list.import_key(key_material)
|
118
|
+
list.import_key(key_material)
|
136
119
|
end
|
137
120
|
end
|
138
121
|
end
|
data/lib/schleuder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schleuder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schleuder dev team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gpgme
|