delayer 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@
3
3
  module Delayer
4
4
  module Extend
5
5
  attr_accessor :expire
6
+ attr_reader :exception
6
7
 
7
8
  def self.extended(klass)
8
9
  klass.class_eval do
@@ -10,6 +11,7 @@ module Delayer
10
11
  @busy = false
11
12
  @expire = 0
12
13
  @remain_hook = nil
14
+ @exception = nil
13
15
  @remain_received = false
14
16
  @lock = Mutex.new
15
17
  end
@@ -32,6 +34,9 @@ module Delayer
32
34
  @remain_received = !empty?
33
35
  @remain_hook.call if @remain_received
34
36
  end
37
+ rescue Exception => e
38
+ @exception = e
39
+ raise e
35
40
  end
36
41
 
37
42
  def expire?
@@ -1,3 +1,3 @@
1
1
  module Delayer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-02 00:00:00.000000000 Z
12
+ date: 2013-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &15390660 !ruby/object:Gem::Requirement
16
+ requirement: &8375180 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.2.3
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *15390660
24
+ version_requirements: *8375180
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &18232940 !ruby/object:Gem::Requirement
27
+ requirement: &8374760 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *18232940
35
+ version_requirements: *8374760
36
36
  description: Delay the processing
37
37
  email:
38
38
  - toshi.alternative@gmail.com