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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fce713a5edcf2115c1f8636cfe7b6521aae0403a9bb79dfaf05b484363dbb7ad
4
- data.tar.gz: 68544128dba3ade90077683c14d454596a514368cb40a46094934ec94220a606
3
+ metadata.gz: fdcbbac2458c28626fdf8be328db6f949be5cf981fde3438df03356b28849ebf
4
+ data.tar.gz: 1ed5fc6db436f57c30e03a5036a61c2fa21853cd2d7ae08b861b491b04b6d12b
5
5
  SHA512:
6
- metadata.gz: f5b467457df7840d8cf69cc4ace9758cfc2b38242acdb3f4c75a9dd0327c996995aa0986f649725c57e8b058ad0be4d386d9760720a20d505c3154e2a82aa59c
7
- data.tar.gz: 3dd8a7f189e0d313e487b63fd64d7c57a647d384360e4128f2787cb7673f1db35a05ffb4853603e7bafbe17537a1b309a43a825180a910e45abc202630283eb9
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
 
@@ -4,6 +4,6 @@ module Imap::Backup
4
4
  MAJOR = 11
5
5
  MINOR = 1
6
6
  REVISION = 0
7
- PRE = "rc1".freeze
7
+ PRE = nil
8
8
  VERSION = [MAJOR, MINOR, REVISION, PRE].compact.map(&:to_s).join(".")
9
9
  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: 11.1.0.rc1
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-12 00:00:00.000000000 Z
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: 1.3.1
317
+ version: '0'
318
318
  requirements: []
319
319
  rubygems_version: 3.3.7
320
320
  signing_key: