resque-http_stats 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9871ba89d45c91300334021857ddd28950b1c1ed
4
- data.tar.gz: 9b27e47ad4dd77fed43552623cd5ad645b35d24d
3
+ metadata.gz: 41b6ef81ec81a60812a705ff88e7ad185524dd0e
4
+ data.tar.gz: 838a9c3855c7e3e537ae76df89a49b55c25be819
5
5
  SHA512:
6
- metadata.gz: 9ed042d4541635d423637d7561bbe5ea1bc1b77948733558e75ada73b26169c3ff253ed73b965515e1723f7bcce94a03168bcf67b5b5c0a11e24ed75adac0bd0
7
- data.tar.gz: 62406b545f2dceb1ca38af001c094918ea0905d9c9db0c0e4fbb556643b2662208b9a31f122c17f6e301724ccd0ecf4c64e5cd7ac9ec1409cdfa398636906886
6
+ metadata.gz: 01a5b5dd2ffbeec54a2eae12f922de00f9dcbcfd07ca7ccb53128d92af7b62a2f76b8c62b83bc2080e7b63448469ea9cdd8871012819e01cf8068013005e6193
7
+ data.tar.gz: 69b99cf8790fd5d2056de51807641e7c2e50a476add53eaf91bd82cec50c40b05cb1c40f36bff76d25e4d6e4971144f7efa676950605b8b2467902c67d5e0f3f
@@ -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.map { |q| { q => Resque.size(q)} }
14
+ queues: Resque.queues.inject({}) do |res, q|
15
+ res[q] = Resque.size(q)
16
+ res
17
+ end
15
18
  }}
16
19
 
17
20
  [
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module HttpStats
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ class HttpStats < MiniTest::Test
16
16
  "pending" => 0,
17
17
  "workers" => 0,
18
18
  "working" => 0,
19
- "queues" => []
19
+ "queues" => {}
20
20
  }}
21
21
  assert_equal(expect, response)
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-http_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - skv