imap-backup 14.0.0 → 14.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: c98349e8780fc3170e7ca735e6469fb38c9eeb3b7f023eec8d5f7d1e80e7258b
4
- data.tar.gz: 3ebb575e74b72ac190f52b192cf8a5af54302799f4feec7d707cb438b4e5f542
3
+ metadata.gz: 0cf96ff7b006e9e09f0ec63c75f594879a43be7065a90a35909f128077ff1a06
4
+ data.tar.gz: deb1c54af3238a9f8fea9f8cdb084acfde187590dc621f5280a2798dd48426cc
5
5
  SHA512:
6
- metadata.gz: 11a1f328334d32eaf54ec2b013bf444f9434704c9e218bf51e34798a675b33be1569a0293ddacd521d923528e8dbb534c836877e302af11ad5fd8be0ceb764a3
7
- data.tar.gz: 8f40f2ed79c32716b366a678da2c065b1df83a206901411bb3667ee31183779e668bd2619dd252cbaee46683a65ab9c5c3374afa30fa73cc0dc5b03aa83efa43
6
+ metadata.gz: f170fcdfbad3ebe441d3860eec5123cd2e165749e9fb64824e9e5db1948ba2ff01fb4d8d52da6ce3ad1d607d2235b0bc58f670b95b78a57595b34b039471a689
7
+ data.tar.gz: ad9180ddaf1ed6698627fc42bfb415cbf12abf5e6a9459483ec2c69c5bc6ef14c8465c95c5fd98934bb1d5bdbaf8c0a9c52bec27e0d6a7c34ff2fae7158b4aa7
@@ -1,6 +1,7 @@
1
1
  require "thor"
2
2
 
3
3
  require "imap/backup/cli/helpers"
4
+ require "imap/backup/logger"
4
5
 
5
6
  module Imap; end
6
7
 
@@ -96,18 +96,24 @@ module Imap::Backup
96
96
  debug("uid: #{uid} (#{index}/#{uids.count}) - #{body.size} bytes")
97
97
  serializer.append uid, body, flags
98
98
  end
99
+ rescue StandardError => e
100
+ error(e)
99
101
  end
100
102
 
101
103
  def uids
102
104
  @uids ||= folder.uids - serializer.uids
103
105
  end
104
106
 
105
- def info(message)
106
- Logger.logger.info("[#{folder.name}] #{message}")
107
- end
108
-
109
107
  def debug(message)
110
108
  Logger.logger.debug("[#{folder.name}] #{message}")
111
109
  end
110
+
111
+ def error(message)
112
+ Logger.logger.error("[#{folder.name}] #{message}")
113
+ end
114
+
115
+ def info(message)
116
+ Logger.logger.info("[#{folder.name}] #{message}")
117
+ end
112
118
  end
113
119
  end
@@ -1,3 +1,4 @@
1
+ require "net/imap"
1
2
  require "logger"
2
3
  require "singleton"
3
4
 
@@ -1,3 +1,5 @@
1
+ require "imap/backup/logger"
2
+
1
3
  module Imap; end
2
4
 
3
5
  module Imap::Backup
@@ -1,4 +1,5 @@
1
1
  require "imap/backup/setup/account/header"
2
+ require "imap/backup/setup/asker"
2
3
  require "imap/backup/setup/backup_path"
3
4
  require "imap/backup/setup/connection_tester"
4
5
  require "imap/backup/setup/email"
@@ -1,4 +1,5 @@
1
1
  require "email/provider"
2
+ require "imap/backup/setup/asker"
2
3
 
3
4
  module Imap; end
4
5
 
@@ -2,7 +2,7 @@ module Imap; end
2
2
 
3
3
  module Imap::Backup
4
4
  MAJOR = 14
5
- MINOR = 0
5
+ MINOR = 1
6
6
  REVISION = 0
7
7
  PRE = nil
8
8
  VERSION = [MAJOR, MINOR, REVISION, PRE].compact.map(&:to_s).join(".")
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.0.0
4
+ version: 14.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-10-11 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline