resque-http_stats 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/resque/http_stats.rb +4 -1
- data/lib/resque/http_stats/version.rb +1 -1
- data/test/http_stats_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41b6ef81ec81a60812a705ff88e7ad185524dd0e
|
4
|
+
data.tar.gz: 838a9c3855c7e3e537ae76df89a49b55c25be819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01a5b5dd2ffbeec54a2eae12f922de00f9dcbcfd07ca7ccb53128d92af7b62a2f76b8c62b83bc2080e7b63448469ea9cdd8871012819e01cf8068013005e6193
|
7
|
+
data.tar.gz: 69b99cf8790fd5d2056de51807641e7c2e50a476add53eaf91bd82cec50c40b05cb1c40f36bff76d25e4d6e4971144f7efa676950605b8b2467902c67d5e0f3f
|
data/lib/resque/http_stats.rb
CHANGED
@@ -11,7 +11,10 @@ module Resque
|
|
11
11
|
pending: info[:pending],
|
12
12
|
workers: info[:workers],
|
13
13
|
working: info[:working],
|
14
|
-
queues: Resque.queues.
|
14
|
+
queues: Resque.queues.inject({}) do |res, q|
|
15
|
+
res[q] = Resque.size(q)
|
16
|
+
res
|
17
|
+
end
|
15
18
|
}}
|
16
19
|
|
17
20
|
[
|
data/test/http_stats_test.rb
CHANGED