imap-backup 6.2.1 → 6.3.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: c0d36730de07aa607526d3a37dc985089fa0ab41418e811edee58b7e88ba2762
4
- data.tar.gz: e91d2b8f28ebd05a8b15f9e34c1b52648a937237b44e6eeee093e7996bf1232c
3
+ metadata.gz: 1725278faef6eec96440019b9e02e50bd4d46c036bf86e3dbfe0d7ad56350350
4
+ data.tar.gz: d923d786db2db4e1b23c28efbdd3104ea709388be3aedf4d82ee7714862001cf
5
5
  SHA512:
6
- metadata.gz: 9af9e727577ad646f44b9fbae4d3e0d0f0f6cd9712f9d53e95f07b443c7eb87e99958c083416fc87c2000606936422b5ce9413578326673663390cac6ba2c11a
7
- data.tar.gz: 176f00ebb3325900e040734599a7be3b9f6c9141c11ff358cd85bc70baf094c00b1d2753d7f2136b715d4839b0fa7bb84d237104f9b96df51b73dafd33e35b2f
6
+ metadata.gz: 295c250e9991506cccc422b00e10623ac53acdcb376a8d5f6044406890668c6dc512216af455a55bfb701e3eaaeb4bc4908942416fe7578d6814f4b017a8e465
7
+ data.tar.gz: fa50ad39547df62b535f592604fb72477d134e7206c8be9e01dedc6765edb6bc2d3ac1faad75eefb402f9c8ba9a5050e93ca6cfeb015653c68db0a0e0427329f
@@ -17,6 +17,10 @@ module Imap::Backup
17
17
  end
18
18
 
19
19
  def run
20
+ if !account.local_path
21
+ account.local_path = File.join(config.path, account.username.tr("@", "_"))
22
+ end
23
+
20
24
  catch :done do
21
25
  loop do
22
26
  Kernel.system("clear")
@@ -12,17 +12,13 @@ module Imap::Backup
12
12
 
13
13
  def run
14
14
  account.local_path = highline.ask("backup directory: ") do |q|
15
- q.default = account.local_path || default
15
+ q.default = account.local_path
16
16
  q.readline = true
17
17
  q.validate = ->(path) { path_modification_validator(path) }
18
18
  q.responses[:not_valid] = "Choose a different directory "
19
19
  end
20
20
  end
21
21
 
22
- def default
23
- File.join(config.path, account.username.tr("@", "_"))
24
- end
25
-
26
22
  private
27
23
 
28
24
  def highline
@@ -2,8 +2,8 @@ module Imap; end
2
2
 
3
3
  module Imap::Backup
4
4
  MAJOR = 6
5
- MINOR = 2
6
- REVISION = 1
5
+ MINOR = 3
6
+ REVISION = 0
7
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: 6.2.1
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Yates
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-12 00:00:00.000000000 Z
11
+ date: 2022-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -256,7 +256,7 @@ licenses:
256
256
  - MIT
257
257
  metadata:
258
258
  rubygems_mfa_required: 'true'
259
- post_install_message:
259
+ post_install_message:
260
260
  rdoc_options: []
261
261
  require_paths:
262
262
  - lib
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
272
  version: '0'
273
273
  requirements: []
274
274
  rubygems_version: 3.1.6
275
- signing_key:
275
+ signing_key:
276
276
  specification_version: 4
277
277
  summary: Backup GMail (or other IMAP) accounts to disk
278
278
  test_files: []