imap-backup 11.1.0.rc1 → 11.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/imap/backup/configuration.rb +14 -5
- data/lib/imap/backup/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdcbbac2458c28626fdf8be328db6f949be5cf981fde3438df03356b28849ebf
|
4
|
+
data.tar.gz: 1ed5fc6db436f57c30e03a5036a61c2fa21853cd2d7ae08b861b491b04b6d12b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a60997a5fdee3274d726e54c413c7b0e38df97246f4619358128a6786f5a148414d7050a6d498b805cb5376fca3d555f232e90c10d15d092ea49dce6007272e7
|
7
|
+
data.tar.gz: 41b3038e096c34486670e423e6231cb4dd6eb8c39b035f8ce7580fb406bc6210ba8e436a51d51c61e67f9b5c3af3a971ad6ce016e1904850bdb14bc52e150f9c
|
@@ -19,9 +19,6 @@ module Imap::Backup
|
|
19
19
|
].freeze
|
20
20
|
|
21
21
|
attr_reader :pathname
|
22
|
-
attr_reader :download_strategy
|
23
|
-
attr_reader :download_strategy_original
|
24
|
-
attr_reader :download_strategy_modified
|
25
22
|
|
26
23
|
def self.default_pathname
|
27
24
|
File.join(CONFIGURATION_DIRECTORY, "config.json")
|
@@ -68,16 +65,28 @@ module Imap::Backup
|
|
68
65
|
end
|
69
66
|
end
|
70
67
|
|
68
|
+
def download_strategy
|
69
|
+
ensure_loaded!
|
70
|
+
|
71
|
+
@download_strategy
|
72
|
+
end
|
73
|
+
|
71
74
|
def download_strategy=(value)
|
72
75
|
raise "Unknown strategy '#{value}'" if !DOWNLOAD_STRATEGIES.find { |s| s[:key] == value }
|
73
76
|
|
74
77
|
ensure_loaded!
|
75
78
|
|
76
79
|
@download_strategy = value
|
77
|
-
@download_strategy_modified = value != download_strategy_original
|
80
|
+
@download_strategy_modified = value != @download_strategy_original
|
78
81
|
inject_global_attributes(accounts)
|
79
82
|
end
|
80
83
|
|
84
|
+
def download_strategy_modified
|
85
|
+
ensure_loaded!
|
86
|
+
|
87
|
+
@download_strategy_modified
|
88
|
+
end
|
89
|
+
|
81
90
|
def modified?
|
82
91
|
ensure_loaded!
|
83
92
|
|
@@ -114,7 +123,7 @@ module Imap::Backup
|
|
114
123
|
end
|
115
124
|
data
|
116
125
|
else
|
117
|
-
{accounts: []}
|
126
|
+
{accounts: [], download_strategy: DEFAULT_STRATEGY}
|
118
127
|
end
|
119
128
|
end
|
120
129
|
|
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: 11.1.0
|
4
|
+
version: 11.1.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-08-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -312,9 +312,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
312
312
|
version: '2.6'
|
313
313
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
314
|
requirements:
|
315
|
-
- - "
|
315
|
+
- - ">="
|
316
316
|
- !ruby/object:Gem::Version
|
317
|
-
version:
|
317
|
+
version: '0'
|
318
318
|
requirements: []
|
319
319
|
rubygems_version: 3.3.7
|
320
320
|
signing_key:
|