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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bfc0ef3b48d1b6b251a2e169a4edeb2efe5c5050f607e28c8115d518687cfd0
4
- data.tar.gz: 5aee2a3e9a3c5e91a14f3c797052a732cb970efc85c28e84e9c0a66a239cc694
3
+ metadata.gz: 8e820f173303f3322674fe67b3bf7fc6468b376d15afa959feca090de32381f3
4
+ data.tar.gz: 5747036650daa9ad1a3d67fd8597d084fa6f78ddefd063293c7e61ce53431805
5
5
  SHA512:
6
- metadata.gz: 51e3e13d15f94c216d63590d2e3083aca69fc49e69e8a1e5d0c27e9c24f2ba138126723be707799bbce681d2e3ae99d6d47a7f3a30d736dc23fdceadfa594ad2
7
- data.tar.gz: 4467545c1bce338f68cb375d4f923f4a4d5f1128333c66328071a87afeb3b557c753dce6f237979a3016ddb0db98d60eb96cf524d4c0880879805100c3478504
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.1.gem) and [the OpenPGP-signature](https://schleuder.org/download/schleuder-3.5.1.gem.sig) and verify:
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.1.gem.sig
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.1.gem
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.1.tar.gz) and [its OpenPGP-signature](https://schleuder.org/download/schleuder-3.5.1.tar.gz.sig).
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).
@@ -1,4 +1,4 @@
1
- # default to ASCII-8BIT encoding as early as possible for external
1
+ # default to UTF-8 encoding as early as possible for external
2
2
  # data.
3
3
  #
4
4
  # this should ensure we are able to parse most incoming
@@ -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) if self.is_armored_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) if self.is_armored_key?(key_material)
118
+ list.import_key(key_material)
136
119
  end
137
120
  end
138
121
  end
@@ -1,3 +1,3 @@
1
1
  module Schleuder
2
- VERSION = '3.5.1'
2
+ VERSION = '3.5.2'
3
3
  end
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.1
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-04-15 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gpgme