sup 0.21.0 → 0.22.0
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 +4 -4
- data/CONTRIBUTORS +18 -17
- data/History.txt +8 -0
- data/Rakefile +0 -1
- data/bin/sup +0 -1
- data/bin/sup-add +1 -2
- data/bin/sup-config +0 -1
- data/bin/sup-dump +0 -1
- data/bin/sup-import-dump +1 -2
- data/bin/sup-sync +0 -1
- data/bin/sup-sync-back-maildir +0 -1
- data/bin/sup-tweak-labels +1 -2
- data/contrib/colorpicker.rb +0 -2
- data/devel/profile.rb +0 -1
- data/ext/mkrf_conf_xapian.rb +0 -2
- data/lib/sup.rb +0 -1
- data/lib/sup/crypto.rb +7 -6
- data/lib/sup/draft.rb +1 -1
- data/lib/sup/mode.rb +2 -2
- data/lib/sup/modes/thread_index_mode.rb +5 -1
- data/lib/sup/modes/thread_view_mode.rb +4 -3
- data/lib/sup/util.rb +1 -75
- data/lib/sup/version.rb +1 -1
- data/sup.gemspec +1 -1
- data/test/{messages → fixtures}/bad-content-transfer-encoding-1.eml +0 -0
- data/test/{messages → fixtures}/binary-content-transfer-encoding-2.eml +0 -0
- data/test/fixtures/blank-header-fields.eml +71 -0
- data/test/{unit/fixtures → fixtures}/contacts.txt +0 -0
- data/test/fixtures/malicious-attachment-names.eml +55 -0
- data/test/fixtures/missing-from-to.eml +18 -0
- data/test/{messages → fixtures}/missing-line.eml +0 -0
- data/test/fixtures/multi-part-2.eml +72 -0
- data/test/fixtures/multi-part.eml +61 -0
- data/test/fixtures/no-body.eml +18 -0
- data/test/fixtures/simple-message.eml +29 -0
- data/test/gnupg_test_home/key_ecc.gen +13 -0
- data/test/gnupg_test_home/pubring.gpg +0 -0
- data/test/gnupg_test_home/regen_keys.sh +3 -0
- data/test/test_crypto.rb +11 -1
- data/test/test_helper.rb +6 -3
- data/test/test_message.rb +25 -383
- data/test/test_messages_dir.rb +3 -9
- data/test/unit/test_contact.rb +1 -1
- metadata +41 -15
data/test/test_messages_dir.rb
CHANGED
@@ -22,9 +22,7 @@ class TestMessagesDir < ::Minitest::Test
|
|
22
22
|
|
23
23
|
def test_binary_content_transfer_encoding
|
24
24
|
message = ''
|
25
|
-
File.open
|
26
|
-
message = f.read
|
27
|
-
end
|
25
|
+
File.open('test/fixtures/binary-content-transfer-encoding-2.eml') { |f| message = f.read }
|
28
26
|
|
29
27
|
source = DummySource.new("sup-test://test_messages")
|
30
28
|
source.messages = [ message ]
|
@@ -56,9 +54,7 @@ class TestMessagesDir < ::Minitest::Test
|
|
56
54
|
|
57
55
|
def test_bad_content_transfer_encoding
|
58
56
|
message = ''
|
59
|
-
File.open
|
60
|
-
message = f.read
|
61
|
-
end
|
57
|
+
File.open('test/fixtures/bad-content-transfer-encoding-1.eml') { |f| message = f.read }
|
62
58
|
|
63
59
|
source = DummySource.new("sup-test://test_messages")
|
64
60
|
source.messages = [ message ]
|
@@ -90,9 +86,7 @@ class TestMessagesDir < ::Minitest::Test
|
|
90
86
|
|
91
87
|
def test_missing_line
|
92
88
|
message = ''
|
93
|
-
File.open
|
94
|
-
message = f.read
|
95
|
-
end
|
89
|
+
File.open('test/fixtures/missing-line.eml') { |f| message = f.read }
|
96
90
|
|
97
91
|
source = DummySource.new("sup-test://test_messages")
|
98
92
|
source.messages = [ message ]
|
data/test/unit/test_contact.rb
CHANGED
@@ -5,7 +5,7 @@ module Redwood
|
|
5
5
|
|
6
6
|
class TestContact < Minitest::Test
|
7
7
|
def setup
|
8
|
-
@contact = ContactManager.init(File.expand_path("
|
8
|
+
@contact = ContactManager.init(File.expand_path("../../fixtures/contacts.txt", __FILE__))
|
9
9
|
@person = Person.new "Terrible Name", "terrible@name.com"
|
10
10
|
end
|
11
11
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Morgan
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: ncursesw
|
@@ -87,16 +87,16 @@ dependencies:
|
|
87
87
|
name: mime-types
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- - "
|
90
|
+
- - ">"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
92
|
+
version: '2.0'
|
93
93
|
type: :runtime
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - "
|
97
|
+
- - ">"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: '
|
99
|
+
version: '2.0'
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: locale
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
@@ -369,9 +369,26 @@ files:
|
|
369
369
|
- man/sup.1
|
370
370
|
- sup.gemspec
|
371
371
|
- test/dummy_source.rb
|
372
|
+
- test/fixtures/bad-content-transfer-encoding-1.eml
|
373
|
+
- test/fixtures/binary-content-transfer-encoding-2.eml
|
374
|
+
- test/fixtures/blank-header-fields.eml
|
375
|
+
- test/fixtures/contacts.txt
|
376
|
+
- test/fixtures/malicious-attachment-names.eml
|
377
|
+
- test/fixtures/missing-from-to.eml
|
378
|
+
- test/fixtures/missing-line.eml
|
379
|
+
- test/fixtures/multi-part-2.eml
|
380
|
+
- test/fixtures/multi-part.eml
|
381
|
+
- test/fixtures/no-body.eml
|
382
|
+
- test/fixtures/simple-message.eml
|
383
|
+
- test/gnupg_test_home/.gpg-v21-migrated
|
372
384
|
- test/gnupg_test_home/gpg.conf
|
373
385
|
- test/gnupg_test_home/key1.gen
|
374
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
|
375
392
|
- test/gnupg_test_home/pubring.gpg
|
376
393
|
- test/gnupg_test_home/receiver_pubring.gpg
|
377
394
|
- test/gnupg_test_home/receiver_secring.gpg
|
@@ -381,9 +398,6 @@ files:
|
|
381
398
|
- test/integration/test_label_service.rb
|
382
399
|
- test/integration/test_maildir.rb
|
383
400
|
- test/integration/test_mbox.rb
|
384
|
-
- test/messages/bad-content-transfer-encoding-1.eml
|
385
|
-
- test/messages/binary-content-transfer-encoding-2.eml
|
386
|
-
- test/messages/missing-line.eml
|
387
401
|
- test/test_crypto.rb
|
388
402
|
- test/test_header_parsing.rb
|
389
403
|
- test/test_helper.rb
|
@@ -391,7 +405,6 @@ files:
|
|
391
405
|
- test/test_messages_dir.rb
|
392
406
|
- test/test_yaml_migration.rb
|
393
407
|
- test/test_yaml_regressions.rb
|
394
|
-
- test/unit/fixtures/contacts.txt
|
395
408
|
- test/unit/service/test_label_service.rb
|
396
409
|
- test/unit/test_contact.rb
|
397
410
|
- test/unit/test_horizontal_selector.rb
|
@@ -428,15 +441,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
428
441
|
version: '0'
|
429
442
|
requirements: []
|
430
443
|
rubyforge_project:
|
431
|
-
rubygems_version: 2.
|
444
|
+
rubygems_version: 2.4.6
|
432
445
|
signing_key:
|
433
446
|
specification_version: 4
|
434
447
|
summary: A console-based email client with the best features of GMail, mutt and Emacs
|
435
448
|
test_files:
|
436
449
|
- test/dummy_source.rb
|
450
|
+
- test/fixtures/bad-content-transfer-encoding-1.eml
|
451
|
+
- test/fixtures/binary-content-transfer-encoding-2.eml
|
452
|
+
- test/fixtures/blank-header-fields.eml
|
453
|
+
- test/fixtures/contacts.txt
|
454
|
+
- test/fixtures/malicious-attachment-names.eml
|
455
|
+
- test/fixtures/missing-from-to.eml
|
456
|
+
- test/fixtures/missing-line.eml
|
457
|
+
- test/fixtures/multi-part-2.eml
|
458
|
+
- test/fixtures/multi-part.eml
|
459
|
+
- test/fixtures/no-body.eml
|
460
|
+
- test/fixtures/simple-message.eml
|
461
|
+
- test/gnupg_test_home/.gpg-v21-migrated
|
437
462
|
- test/gnupg_test_home/gpg.conf
|
438
463
|
- test/gnupg_test_home/key1.gen
|
439
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
|
440
470
|
- test/gnupg_test_home/pubring.gpg
|
441
471
|
- test/gnupg_test_home/receiver_pubring.gpg
|
442
472
|
- test/gnupg_test_home/receiver_secring.gpg
|
@@ -446,9 +476,6 @@ test_files:
|
|
446
476
|
- test/integration/test_label_service.rb
|
447
477
|
- test/integration/test_maildir.rb
|
448
478
|
- test/integration/test_mbox.rb
|
449
|
-
- test/messages/bad-content-transfer-encoding-1.eml
|
450
|
-
- test/messages/binary-content-transfer-encoding-2.eml
|
451
|
-
- test/messages/missing-line.eml
|
452
479
|
- test/test_crypto.rb
|
453
480
|
- test/test_header_parsing.rb
|
454
481
|
- test/test_helper.rb
|
@@ -456,7 +483,6 @@ test_files:
|
|
456
483
|
- test/test_messages_dir.rb
|
457
484
|
- test/test_yaml_migration.rb
|
458
485
|
- test/test_yaml_regressions.rb
|
459
|
-
- test/unit/fixtures/contacts.txt
|
460
486
|
- test/unit/service/test_label_service.rb
|
461
487
|
- test/unit/test_contact.rb
|
462
488
|
- test/unit/test_horizontal_selector.rb
|