imap-backup 4.2.0 → 4.2.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 +4 -4
- data/lib/imap/backup/cli/folders.rb +1 -1
- data/lib/imap/backup/version.rb +1 -1
- data/spec/features/folders_spec.rb +36 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4acc06bc3ae80d8d4ab9ac5c357ff123e73f2c798d98b94c3e36f3a82daee441
|
4
|
+
data.tar.gz: 2ca50fa37e148768e73fc91fd4035a691a8d5f6083a702127dc02c8237d64a19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 135e5de500d5d1cae59f43fffe6c412b83d27dd26d96566019912198f13bbeb9784bd76c70ca6524caf85ff917073dc9e6ad7890836d5d9f8f4e5dd3b24cceb2
|
7
|
+
data.tar.gz: a9941e460943682553a20a32b5b8d497821485fec6971f15389e08359c6f59036ee6545aa5bb83e0326040b574c8a5ee57fa50d13a6011b2594c21945b4c8e95
|
@@ -13,7 +13,7 @@ module Imap::Backup
|
|
13
13
|
no_commands do
|
14
14
|
def run
|
15
15
|
each_connection(account_names) do |connection|
|
16
|
-
puts connection.username
|
16
|
+
puts connection.account.username
|
17
17
|
# TODO: Make folder_names private once this command
|
18
18
|
# has been removed.
|
19
19
|
folders = connection.folder_names
|
data/lib/imap/backup/version.rb
CHANGED
@@ -0,0 +1,36 @@
|
|
1
|
+
require "features/helper"
|
2
|
+
require "imap/backup/cli/folders"
|
3
|
+
|
4
|
+
RSpec.describe "folders", type: :feature, docker: true do
|
5
|
+
include_context "imap-backup connection"
|
6
|
+
|
7
|
+
let(:options) do
|
8
|
+
{accounts: "address@example.org"}
|
9
|
+
end
|
10
|
+
let(:folder) { "my-stuff" }
|
11
|
+
let(:output) { StringIO.new }
|
12
|
+
|
13
|
+
before do
|
14
|
+
allow(Imap::Backup::CLI::Accounts).to receive(:new) { [account] }
|
15
|
+
server_create_folder folder
|
16
|
+
end
|
17
|
+
|
18
|
+
around do |example|
|
19
|
+
stdout = $stdout
|
20
|
+
$stdout = output
|
21
|
+
example.run
|
22
|
+
$stdout = stdout
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
FileUtils.rm_rf local_backup_path
|
27
|
+
server_delete_folder folder
|
28
|
+
connection.disconnect
|
29
|
+
end
|
30
|
+
|
31
|
+
it "lists account folders" do
|
32
|
+
Imap::Backup::CLI::Folders.new(options).run
|
33
|
+
|
34
|
+
expect(output.string).to match(/^\tmy-stuff\n/)
|
35
|
+
end
|
36
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imap-backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Yates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -229,6 +229,7 @@ files:
|
|
229
229
|
- lib/thunderbird/subdirectory.rb
|
230
230
|
- lib/thunderbird/subdirectory_placeholder.rb
|
231
231
|
- spec/features/backup_spec.rb
|
232
|
+
- spec/features/folders_spec.rb
|
232
233
|
- spec/features/helper.rb
|
233
234
|
- spec/features/restore_spec.rb
|
234
235
|
- spec/features/status_spec.rb
|
@@ -317,6 +318,7 @@ test_files:
|
|
317
318
|
- spec/unit/email/provider/fastmail_spec.rb
|
318
319
|
- spec/unit/email/provider/base_spec.rb
|
319
320
|
- spec/unit/email/provider_spec.rb
|
321
|
+
- spec/features/folders_spec.rb
|
320
322
|
- spec/features/backup_spec.rb
|
321
323
|
- spec/features/helper.rb
|
322
324
|
- spec/features/restore_spec.rb
|