imap-backup 1.0.16 → 1.0.17

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
  SHA1:
3
- metadata.gz: 87979e52b9e7629fc1b5a90e2567e795a36cc89c
4
- data.tar.gz: 286d05d106efb19a22bda37446154531a396fe41
3
+ metadata.gz: 1abac89e145c96edf61e40e5d5efc035c26e71fd
4
+ data.tar.gz: 793eb63a28cbf0e3fd3921c7ce72eeee4663ff2d
5
5
  SHA512:
6
- metadata.gz: 19e5fecd98e2bedb65b4da2fca103a65baedf04627e5ed83aacabf3b2408b4c4f2b1e0bc2a267705e2acad0d6ecc303c5db15d555759162a2b7356cf24086bcc
7
- data.tar.gz: 9f4a7e727c2a544271846cd541adf9e4cd57d190eb31d09c198bf95f242b3d20fcfaac6376f92809ff9887c88432ba7340ad0a8f830e323106d99d1fa657a4be
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 Configuration::Store.exist?
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?
@@ -3,6 +3,6 @@ module Imap; end
3
3
  module Imap::Backup
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- REVISION = 16
6
+ REVISION = 17
7
7
  VERSION = [MAJOR, MINOR, REVISION].map(&:to_s).join('.')
8
8
  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: 1.0.16
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-12 00:00:00.000000000 Z
11
+ date: 2015-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake