imap-backup 14.3.0 → 14.4.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/README.md +2 -2
- data/docs/development.md +9 -9
- data/imap-backup.gemspec +1 -2
- data/lib/imap/backup/configuration.rb +11 -8
- data/lib/imap/backup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fa22c1790c4f48592fd5be38af7e23109a1bd170c71a08f2277576ddee8ea7e
|
4
|
+
data.tar.gz: b78e7398359db0707df631ac4c0cbd075a2879f879a4b3155afc9bc98ce8f2a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b14acc69aa91010b1ea0cc8fa3257376d63d0accb3e41cfc04910861c2ab8e3d4bcf4035efabd34cfd1ee9ccbda5e26b2f63fb8306534f474deddf3ec83b2a2
|
7
|
+
data.tar.gz: df034a9b5f24fa072506d9cbf858df23bf533fe6e57cedd0845e22e90d6ffbc0962619786af5746e15dec448ed46654337e362d5c26b8a82efc5b72acf5c7b3e
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ There are two types of backups:
|
|
30
30
|
* Mirror - make a destination account match the local copy. This action can be repeated.
|
31
31
|
* Restore - push the local copy back to the original account.
|
32
32
|
|
33
|
-
See below for a [full list of commands](#
|
33
|
+
See below for a [full list of commands](#commands).
|
34
34
|
|
35
35
|
# Installation
|
36
36
|
|
@@ -160,7 +160,7 @@ For more information about a command, run
|
|
160
160
|
imap-backup help COMMAND
|
161
161
|
```
|
162
162
|
|
163
|
-
#
|
163
|
+
# Performance
|
164
164
|
|
165
165
|
There are a couple of performance tweaks that you can use
|
166
166
|
to improve backup speed.
|
data/docs/development.md
CHANGED
@@ -13,35 +13,30 @@ git config --local blame.ignoreRevsFile .git-blame-ignore-revs
|
|
13
13
|
* Restartable - calculate start point based on already downloaded messages
|
14
14
|
* Standalone - do not rely on an email client or MTA
|
15
15
|
|
16
|
-
# Development
|
17
|
-
|
18
|
-
A Dockerfile is available to allow testing with all available Ruby versions,
|
19
|
-
see the `dev/container` directory.
|
20
|
-
|
21
16
|
# Testing
|
22
17
|
|
23
18
|
## Feature Specs
|
24
19
|
|
25
20
|
Specs under `specs/features` are integration specs run against
|
26
|
-
two local IMAP servers controlled by Docker Compose.
|
21
|
+
two local IMAP servers controlled by Podman (or Docker) Compose.
|
27
22
|
|
28
23
|
Start them before running the test suite
|
29
24
|
|
30
25
|
```sh
|
31
|
-
$
|
26
|
+
$ podman-compose -f dev/compose.yml up -d
|
32
27
|
```
|
33
28
|
|
34
29
|
or, with Podman
|
35
30
|
|
36
31
|
```sh
|
37
|
-
$ podman-compose -f dev/
|
32
|
+
$ podman-compose -f dev/compose.yml up -d
|
38
33
|
```
|
39
34
|
|
40
35
|
```sh
|
41
36
|
$ rake
|
42
37
|
```
|
43
38
|
|
44
|
-
To exclude
|
39
|
+
To exclude container-based tests:
|
45
40
|
|
46
41
|
```sh
|
47
42
|
rake no-docker
|
@@ -53,6 +48,11 @@ or
|
|
53
48
|
$ rspec --tag ~docker
|
54
49
|
```
|
55
50
|
|
51
|
+
# Older Rubies
|
52
|
+
|
53
|
+
A Containerfile is available to allow testing with all available Ruby versions,
|
54
|
+
see the README in the `dev` directory.
|
55
|
+
|
56
56
|
# Performance Specs
|
57
57
|
|
58
58
|
```sh
|
data/imap-backup.gemspec
CHANGED
@@ -122,27 +122,30 @@ module Imap::Backup
|
|
122
122
|
else
|
123
123
|
DEFAULT_STRATEGY
|
124
124
|
end
|
125
|
-
|
126
|
-
dehashify_folders(data)
|
127
|
-
else
|
128
|
-
data
|
129
|
-
end
|
125
|
+
dehashify_folders(data)
|
130
126
|
else
|
131
127
|
{accounts: [], download_strategy: DEFAULT_STRATEGY}
|
132
128
|
end
|
133
129
|
end
|
134
130
|
|
135
131
|
def dehashify_folders(data)
|
136
|
-
data[:version] = VERSION
|
137
|
-
|
138
132
|
data[:accounts].each do |account|
|
139
133
|
next if !account.key?(:folders)
|
140
134
|
|
141
135
|
folders = account[:folders]
|
142
|
-
names = folders.map
|
136
|
+
names = folders.map do |f|
|
137
|
+
case f
|
138
|
+
when Hash
|
139
|
+
f[:name]
|
140
|
+
else
|
141
|
+
f
|
142
|
+
end
|
143
|
+
end
|
143
144
|
account[:folders] = names
|
144
145
|
end
|
145
146
|
|
147
|
+
data[:version] = VERSION
|
148
|
+
|
146
149
|
data
|
147
150
|
end
|
148
151
|
|
data/lib/imap/backup/version.rb
CHANGED
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: 14.
|
4
|
+
version: 14.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Yates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|