sup 0.22.1 → 1.1
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 +5 -5
- data/.github/workflows/checks.yml +70 -0
- data/.gitignore +1 -3
- data/.rubocop.yml +5 -0
- data/CONTRIBUTORS +14 -5
- data/Gemfile +6 -1
- data/History.txt +76 -0
- data/Manifest.txt +149 -0
- data/README.md +32 -5
- data/Rakefile +40 -1
- data/bin/sup +7 -5
- data/bin/sup-add +16 -20
- data/bin/sup-config +30 -44
- data/bin/sup-dump +2 -2
- data/bin/sup-import-dump +4 -4
- data/bin/sup-sync +3 -3
- data/bin/sup-sync-back-maildir +2 -2
- data/bin/sup-tweak-labels +5 -5
- data/ext/mkrf_conf_xapian.rb +10 -4
- data/lib/sup/colormap.rb +1 -1
- data/lib/sup/crypto.rb +17 -8
- data/lib/sup/hook.rb +9 -9
- data/lib/sup/index.rb +20 -7
- data/lib/sup/keymap.rb +1 -1
- data/lib/sup/logger.rb +1 -1
- data/lib/sup/maildir.rb +4 -4
- data/lib/sup/mbox.rb +4 -4
- data/lib/sup/message.rb +26 -15
- data/lib/sup/message_chunks.rb +29 -20
- data/lib/sup/mode.rb +1 -0
- data/lib/sup/modes/completion_mode.rb +0 -1
- data/lib/sup/modes/contact_list_mode.rb +1 -0
- data/lib/sup/modes/file_browser_mode.rb +2 -2
- data/lib/sup/modes/label_list_mode.rb +1 -1
- data/lib/sup/modes/reply_mode.rb +3 -1
- data/lib/sup/modes/search_list_mode.rb +2 -2
- data/lib/sup/modes/thread_index_mode.rb +1 -1
- data/lib/sup/modes/thread_view_mode.rb +15 -13
- data/lib/sup/rfc2047.rb +21 -6
- data/lib/sup/source.rb +9 -3
- data/lib/sup/textfield.rb +0 -1
- data/lib/sup/thread.rb +0 -1
- data/lib/sup/util/axe.rb +17 -0
- data/lib/sup/util/ncurses.rb +3 -3
- data/lib/sup/util.rb +42 -67
- data/lib/sup/version.rb +10 -1
- data/lib/sup.rb +13 -8
- data/man/sup-add.1 +34 -55
- data/man/sup-config.1 +23 -36
- data/man/sup-dump.1 +25 -35
- data/man/sup-import-dump.1 +33 -54
- data/man/sup-psych-ify-config-files.1 +25 -34
- data/man/sup-recover-sources.1 +34 -49
- data/man/sup-sync-back-maildir.1 +39 -60
- data/man/sup-sync.1 +49 -79
- data/man/sup-tweak-labels.1 +35 -58
- data/man/sup.1 +50 -62
- data/sup.gemspec +12 -9
- data/test/dummy_source.rb +21 -15
- data/test/fixtures/embedded-message.eml +34 -0
- data/test/fixtures/mailing-list-header.eml +80 -0
- data/test/fixtures/non-ascii-header-in-nested-message.eml +36 -0
- data/test/fixtures/non-ascii-header.eml +8 -0
- data/test/fixtures/rfc2047-header-encoding.eml +15 -0
- data/test/fixtures/text-attachments-with-charset.eml +60 -0
- data/test/fixtures/utf8-header.eml +17 -0
- data/test/fixtures/zimbra-quote-with-bottom-post.eml +27 -0
- data/test/gnupg_test_home/gpg.conf +2 -1
- data/test/gnupg_test_home/private-keys-v1.d/306D2EE90FF0014B5B9FD07E265C751791674140.key +0 -0
- data/test/gnupg_test_home/pubring.gpg +0 -0
- data/test/gnupg_test_home/receiver_pubring.gpg +0 -0
- data/test/gnupg_test_home/receiver_secring.gpg +0 -0
- data/test/gnupg_test_home/regen_keys.sh +69 -18
- data/test/gnupg_test_home/secring.gpg +0 -0
- data/test/gnupg_test_home/sup-test-2@foo.bar.asc +20 -22
- data/test/integration/test_mbox.rb +1 -1
- data/test/integration/test_sup-add.rb +83 -0
- data/test/test_crypto.rb +46 -0
- data/test/test_header_parsing.rb +9 -1
- data/test/test_helper.rb +7 -4
- data/test/test_message.rb +188 -22
- data/test/test_messages_dir.rb +13 -15
- data/test/unit/test_horizontal_selector.rb +4 -4
- data/test/unit/test_locale_fiddler.rb +1 -1
- data/test/unit/util/test_query.rb +10 -4
- data/test/unit/util/test_string.rb +9 -3
- data/test/unit/util/test_uri.rb +2 -2
- metadata +93 -51
- data/.travis.yml +0 -13
- data/bin/sup-psych-ify-config-files +0 -21
- data/test/gnupg_test_home/key1.gen +0 -15
- data/test/gnupg_test_home/key2.gen +0 -15
- data/test/gnupg_test_home/key_ecc.gen +0 -13
- data/test/gnupg_test_home/private-keys-v1.d/719C7455A7169C6EE8819C6E91002E4F9DD00A65.key +0 -1
- data/test/gnupg_test_home/private-keys-v1.d/8A130806A754AA29D59487D76BD355040D9F26C0.key +0 -0
- data/test/gnupg_test_home/private-keys-v1.d/B7AA46B22BD8A6AD1B4F266C19A3B124A32DDD71.key +0 -0
- data/test/gnupg_test_home/private-keys-v1.d/FA64ACD7CC871371BDF57285A6CDF0E618827783.key +0 -0
- data/test/integration/test_label_service.rb +0 -18
- data/test/test_yaml_migration.rb +0 -85
metadata
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: '1.1'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Morgan
|
|
8
8
|
- Gaute Hope
|
|
9
9
|
- Hamish Downer
|
|
10
10
|
- Matthieu Rakotojaona
|
|
11
|
-
autorequire:
|
|
11
|
+
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2022-05-23 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: ncursesw
|
|
@@ -28,19 +28,25 @@ dependencies:
|
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
29
|
version: 1.4.0
|
|
30
30
|
- !ruby/object:Gem::Dependency
|
|
31
|
-
name: rmail
|
|
31
|
+
name: rmail
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
|
33
33
|
requirements:
|
|
34
|
-
- - "
|
|
34
|
+
- - ">="
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
|
-
version: 1.
|
|
36
|
+
version: 1.1.2
|
|
37
|
+
- - "<"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '2'
|
|
37
40
|
type: :runtime
|
|
38
41
|
prerelease: false
|
|
39
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
43
|
requirements:
|
|
41
|
-
- - "
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 1.1.2
|
|
47
|
+
- - "<"
|
|
42
48
|
- !ruby/object:Gem::Version
|
|
43
|
-
version:
|
|
49
|
+
version: '2'
|
|
44
50
|
- !ruby/object:Gem::Dependency
|
|
45
51
|
name: highline
|
|
46
52
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -56,19 +62,19 @@ dependencies:
|
|
|
56
62
|
- !ruby/object:Gem::Version
|
|
57
63
|
version: '0'
|
|
58
64
|
- !ruby/object:Gem::Dependency
|
|
59
|
-
name:
|
|
65
|
+
name: optimist
|
|
60
66
|
requirement: !ruby/object:Gem::Requirement
|
|
61
67
|
requirements:
|
|
62
68
|
- - ">="
|
|
63
69
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: '
|
|
70
|
+
version: '0'
|
|
65
71
|
type: :runtime
|
|
66
72
|
prerelease: false
|
|
67
73
|
version_requirements: !ruby/object:Gem::Requirement
|
|
68
74
|
requirements:
|
|
69
75
|
- - ">="
|
|
70
76
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: '
|
|
77
|
+
version: '0'
|
|
72
78
|
- !ruby/object:Gem::Dependency
|
|
73
79
|
name: lockfile
|
|
74
80
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -115,16 +121,16 @@ dependencies:
|
|
|
115
121
|
name: chronic
|
|
116
122
|
requirement: !ruby/object:Gem::Requirement
|
|
117
123
|
requirements:
|
|
118
|
-
- - "
|
|
124
|
+
- - ">="
|
|
119
125
|
- !ruby/object:Gem::Version
|
|
120
|
-
version: 0
|
|
126
|
+
version: '0'
|
|
121
127
|
type: :runtime
|
|
122
128
|
prerelease: false
|
|
123
129
|
version_requirements: !ruby/object:Gem::Requirement
|
|
124
130
|
requirements:
|
|
125
|
-
- - "
|
|
131
|
+
- - ">="
|
|
126
132
|
- !ruby/object:Gem::Version
|
|
127
|
-
version: 0
|
|
133
|
+
version: '0'
|
|
128
134
|
- !ruby/object:Gem::Dependency
|
|
129
135
|
name: unicode
|
|
130
136
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -139,20 +145,40 @@ dependencies:
|
|
|
139
145
|
- - "~>"
|
|
140
146
|
- !ruby/object:Gem::Version
|
|
141
147
|
version: 0.4.4
|
|
148
|
+
- !ruby/object:Gem::Dependency
|
|
149
|
+
name: unicode-display_width
|
|
150
|
+
requirement: !ruby/object:Gem::Requirement
|
|
151
|
+
requirements:
|
|
152
|
+
- - ">="
|
|
153
|
+
- !ruby/object:Gem::Version
|
|
154
|
+
version: '0'
|
|
155
|
+
type: :runtime
|
|
156
|
+
prerelease: false
|
|
157
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
158
|
+
requirements:
|
|
159
|
+
- - ">="
|
|
160
|
+
- !ruby/object:Gem::Version
|
|
161
|
+
version: '0'
|
|
142
162
|
- !ruby/object:Gem::Dependency
|
|
143
163
|
name: bundler
|
|
144
164
|
requirement: !ruby/object:Gem::Requirement
|
|
145
165
|
requirements:
|
|
146
|
-
- - "
|
|
166
|
+
- - ">="
|
|
147
167
|
- !ruby/object:Gem::Version
|
|
148
168
|
version: '1.3'
|
|
169
|
+
- - "<"
|
|
170
|
+
- !ruby/object:Gem::Version
|
|
171
|
+
version: '3'
|
|
149
172
|
type: :development
|
|
150
173
|
prerelease: false
|
|
151
174
|
version_requirements: !ruby/object:Gem::Requirement
|
|
152
175
|
requirements:
|
|
153
|
-
- - "
|
|
176
|
+
- - ">="
|
|
154
177
|
- !ruby/object:Gem::Version
|
|
155
178
|
version: '1.3'
|
|
179
|
+
- - "<"
|
|
180
|
+
- !ruby/object:Gem::Version
|
|
181
|
+
version: '3'
|
|
156
182
|
- !ruby/object:Gem::Dependency
|
|
157
183
|
name: rake
|
|
158
184
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -173,14 +199,14 @@ dependencies:
|
|
|
173
199
|
requirements:
|
|
174
200
|
- - "~>"
|
|
175
201
|
- !ruby/object:Gem::Version
|
|
176
|
-
version: 5.5
|
|
202
|
+
version: '5.5'
|
|
177
203
|
type: :development
|
|
178
204
|
prerelease: false
|
|
179
205
|
version_requirements: !ruby/object:Gem::Requirement
|
|
180
206
|
requirements:
|
|
181
207
|
- - "~>"
|
|
182
208
|
- !ruby/object:Gem::Version
|
|
183
|
-
version: 5.5
|
|
209
|
+
version: '5.5'
|
|
184
210
|
- !ruby/object:Gem::Dependency
|
|
185
211
|
name: rr
|
|
186
212
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -223,6 +249,20 @@ dependencies:
|
|
|
223
249
|
- - ">="
|
|
224
250
|
- !ruby/object:Gem::Version
|
|
225
251
|
version: '0'
|
|
252
|
+
- !ruby/object:Gem::Dependency
|
|
253
|
+
name: rubocop-packaging
|
|
254
|
+
requirement: !ruby/object:Gem::Requirement
|
|
255
|
+
requirements:
|
|
256
|
+
- - ">="
|
|
257
|
+
- !ruby/object:Gem::Version
|
|
258
|
+
version: '0'
|
|
259
|
+
type: :development
|
|
260
|
+
prerelease: false
|
|
261
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
262
|
+
requirements:
|
|
263
|
+
- - ">="
|
|
264
|
+
- !ruby/object:Gem::Version
|
|
265
|
+
version: '0'
|
|
226
266
|
description: |2
|
|
227
267
|
Sup is a console-based email client for people with a lot of email.
|
|
228
268
|
|
|
@@ -239,7 +279,6 @@ executables:
|
|
|
239
279
|
- sup-config
|
|
240
280
|
- sup-dump
|
|
241
281
|
- sup-import-dump
|
|
242
|
-
- sup-psych-ify-config-files
|
|
243
282
|
- sup-recover-sources
|
|
244
283
|
- sup-sync
|
|
245
284
|
- sup-sync-back-maildir
|
|
@@ -247,25 +286,27 @@ executables:
|
|
|
247
286
|
extensions:
|
|
248
287
|
- ext/mkrf_conf_xapian.rb
|
|
249
288
|
extra_rdoc_files:
|
|
250
|
-
- man/sup-
|
|
251
|
-
- man/sup-sync.1
|
|
252
|
-
- man/sup-psych-ify-config-files.1
|
|
289
|
+
- man/sup-add.1
|
|
253
290
|
- man/sup-config.1
|
|
254
|
-
- man/sup-import-dump.1
|
|
255
291
|
- man/sup-dump.1
|
|
256
|
-
- man/sup-
|
|
257
|
-
- man/sup-
|
|
292
|
+
- man/sup-import-dump.1
|
|
293
|
+
- man/sup-psych-ify-config-files.1
|
|
258
294
|
- man/sup-recover-sources.1
|
|
295
|
+
- man/sup-sync-back-maildir.1
|
|
296
|
+
- man/sup-sync.1
|
|
297
|
+
- man/sup-tweak-labels.1
|
|
259
298
|
- man/sup.1
|
|
260
299
|
files:
|
|
300
|
+
- ".github/workflows/checks.yml"
|
|
261
301
|
- ".gitignore"
|
|
262
302
|
- ".gitmodules"
|
|
263
|
-
- ".
|
|
303
|
+
- ".rubocop.yml"
|
|
264
304
|
- CONTRIBUTORS
|
|
265
305
|
- Gemfile
|
|
266
306
|
- HACKING
|
|
267
307
|
- History.txt
|
|
268
308
|
- LICENSE
|
|
309
|
+
- Manifest.txt
|
|
269
310
|
- README.md
|
|
270
311
|
- Rakefile
|
|
271
312
|
- ReleaseNotes
|
|
@@ -274,7 +315,6 @@ files:
|
|
|
274
315
|
- bin/sup-config
|
|
275
316
|
- bin/sup-dump
|
|
276
317
|
- bin/sup-import-dump
|
|
277
|
-
- bin/sup-psych-ify-config-files
|
|
278
318
|
- bin/sup-recover-sources
|
|
279
319
|
- bin/sup-sync
|
|
280
320
|
- bin/sup-sync-back-maildir
|
|
@@ -351,6 +391,7 @@ files:
|
|
|
351
391
|
- lib/sup/undo.rb
|
|
352
392
|
- lib/sup/update.rb
|
|
353
393
|
- lib/sup/util.rb
|
|
394
|
+
- lib/sup/util/axe.rb
|
|
354
395
|
- lib/sup/util/locale_fiddler.rb
|
|
355
396
|
- lib/sup/util/ncurses.rb
|
|
356
397
|
- lib/sup/util/path.rb
|
|
@@ -373,37 +414,38 @@ files:
|
|
|
373
414
|
- test/fixtures/binary-content-transfer-encoding-2.eml
|
|
374
415
|
- test/fixtures/blank-header-fields.eml
|
|
375
416
|
- test/fixtures/contacts.txt
|
|
417
|
+
- test/fixtures/embedded-message.eml
|
|
418
|
+
- test/fixtures/mailing-list-header.eml
|
|
376
419
|
- test/fixtures/malicious-attachment-names.eml
|
|
377
420
|
- test/fixtures/missing-from-to.eml
|
|
378
421
|
- test/fixtures/missing-line.eml
|
|
379
422
|
- test/fixtures/multi-part-2.eml
|
|
380
423
|
- test/fixtures/multi-part.eml
|
|
381
424
|
- test/fixtures/no-body.eml
|
|
425
|
+
- test/fixtures/non-ascii-header-in-nested-message.eml
|
|
426
|
+
- test/fixtures/non-ascii-header.eml
|
|
427
|
+
- test/fixtures/rfc2047-header-encoding.eml
|
|
382
428
|
- test/fixtures/simple-message.eml
|
|
429
|
+
- test/fixtures/text-attachments-with-charset.eml
|
|
430
|
+
- test/fixtures/utf8-header.eml
|
|
431
|
+
- test/fixtures/zimbra-quote-with-bottom-post.eml
|
|
383
432
|
- test/gnupg_test_home/.gpg-v21-migrated
|
|
384
433
|
- test/gnupg_test_home/gpg.conf
|
|
385
|
-
- test/gnupg_test_home/
|
|
386
|
-
- test/gnupg_test_home/key2.gen
|
|
387
|
-
- test/gnupg_test_home/key_ecc.gen
|
|
388
|
-
- test/gnupg_test_home/private-keys-v1.d/719C7455A7169C6EE8819C6E91002E4F9DD00A65.key
|
|
389
|
-
- test/gnupg_test_home/private-keys-v1.d/8A130806A754AA29D59487D76BD355040D9F26C0.key
|
|
390
|
-
- test/gnupg_test_home/private-keys-v1.d/B7AA46B22BD8A6AD1B4F266C19A3B124A32DDD71.key
|
|
391
|
-
- test/gnupg_test_home/private-keys-v1.d/FA64ACD7CC871371BDF57285A6CDF0E618827783.key
|
|
434
|
+
- test/gnupg_test_home/private-keys-v1.d/306D2EE90FF0014B5B9FD07E265C751791674140.key
|
|
392
435
|
- test/gnupg_test_home/pubring.gpg
|
|
393
436
|
- test/gnupg_test_home/receiver_pubring.gpg
|
|
394
437
|
- test/gnupg_test_home/receiver_secring.gpg
|
|
395
438
|
- test/gnupg_test_home/regen_keys.sh
|
|
396
439
|
- test/gnupg_test_home/secring.gpg
|
|
397
440
|
- test/gnupg_test_home/sup-test-2@foo.bar.asc
|
|
398
|
-
- test/integration/test_label_service.rb
|
|
399
441
|
- test/integration/test_maildir.rb
|
|
400
442
|
- test/integration/test_mbox.rb
|
|
443
|
+
- test/integration/test_sup-add.rb
|
|
401
444
|
- test/test_crypto.rb
|
|
402
445
|
- test/test_header_parsing.rb
|
|
403
446
|
- test/test_helper.rb
|
|
404
447
|
- test/test_message.rb
|
|
405
448
|
- test/test_messages_dir.rb
|
|
406
|
-
- test/test_yaml_migration.rb
|
|
407
449
|
- test/test_yaml_regressions.rb
|
|
408
450
|
- test/unit/service/test_label_service.rb
|
|
409
451
|
- test/unit/test_contact.rb
|
|
@@ -413,9 +455,9 @@ files:
|
|
|
413
455
|
- test/unit/util/test_query.rb
|
|
414
456
|
- test/unit/util/test_string.rb
|
|
415
457
|
- test/unit/util/test_uri.rb
|
|
416
|
-
homepage:
|
|
458
|
+
homepage: https://sup-heliotrope.github.io/
|
|
417
459
|
licenses:
|
|
418
|
-
- GPL-2
|
|
460
|
+
- GPL-2.0
|
|
419
461
|
metadata: {}
|
|
420
462
|
post_install_message: |
|
|
421
463
|
SUP: please note that our old mailing lists have been shut down,
|
|
@@ -440,9 +482,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
440
482
|
- !ruby/object:Gem::Version
|
|
441
483
|
version: '0'
|
|
442
484
|
requirements: []
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
signing_key:
|
|
485
|
+
rubygems_version: 3.2.22
|
|
486
|
+
signing_key:
|
|
446
487
|
specification_version: 4
|
|
447
488
|
summary: A console-based email client with the best features of GMail, mutt and Emacs
|
|
448
489
|
test_files:
|
|
@@ -451,37 +492,38 @@ test_files:
|
|
|
451
492
|
- test/fixtures/binary-content-transfer-encoding-2.eml
|
|
452
493
|
- test/fixtures/blank-header-fields.eml
|
|
453
494
|
- test/fixtures/contacts.txt
|
|
495
|
+
- test/fixtures/embedded-message.eml
|
|
496
|
+
- test/fixtures/mailing-list-header.eml
|
|
454
497
|
- test/fixtures/malicious-attachment-names.eml
|
|
455
498
|
- test/fixtures/missing-from-to.eml
|
|
456
499
|
- test/fixtures/missing-line.eml
|
|
457
500
|
- test/fixtures/multi-part-2.eml
|
|
458
501
|
- test/fixtures/multi-part.eml
|
|
459
502
|
- test/fixtures/no-body.eml
|
|
503
|
+
- test/fixtures/non-ascii-header-in-nested-message.eml
|
|
504
|
+
- test/fixtures/non-ascii-header.eml
|
|
505
|
+
- test/fixtures/rfc2047-header-encoding.eml
|
|
460
506
|
- test/fixtures/simple-message.eml
|
|
507
|
+
- test/fixtures/text-attachments-with-charset.eml
|
|
508
|
+
- test/fixtures/utf8-header.eml
|
|
509
|
+
- test/fixtures/zimbra-quote-with-bottom-post.eml
|
|
461
510
|
- test/gnupg_test_home/.gpg-v21-migrated
|
|
462
511
|
- test/gnupg_test_home/gpg.conf
|
|
463
|
-
- test/gnupg_test_home/
|
|
464
|
-
- test/gnupg_test_home/key2.gen
|
|
465
|
-
- test/gnupg_test_home/key_ecc.gen
|
|
466
|
-
- test/gnupg_test_home/private-keys-v1.d/719C7455A7169C6EE8819C6E91002E4F9DD00A65.key
|
|
467
|
-
- test/gnupg_test_home/private-keys-v1.d/8A130806A754AA29D59487D76BD355040D9F26C0.key
|
|
468
|
-
- test/gnupg_test_home/private-keys-v1.d/B7AA46B22BD8A6AD1B4F266C19A3B124A32DDD71.key
|
|
469
|
-
- test/gnupg_test_home/private-keys-v1.d/FA64ACD7CC871371BDF57285A6CDF0E618827783.key
|
|
512
|
+
- test/gnupg_test_home/private-keys-v1.d/306D2EE90FF0014B5B9FD07E265C751791674140.key
|
|
470
513
|
- test/gnupg_test_home/pubring.gpg
|
|
471
514
|
- test/gnupg_test_home/receiver_pubring.gpg
|
|
472
515
|
- test/gnupg_test_home/receiver_secring.gpg
|
|
473
516
|
- test/gnupg_test_home/regen_keys.sh
|
|
474
517
|
- test/gnupg_test_home/secring.gpg
|
|
475
518
|
- test/gnupg_test_home/sup-test-2@foo.bar.asc
|
|
476
|
-
- test/integration/test_label_service.rb
|
|
477
519
|
- test/integration/test_maildir.rb
|
|
478
520
|
- test/integration/test_mbox.rb
|
|
521
|
+
- test/integration/test_sup-add.rb
|
|
479
522
|
- test/test_crypto.rb
|
|
480
523
|
- test/test_header_parsing.rb
|
|
481
524
|
- test/test_helper.rb
|
|
482
525
|
- test/test_message.rb
|
|
483
526
|
- test/test_messages_dir.rb
|
|
484
|
-
- test/test_yaml_migration.rb
|
|
485
527
|
- test/test_yaml_regressions.rb
|
|
486
528
|
- test/unit/service/test_label_service.rb
|
|
487
529
|
- test/unit/test_contact.rb
|
data/.travis.yml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
|
|
3
|
-
rvm:
|
|
4
|
-
- 2.1.1
|
|
5
|
-
- 2.0.0
|
|
6
|
-
- 2.2.0
|
|
7
|
-
|
|
8
|
-
before_install:
|
|
9
|
-
- sudo apt-get update -qq
|
|
10
|
-
- sudo apt-get install -qq uuid-dev uuid libncursesw5-dev libncursesw5 gnupg2 pandoc
|
|
11
|
-
- git submodule update --init --recursive
|
|
12
|
-
|
|
13
|
-
script: bundle exec rake travis
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
|
4
|
-
|
|
5
|
-
require "sup"
|
|
6
|
-
require "fileutils"
|
|
7
|
-
|
|
8
|
-
if RUBY_VERSION >= "2.1"
|
|
9
|
-
puts "YAML migration is deprecated by Ruby 2.1 and newer."
|
|
10
|
-
exit
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
Redwood.start
|
|
14
|
-
|
|
15
|
-
fn = Redwood::SOURCE_FN
|
|
16
|
-
FileUtils.cp fn, "#{fn}.syck_bak"
|
|
17
|
-
|
|
18
|
-
Redwood::SourceManager.load_sources fn
|
|
19
|
-
Redwood::SourceManager.save_sources fn, true
|
|
20
|
-
|
|
21
|
-
Redwood.finish
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
%echo Generating a standard key
|
|
2
|
-
Key-Type: DSA
|
|
3
|
-
Key-Length: 1024
|
|
4
|
-
Subkey-Type: ELG-E
|
|
5
|
-
Subkey-Length: 1024
|
|
6
|
-
Name-Real: Sup Test Sender 1
|
|
7
|
-
Name-Comment: Test sender key
|
|
8
|
-
Name-Email: sup-test-1@foo.bar
|
|
9
|
-
Expire-Date: 1y
|
|
10
|
-
%no-protection
|
|
11
|
-
%pubring pubring.gpg
|
|
12
|
-
%secring secring.gpg
|
|
13
|
-
# Do a commit here, so that we can later print "done" :-)
|
|
14
|
-
%commit
|
|
15
|
-
%echo done
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
%echo Generating a standard key
|
|
2
|
-
Key-Type: DSA
|
|
3
|
-
Key-Length: 1024
|
|
4
|
-
Subkey-Type: ELG-E
|
|
5
|
-
Subkey-Length: 1024
|
|
6
|
-
Name-Real: Sup Test Receiver
|
|
7
|
-
Name-Comment: Test receiver for Sup
|
|
8
|
-
Name-Email: sup-test-2@foo.bar
|
|
9
|
-
Expire-Date: 1y
|
|
10
|
-
%no-protection
|
|
11
|
-
%pubring pubring.gpg
|
|
12
|
-
%secring secring.gpg
|
|
13
|
-
# Do a commit here, so that we can later print "done" :-)
|
|
14
|
-
%commit
|
|
15
|
-
%echo done
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
%echo Generating a standard key
|
|
2
|
-
Key-Type: eddsa
|
|
3
|
-
Key-Curve: Ed25519
|
|
4
|
-
Name-Real: Sup Test ECC
|
|
5
|
-
Name-Comment: Test ECC key
|
|
6
|
-
Name-Email: sup-test-ecc@foo.bar
|
|
7
|
-
Expire-Date: 1y
|
|
8
|
-
%no-protection
|
|
9
|
-
%pubring pubring.gpg
|
|
10
|
-
%secring secring.gpg
|
|
11
|
-
# Do a commit here, so that we can later print "done" :-)
|
|
12
|
-
%commit
|
|
13
|
-
%echo done
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(11:private-key(3:ecc(5:curve7:Ed25519)(5:flags5:eddsa)(1:q33:@�R���:_��eݒ�٥�K����28iA-�t)(1:d32:��}�����y���U����D��h��T��@)))
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
require "test_helper"
|
|
2
|
-
|
|
3
|
-
require "sup/service/label_service"
|
|
4
|
-
|
|
5
|
-
require "tmpdir"
|
|
6
|
-
|
|
7
|
-
describe Redwood::LabelService do
|
|
8
|
-
let(:tmpdir) { Dir.mktmpdir }
|
|
9
|
-
after do
|
|
10
|
-
require "fileutils"
|
|
11
|
-
FileUtils.remove_entry_secure @tmpdir unless @tmpdir.nil?
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
describe "#add_labels" do
|
|
15
|
-
# Integration tests are hard to write at this moment :(
|
|
16
|
-
it "add labels to all messages matching the query"
|
|
17
|
-
end
|
|
18
|
-
end
|
data/test/test_yaml_migration.rb
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
require "test_helper"
|
|
2
|
-
|
|
3
|
-
require "sup"
|
|
4
|
-
require "psych"
|
|
5
|
-
|
|
6
|
-
if RUBY_VERSION < "2.1"
|
|
7
|
-
describe "Sup's YAML util" do
|
|
8
|
-
describe "Module#yaml_properties" do
|
|
9
|
-
def build_class_with_name name, &b
|
|
10
|
-
Class.new do
|
|
11
|
-
meta_cls = class << self; self; end
|
|
12
|
-
meta_cls.send(:define_method, :name) { name }
|
|
13
|
-
class_exec(&b) unless b.nil?
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
after do
|
|
18
|
-
Psych.load_tags = {}
|
|
19
|
-
Psych.dump_tags = {}
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
it "defines YAML tag for class" do
|
|
23
|
-
cls = build_class_with_name 'Cls' do
|
|
24
|
-
yaml_properties
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
expected_yaml_tag = "!supmua.org,2006-10-01/Cls"
|
|
28
|
-
|
|
29
|
-
Psych.load_tags[expected_yaml_tag].must_equal cls
|
|
30
|
-
Psych.dump_tags[cls].must_equal expected_yaml_tag
|
|
31
|
-
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
it "Loads legacy YAML format as well" do
|
|
35
|
-
cls = build_class_with_name 'Cls' do
|
|
36
|
-
yaml_properties :id
|
|
37
|
-
attr_accessor :id
|
|
38
|
-
def initialize id
|
|
39
|
-
@id = id
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
Psych.load_tags["!masanjin.net,2006-10-01/Cls"].must_equal cls
|
|
44
|
-
|
|
45
|
-
yaml = <<EOF
|
|
46
|
-
--- !masanjin.net,2006-10-01/Cls
|
|
47
|
-
id: ID
|
|
48
|
-
EOF
|
|
49
|
-
loaded = YAML.load(yaml)
|
|
50
|
-
|
|
51
|
-
loaded.id.must_equal 'ID'
|
|
52
|
-
loaded.must_be_kind_of cls
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
it "Dumps & loads w/ state re-initialized" do
|
|
56
|
-
cls = build_class_with_name 'Cls' do
|
|
57
|
-
yaml_properties :id
|
|
58
|
-
attr_accessor :id
|
|
59
|
-
attr_reader :flag
|
|
60
|
-
|
|
61
|
-
def initialize id
|
|
62
|
-
@id = id
|
|
63
|
-
@flag = true
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
instance = cls.new 'ID'
|
|
68
|
-
|
|
69
|
-
dumped = YAML.dump(instance)
|
|
70
|
-
loaded = YAML.load(dumped)
|
|
71
|
-
|
|
72
|
-
dumped.must_equal <<-EOF
|
|
73
|
-
--- !supmua.org,2006-10-01/Cls
|
|
74
|
-
id: ID
|
|
75
|
-
EOF
|
|
76
|
-
|
|
77
|
-
loaded.id.must_equal 'ID'
|
|
78
|
-
assert loaded.flag
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
else
|
|
84
|
-
puts "Some YAML tests are skipped on Ruby 2.1.0 and newer."
|
|
85
|
-
end
|