sidekiq-queue-stats 1.0.2 → 1.0.3

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: b5942a0e6ee10eadf6ed9c0e21d768a9c4821396
4
- data.tar.gz: bd4b8813b560294d719d715ba0a694b3679b429a
3
+ metadata.gz: 040c2775a432c3db474725620b8a36a26f20bf08
4
+ data.tar.gz: 6da0a35136e728df9e03a46383a74051eeded396
5
5
  SHA512:
6
- metadata.gz: 28344dc41cb3a434c01b3d512adbe0e5fb6a16b5a320932cc2065dfafc277d746054b19d02d2401fbc4e22d1112b6730975c3f87f1a9842c515639c51d49f8e7
7
- data.tar.gz: 254dbcc2239524c29b5115db8c2e4737c0bafe296d3ee3d7ec2965e6e4f762033273343df1540db3fb3e7195a3fd56c6ebbbcbf55257dbbc47208eb9fb2f9660
6
+ metadata.gz: 7c5744bf185ba0b4d52d986e659a8660071f2bcc7f90dae011ee7c096887dc3d97fa8568ac27793dc0868bb1a615307cb53f10ec1ce482da48367be5e9819440
7
+ data.tar.gz: 78b398d6a334aa2dc4793fbdad702c806f4a59574c421dd833cf139fbac74af615d076dc72a801f2c3cc43b76f009925e65622dd6a71e0e6d2773da680804d72
data/.gitignore CHANGED
@@ -17,4 +17,4 @@ tmp
17
17
  Gemfile.lock
18
18
  .ruby-version
19
19
  .ruby-gemset
20
-
20
+ .env
data/Gemfile CHANGED
@@ -4,5 +4,6 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'sidekiq', ENV['SIDEKIQ_VERSION'] if ENV['SIDEKIQ_VERSION']
7
- gem 'minitest'
8
- gem 'pry'
7
+ gem 'minitest', :groups => [:development, :test]
8
+ gem 'pry', :groups => [:development, :test]
9
+ gem 'dotenv-rails', :groups => [:development, :test]
data/README.md CHANGED
@@ -15,7 +15,7 @@ gem 'sidekiq-queue-stats'
15
15
  ## Usage
16
16
 
17
17
  Simply having the gem in your Gemfile is enough to get you started. Your
18
- job count will be visible via a Worker Stats tab in the Web UI.
18
+ job count will be visible via a Queue Stats tab in the Web UI.
19
19
 
20
20
  ![Web UI](http://i.imgur.com/eSNVK0O.png)
21
21
  ## Dependencies
@@ -13,5 +13,5 @@ end
13
13
 
14
14
  if defined?(Sidekiq::Web)
15
15
  Sidekiq::Web.register Sidekiq::QueueStats::WebExtension
16
- Sidekiq::Web.tabs["Worker Stats"] = "queue_stats"
16
+ Sidekiq::Web.tabs["Queue Stats"] = "queue_stats"
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module QueueStats
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
data/test/test_helper.rb CHANGED
@@ -2,13 +2,16 @@ require "minitest/autorun"
2
2
  require "minitest/spec"
3
3
  require "minitest/mock"
4
4
  require "rack/test"
5
+ require 'dotenv'
5
6
 
6
7
  require "sidekiq"
7
8
  require "sidekiq-queue-stats"
8
9
  require "sidekiq/processor"
9
10
  require "sidekiq/fetch"
10
11
  require "sidekiq/cli"
12
+ Dotenv.load
11
13
 
12
14
  Sidekiq.logger.level = Logger::ERROR
13
15
 
14
- REDIS = Sidekiq::RedisConnection.create(url: "redis://localhost/15")
16
+ redis_url = ENV['REDIS_URL'] ? ENV['REDIS_URL'] : "redis://localhost/15"
17
+ REDIS = Sidekiq::RedisConnection.create(url: redis_url)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-queue-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Stephens