imap-backup 4.2.0 → 4.2.1

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: e0cd29188ed972abfb2b2ce21d237ce3b7aed5b434717ba64fa2e3475da38ded
4
- data.tar.gz: 597b58cdee1ab1b5881ea29111ac85e7fdedfbaa370824d0d24ba1b19c869dcb
3
+ metadata.gz: 4acc06bc3ae80d8d4ab9ac5c357ff123e73f2c798d98b94c3e36f3a82daee441
4
+ data.tar.gz: 2ca50fa37e148768e73fc91fd4035a691a8d5f6083a702127dc02c8237d64a19
5
5
  SHA512:
6
- metadata.gz: a3adc1984eea76a5ef993a40e89520a01997e6d01357e0a1e41cd4b58a4efc56801fc3d4f8801b95e828ec3a6a1e7884be974aaabf40f921a3faccdc99cf9b98
7
- data.tar.gz: 55c0c91fdfb4829ba77be5292b4e475c6ea31e9e6e9ea5abf9702121f8a12c20b9b0105da5e1b97bcb2482105807c614530dea9e058d64af2cde96f7fd19348b
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
@@ -3,7 +3,7 @@ module Imap; end
3
3
  module Imap::Backup
4
4
  MAJOR = 4
5
5
  MINOR = 2
6
- REVISION = 0
6
+ REVISION = 1
7
7
  PRE = nil
8
8
  VERSION = [MAJOR, MINOR, REVISION, PRE].compact.map(&:to_s).join(".")
9
9
  end
@@ -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.0
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-10 00:00:00.000000000 Z
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