worker_roulette 0.1.7 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +31 -88
- data/lib/worker_roulette/foreman.rb +13 -14
- data/lib/worker_roulette/lua.rb +19 -15
- data/lib/worker_roulette/tradesman.rb +100 -72
- data/lib/worker_roulette/version.rb +1 -1
- data/lib/worker_roulette.rb +66 -73
- data/spec/benchmark/irb_demo_runner.rb +39 -0
- data/spec/benchmark/perf_test.rb +22 -26
- data/spec/integration/evented_worker_roulette_spec.rb +165 -186
- data/spec/integration/worker_roulette_spec.rb +123 -145
- data/spec/spec_helper.rb +13 -12
- data/spec/unit/evented_readlock_spec.rb +22 -21
- data/spec/unit/lua_spec.rb +12 -14
- data/spec/unit/readlock_spec.rb +10 -11
- data/worker_roulette.gemspec +1 -0
- metadata +18 -5
- data/lib/worker_roulette/a_tradesman.rb +0 -46
- data/spec/unit/worker_roulette_spec.rb +0 -14
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
module WorkerRoulette
|
3
|
-
describe WorkerRoulette do
|
4
|
-
it "should not explode if redis_config is called before start" do
|
5
|
-
WorkerRoulette.instance_variable_set("@redis_config", nil)
|
6
|
-
expect {WorkerRoulette.redis_config}.not_to raise_error
|
7
|
-
end
|
8
|
-
|
9
|
-
it "should not explode if pool_size is called before start" do
|
10
|
-
WorkerRoulette.instance_variable_set("@pool_config", nil)
|
11
|
-
expect {WorkerRoulette.pool_size}.not_to raise_error
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|