popper 0.1.4 → 0.1.5

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: 59a80d82516d0f086bdd9a2c6a973c5c300b38ab
4
- data.tar.gz: 4d376b3995fdd6190b92b3cbf33cf229de9fdd07
3
+ metadata.gz: 899d43336ae319fa1483587328c0c1b7db5c9711
4
+ data.tar.gz: ec65c2417a0d82f6b2fc7bb471549cdd28385cc6
5
5
  SHA512:
6
- metadata.gz: 161989204832af683c72bebe64e515b5c080db6ee0f1502c9b694cf9c83b8bb993aad719b47daa892cfea0be6e1cecbdfbe9e8df55bc4675f9cec8d9d8602143
7
- data.tar.gz: ca937937ded48fbd5ca546aa17ed6822d533701a72eab3b1bad1f0e20d45782b11827ad60add4f363879bd3660a16c21b33497a77391a2899767e2c40e8a6bd6
6
+ metadata.gz: 5841012e7b9ddbd80d0cd99f0e46590eaf073c6ac1bd909098406a56c4a136aae7542a702d4ffb6e8f2c99dda362cac078955e30ac804b82b470a9acf4562cd5
7
+ data.tar.gz: 9123956b06d973d8a72c881646796e8f916293b874ac85490840205e9a2a28477e11c8ca86893454d0018df2b1245caecd8172bbe4e812fc30f85e2123c30643
@@ -7,8 +7,11 @@ module Popper
7
7
  begin
8
8
  Popper::Sync.synchronized do
9
9
  Popper.configure.accounts.each do |account|
10
- uidls = pop(account)
11
- last_uidl(account.name, uidls) if uidls.length > 0
10
+ begin
11
+ pop(account)
12
+ rescue => e
13
+ Popper.log warn e
14
+ end
12
15
  end
13
16
  end
14
17
  rescue Locked
@@ -34,9 +37,10 @@ module Popper
34
37
  Popper.log.warn e
35
38
  end
36
39
  end
40
+ # write cache
41
+ last_uidl(account.name, current_uidls - error_uidls)
37
42
  Popper.log.info "success popper #{account.name}"
38
43
  end
39
- current_uidls - error_uidls
40
44
  end
41
45
 
42
46
  def self.connection(account, &block)
@@ -49,8 +53,6 @@ module Popper
49
53
  ) do |pop|
50
54
  block.call(pop)
51
55
  end
52
- rescue => e
53
- Popper.log.warn e
54
56
  end
55
57
 
56
58
  def self.matching?(account, mail)
@@ -1,3 +1,3 @@
1
1
  module Popper
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama86