celluloid-supervision 0.20.0.pre6 → 0.20.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
  SHA1:
3
- metadata.gz: 2af0f93acf3d7d5c092602af6ceb8d6436e602c3
4
- data.tar.gz: 3793f8a13d8fa95915dacb47db8fd81174939103
3
+ metadata.gz: 23fdf38a81deae26b5dc2662f61121649736c0e2
4
+ data.tar.gz: 853b6aa1d716a24fa41659446926413b9e24153c
5
5
  SHA512:
6
- metadata.gz: 162986dee266a89dd46e4825b1f0a252fb46c12ccf575328dfe74485768835ad04d89ae82e758608689d49a57e12b16f343964a6f7a5eb7e850e8c33dcdd2b7d
7
- data.tar.gz: 3bd45699ef4d733528d6d03251b8158e67acbf3100f979ad05fb07ecaff5d06360095a3149ac27aa2b5b3a49d6ddfbf8fa66887dbd878dc47b91a33eab526b9f
6
+ metadata.gz: f064277afe5f405701058ae5a4a2db673be12aba830484aecae2777c01168d7db0f3768c9c92d2f94946f13d82d7abaea8879dd44a593eabc405ea6ec87867b0
7
+ data.tar.gz: 2baa6fbf05a6836419bc08c710de9e4f1791dd16eccfbdf97fb0d4c78d8d230134184f8329ac5260846625fe0ce49b9a9fecca31a33f6c0c4014fc086c40f5d1
@@ -94,7 +94,7 @@ module Celluloid
94
94
  def remove(actor)
95
95
  actor = Celluloid::Actor[actor] if actor.is_a? Symbol
96
96
  instance = find(actor)
97
- instance.terminate
97
+ instance.terminate if instance
98
98
  end
99
99
 
100
100
  def actors
@@ -35,7 +35,7 @@ module Celluloid
35
35
  @registry.add(@name, @actor, @branch) if @name
36
36
  invoke_injection(:after_start)
37
37
  rescue Celluloid::TimeoutError => ex
38
- Internals::Logger.error("TimeoutError at start of supervised actor.")
38
+ Internals::Logger.error("TimeoutError at start of supervised instance of #{@type}")
39
39
  raise ex
40
40
  # TODO: Implement timeout/retry.
41
41
  # unless ( @retry += 1 ) <= INSTANCE_RETRY_LIMIT
@@ -44,6 +44,9 @@ module Celluloid
44
44
  # Internals::Logger.warn("TimeoutError at start of supervised actor. Retrying in #{INSTANCE_RETRY_WAIT} seconds. ( Attempt #{@retry} of #{INSTANCE_RETRY_LIMIT} )")
45
45
  # sleep INSTANCE_RETRY_WAIT
46
46
  # retry
47
+ rescue => ex
48
+ Internals::Logger.error("Error ( #{ex.class} ) at start of supervised instance of #{@type}")
49
+ raise ex
47
50
  end
48
51
 
49
52
  def restart
@@ -1,5 +1,5 @@
1
1
  module Celluloid
2
2
  module Supervision
3
- VERSION = "0.20.0.pre6"
3
+ VERSION = "0.20.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celluloid-supervision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0.pre6
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - digitalextremist //
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-05-09 00:00:00.000000000 Z
13
+ date: 2015-07-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  requirement: !ruby/object:Gem::Requirement
@@ -124,6 +124,20 @@ dependencies:
124
124
  - - '>='
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
+ - !ruby/object:Gem::Dependency
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ name: guard-rspec
134
+ prerelease: false
135
+ type: :development
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
127
141
  - !ruby/object:Gem::Dependency
128
142
  requirement: !ruby/object:Gem::Requirement
129
143
  requirements:
@@ -143,7 +157,7 @@ dependencies:
143
157
  requirements:
144
158
  - - '>='
145
159
  - !ruby/object:Gem::Version
146
- version: 0.17.0.pre12
160
+ version: 0.17.0
147
161
  name: celluloid
148
162
  prerelease: false
149
163
  type: :development
@@ -151,7 +165,7 @@ dependencies:
151
165
  requirements:
152
166
  - - '>='
153
167
  - !ruby/object:Gem::Version
154
- version: 0.17.0.pre12
168
+ version: 0.17.0
155
169
  - !ruby/object:Gem::Dependency
156
170
  requirement: !ruby/object:Gem::Requirement
157
171
  requirements: