sidekiq-monitoring 1.1.0 → 1.2.0

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: 675a38eb7d23d9f7a4cd41827388c64509a1dee5
4
- data.tar.gz: 43a2368a96c3535aeaf5d0b45c74a72059ffb840
3
+ metadata.gz: 3dca02fdd9b9ccd8a481dcceceaa7eb8508c147f
4
+ data.tar.gz: d937018ee6e611209451eb5e283591348feea379
5
5
  SHA512:
6
- metadata.gz: de767a96630d623c759d8bff8df3a857a18e6cf633f0e710b452b0c902483f040776becd553213e0c6708b92e28a2831c3ba7ba654b3c8a9ac012aad68dc3770
7
- data.tar.gz: 8f22fbeb67f081e22c621560db1724872765c15d0964083db60890dccc1e47690da9c0b7e0a48a597eafcbac1c7cff204310a3737f1c259dc202b1e86d528b5c
6
+ metadata.gz: 13cb2b57e1081d036dd83f0d5812dfac815429bcfb95fc7aa2a1ae5a6b3be98f68820fe3f334a797b0776289617d2144ae57b39c9e2ad680af6ccb0fb98c9ccb
7
+ data.tar.gz: 27663efcfb2e3aedf3119b2683bc543729a5e94e13232421c249dcc97153831c8040b998de0d9dafe69e1fd43d28c24d005aace7a5e15cb6ac7d5ce9731fe298
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1 @@
1
+ 2.3.1
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Dimelo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "sidekiq/monitoring"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -2,7 +2,7 @@ require 'sinatra/base'
2
2
  require 'multi_json'
3
3
 
4
4
  class SidekiqMonitoring < Sinatra::Base
5
-
5
+ VERSION = "1.2.0"
6
6
  # Set your down thresholds configuration
7
7
  # {'default' => [ 1_000, 2_000 ], 'low' => [ 10_000, 20_000 ] }
8
8
  def self.thresholds=(thresholds)
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sidekiq-monitoring'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sidekiq-monitoring"
8
+ spec.version = SidekiqMonitoring::VERSION
9
+ spec.authors = ["Jeremy Carlier"]
10
+ spec.email = ["jeremy.carlier@dimelo.com"]
11
+
12
+ spec.summary = %q{Addons to provide a monitoring API for Sidekiq}
13
+ spec.description = %q{Give a state of sidekiq available queues}
14
+ spec.homepage = "http://github.com/dimelo/sidekiq-monitoring"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_runtime_dependency "sinatra", ">= 1.3"
25
+ spec.add_runtime_dependency "multi_json"
26
+
27
+ spec.add_development_dependency "rack-test"
28
+ spec.add_development_dependency "bundler", "~> 1.14"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "rspec", "~> 3.0"
31
+ spec.add_development_dependency "sidekiq", "~> 3.1"
32
+ end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Carlier
8
8
  autorequire:
9
- bindir: ''
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-02 00:00:00.000000000 Z
11
+ date: 2017-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
@@ -52,20 +52,48 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.14'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: rspec
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '2'
89
+ version: '3.0'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '2'
96
+ version: '3.0'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: sidekiq
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -81,14 +109,23 @@ dependencies:
81
109
  - !ruby/object:Gem::Version
82
110
  version: '3.1'
83
111
  description: Give a state of sidekiq available queues
84
- email: jeremy.carlier@dimelo.com
112
+ email:
113
+ - jeremy.carlier@dimelo.com
85
114
  executables: []
86
115
  extensions: []
87
116
  extra_rdoc_files: []
88
117
  files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".ruby-version"
121
+ - Gemfile
122
+ - LICENSE.txt
89
123
  - README.md
90
- - VERSION
124
+ - Rakefile
125
+ - bin/console
126
+ - bin/setup
91
127
  - lib/sidekiq-monitoring.rb
128
+ - sidekiq-monitoring.gemspec
92
129
  homepage: http://github.com/dimelo/sidekiq-monitoring
93
130
  licenses:
94
131
  - MIT
@@ -101,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
138
  requirements:
102
139
  - - ">="
103
140
  - !ruby/object:Gem::Version
104
- version: 1.9.2
141
+ version: '0'
105
142
  required_rubygems_version: !ruby/object:Gem::Requirement
106
143
  requirements:
107
144
  - - ">="
@@ -109,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
146
  version: '0'
110
147
  requirements: []
111
148
  rubyforge_project:
112
- rubygems_version: 2.5.1
149
+ rubygems_version: 2.6.13
113
150
  signing_key:
114
151
  specification_version: 4
115
152
  summary: Addons to provide a monitoring API for Sidekiq
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.1.0