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 +4 -4
- data/.gitignore +1 -1
- data/Gemfile +3 -2
- data/README.md +1 -1
- data/lib/sidekiq/queue_stats.rb +1 -1
- data/lib/sidekiq/queue_stats/version.rb +1 -1
- data/test/test_helper.rb +4 -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: 040c2775a432c3db474725620b8a36a26f20bf08
|
4
|
+
data.tar.gz: 6da0a35136e728df9e03a46383a74051eeded396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c5744bf185ba0b4d52d986e659a8660071f2bcc7f90dae011ee7c096887dc3d97fa8568ac27793dc0868bb1a615307cb53f10ec1ce482da48367be5e9819440
|
7
|
+
data.tar.gz: 78b398d6a334aa2dc4793fbdad702c806f4a59574c421dd833cf139fbac74af615d076dc72a801f2c3cc43b76f009925e65622dd6a71e0e6d2773da680804d72
|
data/.gitignore
CHANGED
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
|
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
|
data/lib/sidekiq/queue_stats.rb
CHANGED
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
|
-
|
16
|
+
redis_url = ENV['REDIS_URL'] ? ENV['REDIS_URL'] : "redis://localhost/15"
|
17
|
+
REDIS = Sidekiq::RedisConnection.create(url: redis_url)
|