chore-core 1.8.3 → 1.8.4

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: 8a1e15581a9bd8310bd8d1f4ae4392f35df44afd
4
- data.tar.gz: 72776fab3cc9fc4013c9c0a80f55dddb2bef7277
3
+ metadata.gz: 09ab52748f634684d65e8eb548ba12cf3a8020e5
4
+ data.tar.gz: d09aba8b0de7b845e4adb3fc503c277af494e174
5
5
  SHA512:
6
- metadata.gz: 4b3f27a13ae37b90e18b693bffe1d09f36ab9cdf33ca1ce0a0d9d69fb9c9a1d60836f54ed963549ec6103c59f02e8a95e824b40397489c8ec44c042000e856be
7
- data.tar.gz: 4beb0d44d569c8eaea6306cd5bab3dd0f89f2ddd59892aa6b3ab5dc9c4f17107eb6fbaa6fab45530ba2c7e87b7eede5737f41d9f2727df6238de9a10998166f7
6
+ metadata.gz: 050d7fdf8d36d4a2effe4808690bd28b399b9f1634c24aef19fec0b7971804fa587cda8bbdc3d92b97ecec421d87659ceaead9c860954979c26369b8d00a609c
7
+ data.tar.gz: d046c3fc0a634074dbfff548a5b9dc69e95d330a35259be6552414447459bdeb10d0b0bef1de348f70f7c5e5641d6a447d92094f1fda0108861f58c4f76f83a4
data/README.md CHANGED
@@ -189,11 +189,13 @@ A number of hooks, both global and per-job, exist in Chore for your convenience.
189
189
 
190
190
  Global Hooks:
191
191
 
192
+ * before_start
192
193
  * before_first_fork
193
194
  * before_fork
194
195
  * after_fork
195
196
  * around_fork
196
197
  * within_fork
198
+ * before_shutdown
197
199
 
198
200
  ("within_fork" behaves similarly to around_fork, except that it is called after the worker process has been forked. In contrast, around_fork is called by the parent process.)
199
201
 
data/lib/chore/manager.rb CHANGED
@@ -18,6 +18,7 @@ module Chore
18
18
 
19
19
  # Start the Manager. This calls both the #start method of the configured Worker Strategy, as well as Fetcher#start.
20
20
  def start
21
+ Chore.run_hooks_for(:before_start)
21
22
  @started_at = Time.now
22
23
  @worker_strategy.start
23
24
  @fetcher.start
data/lib/chore/version.rb CHANGED
@@ -2,7 +2,7 @@ module Chore
2
2
  module Version #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 8
5
- PATCH = 3
5
+ PATCH = 4
6
6
 
7
7
  STRING = [ MAJOR, MINOR, PATCH ].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chore-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tapjoy