imap-backup 1.0.16 → 1.0.17
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/lib/imap/backup/configuration/list.rb +6 -1
- data/lib/imap/backup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1abac89e145c96edf61e40e5d5efc035c26e71fd
|
|
4
|
+
data.tar.gz: 793eb63a28cbf0e3fd3921c7ce72eeee4663ff2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a469154e6ea6767d045dafa2c52ca04abd649e682fcffb992f4ec9c2ce399a569589d0dd2dfd75957d0757ac165f8e1439915f2e2ed0e0df6b93739e1e2ffe4a
|
|
7
|
+
data.tar.gz: 0372d03f497dcc3f2cfe1806bc27f530141ccb73618a99e1f4ec37e05d518b7bf6b067cfac466a94967a4753afb37ff52193612fef2446b9c9c44a068e96caa6
|
|
@@ -11,6 +11,7 @@ module Imap::Backup
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def setup_logging
|
|
14
|
+
return if not config_exists?
|
|
14
15
|
Imap::Backup.setup_logging config
|
|
15
16
|
end
|
|
16
17
|
|
|
@@ -26,12 +27,16 @@ module Imap::Backup
|
|
|
26
27
|
|
|
27
28
|
def config
|
|
28
29
|
return @config if @config
|
|
29
|
-
if not
|
|
30
|
+
if not config_exists?
|
|
30
31
|
raise ConfigurationNotFound.new("Configuration file '#{Configuration::Store.default_pathname}' not found")
|
|
31
32
|
end
|
|
32
33
|
@config = Configuration::Store.new
|
|
33
34
|
end
|
|
34
35
|
|
|
36
|
+
def config_exists?
|
|
37
|
+
Configuration::Store.exist?
|
|
38
|
+
end
|
|
39
|
+
|
|
35
40
|
def accounts
|
|
36
41
|
return @accounts if @accounts
|
|
37
42
|
if required_accounts.nil?
|
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: 1.0.
|
|
4
|
+
version: 1.0.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joe Yates
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|