sidekiq-monitor-stats 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: fec6d8d7005afd117c9e7a599624709eb16a8a17b182f4f0514812ea887bcb6b
4
- data.tar.gz: cb55b235e81cd97919bdba20355896a18d15a758dfb17af513ec37842dae2f4c
3
+ metadata.gz: 67c6cf4acdea682047a4e5acafa003544a0995eb7d548fd2441416fde9802f5e
4
+ data.tar.gz: 2131d5e5121f55913978862789e692bbc521d81492ceb1ba33c2bdfb1976c595
5
5
  SHA512:
6
- metadata.gz: 1b17637e5e4a412bcde74d1de22eca11625ef30821180130d456d8a37ac2ccf18cb71b2a33557114a09a506cebf9b4bc060780519656bba73362473a55e7d01e
7
- data.tar.gz: 1640fc7a3c88050a18b37bcbcf3b6f29098dfd320593f1a0c127f7965fa4ae4ea6d185a36a2f4118572490e8c1da06af8f428700f2b4bfa65e223f9b08a207f2
6
+ metadata.gz: ac07618df275c74c257678659d7c15a77921611be7dbc0b3525b7ecf656b841563d474f07685dfbf17de9f1c28a0d69fe4b2fdccbb86669ff74397aff53667de
7
+ data.tar.gz: 5cb472ead78ba4a18a7771e4f131a6ce72838849457f2c788dc66f298ab02d142fbc5f86808850b51a23e472d8489139ba1bbc449847892a090003c9960d4047
@@ -2,11 +2,14 @@ language: ruby
2
2
  cache: bundler
3
3
  services:
4
4
  - redis-server
5
+ before_install:
6
+ - yes | gem update --system --force
7
+ - gem install bundler -v 1.17.2
5
8
  rvm:
6
- - 2.3.4
7
- - 2.4.1
8
9
  - 2.5
9
10
  - 2.6
11
+ - 2.7
10
12
  gemfile:
13
+ - gemfiles/sidekiq_6.gemfile
11
14
  - gemfiles/sidekiq_5.gemfile
12
15
  - gemfiles/sidekiq_4.gemfile
data/Appraisals CHANGED
@@ -1,7 +1,11 @@
1
+ appraise "sidekiq-6" do
2
+ gem "sidekiq", "~> 6.0"
3
+ end
4
+
1
5
  appraise "sidekiq-5" do
2
- gem "sidekiq", "< 6.0"
6
+ gem "sidekiq", "~> 5.0"
3
7
  end
4
8
 
5
9
  appraise "sidekiq-4" do
6
- gem "sidekiq", "< 5.0"
10
+ gem "sidekiq", "~> 4.0"
7
11
  end
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "byebug"
6
- gem "sidekiq", "< 5.0"
6
+ gem "sidekiq", "~> 4.0"
7
7
 
8
8
  gemspec path: "../"
@@ -48,7 +48,7 @@ DEPENDENCIES
48
48
  mocha
49
49
  rack-test
50
50
  rake (~> 10.0)
51
- sidekiq (< 5.0)
51
+ sidekiq (~> 4.0)
52
52
  sidekiq-monitor-stats!
53
53
  sinatra
54
54
 
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "byebug"
6
- gem "sidekiq", "< 6.0"
6
+ gem "sidekiq", "~> 5.0"
7
7
 
8
8
  gemspec path: "../"
@@ -48,7 +48,7 @@ DEPENDENCIES
48
48
  mocha
49
49
  rack-test
50
50
  rake (~> 10.0)
51
- sidekiq (< 6.0)
51
+ sidekiq (~> 5.0)
52
52
  sidekiq-monitor-stats!
53
53
  sinatra
54
54
 
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "byebug"
6
+ gem "sidekiq", "~> 6.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ sidekiq-monitor-stats (0.0.3)
5
+ sidekiq
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ appraisal (2.3.0)
11
+ bundler
12
+ rake
13
+ thor (>= 0.14.0)
14
+ byebug (11.1.3)
15
+ connection_pool (2.2.3)
16
+ minitest (5.14.1)
17
+ mocha (1.11.2)
18
+ mustermann (1.1.1)
19
+ ruby2_keywords (~> 0.0.1)
20
+ rack (2.2.2)
21
+ rack-protection (2.0.8.1)
22
+ rack
23
+ rack-test (1.1.0)
24
+ rack (>= 1.0, < 3)
25
+ rake (10.5.0)
26
+ redis (4.1.4)
27
+ ruby2_keywords (0.0.2)
28
+ sidekiq (6.0.7)
29
+ connection_pool (>= 2.2.2)
30
+ rack (~> 2.0)
31
+ rack-protection (>= 2.0.0)
32
+ redis (>= 4.1.0)
33
+ sinatra (2.0.8.1)
34
+ mustermann (~> 1.0)
35
+ rack (~> 2.0)
36
+ rack-protection (= 2.0.8.1)
37
+ tilt (~> 2.0)
38
+ thor (1.0.1)
39
+ tilt (2.0.10)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ appraisal
46
+ bundler (~> 1.7)
47
+ byebug
48
+ minitest (>= 5.0.0)
49
+ mocha
50
+ rack-test
51
+ rake (~> 10.0)
52
+ sidekiq (~> 6.0)
53
+ sidekiq-monitor-stats!
54
+ sinatra
55
+
56
+ BUNDLED WITH
57
+ 1.17.2
@@ -1,9 +1,12 @@
1
1
  require 'sidekiq/api'
2
2
  require 'sidekiq/web'
3
+ if Sidekiq::VERSION >= "6.0.0"
4
+ require 'sidekiq/monitor'
5
+ end
3
6
  require 'sidekiq/monitor/web'
4
7
 
5
8
  module Sidekiq
6
- module Monitor
9
+ class Monitor
7
10
  class Stats
8
11
  def queue_metrics
9
12
  Sidekiq::Queue.all.each_with_object({}) do |queue, hash|
@@ -1,7 +1,7 @@
1
1
  require 'sidekiq/monitor/stats'
2
2
 
3
3
  module Sidekiq
4
- module Monitor
4
+ class Monitor
5
5
  module Web
6
6
  def self.registered(app)
7
7
  app.get "/monitor-stats" do
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "sidekiq-monitor-stats"
7
- spec.version = "0.0.3"
7
+ spec.version = "0.0.4"
8
8
  spec.authors = ["Albert Llop"]
9
9
  spec.email = ["albert@getharvest.com"]
10
10
  spec.summary = %q{Add an endpoint to your running application that is running Sidekiq that returns useful data in JSON format.}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-monitor-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Llop
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-11 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,6 +140,8 @@ files:
140
140
  - gemfiles/sidekiq_4.gemfile.lock
141
141
  - gemfiles/sidekiq_5.gemfile
142
142
  - gemfiles/sidekiq_5.gemfile.lock
143
+ - gemfiles/sidekiq_6.gemfile
144
+ - gemfiles/sidekiq_6.gemfile.lock
143
145
  - lib/sidekiq/monitor/stats.rb
144
146
  - lib/sidekiq/monitor/web.rb
145
147
  - sidekiq-monitor-stats.gemspec