sidekiq-expected_failures 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -11
- data/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/lib/sidekiq/expected_failures/version.rb +1 -1
- data/lib/sidekiq/expected_failures/web.rb +2 -7
- data/sidekiq-expected_failures.gemspec +1 -1
- data/web/views/expected_failures.erb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a990ba6ca757a09aaa97bb9f2121d0523898db5f
|
4
|
+
data.tar.gz: 2b69b65792f7c63c9c45582aa368429640bd085d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a52f48d151ce12a511d9284908de664312a51ac5ad2443b2dc3f44940874533a028c9ec7b0cb16aca1be72128efdb40ae9792e54fca27a9c92b51f9b7c481fb
|
7
|
+
data.tar.gz: 7812162b47a775fd2d4dafd2bb1735c167c8c937be124cfdb6e7cbecf411b9f5d3ad3877678382e7e643b65c2a92a460212419460e76df465719b93c8ee91f1f
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -3,17 +3,9 @@ sudo: false
|
|
3
3
|
cache: bundler
|
4
4
|
|
5
5
|
rvm:
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.2.
|
9
|
-
- jruby
|
10
|
-
- jruby-head
|
11
|
-
- rbx-2
|
12
|
-
matrix:
|
13
|
-
allow_failures:
|
14
|
-
- rvm: rbx-2
|
15
|
-
- rvm: jruby-head
|
16
|
-
- rvm: jruby
|
6
|
+
- 2.3.4
|
7
|
+
- 2.4.1
|
8
|
+
- 2.2.7
|
17
9
|
|
18
10
|
services:
|
19
11
|
- redis-server
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -72,6 +72,8 @@ end
|
|
72
72
|
|
73
73
|
Just be sure to load this one after `sidekiq-failures`, otherwise failed jobs will end up logged twice - and you probably don't want that.
|
74
74
|
|
75
|
+
If you want to load the web panel be sure to require `sidekiq/expected_failures/web` after `sidekiq/web`.
|
76
|
+
|
75
77
|
### Clearing failures
|
76
78
|
|
77
79
|
At the moment you have 3 public methods in `Sidekiq::ExpectedFailures` module:
|
@@ -22,15 +22,10 @@ module Sidekiq
|
|
22
22
|
end
|
23
23
|
|
24
24
|
app.get "/expected_failures/stats" do
|
25
|
-
|
26
|
-
|
27
|
-
content_type :json
|
28
|
-
Sidekiq.dump_json({
|
29
|
-
failures: @counters
|
30
|
-
})
|
25
|
+
json(failures: Sidekiq::ExpectedFailures.counters)
|
31
26
|
end
|
32
27
|
|
33
|
-
app.get "/expected_failures
|
28
|
+
app.get "/expected_failures" do
|
34
29
|
@dates = Sidekiq::ExpectedFailures.dates
|
35
30
|
@count = (params[:count] || 50).to_i
|
36
31
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency "sidekiq", ">= 2.
|
20
|
+
spec.add_dependency "sidekiq", ">= 4.2.0"
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.3"
|
23
23
|
spec.add_development_dependency "rake"
|
@@ -78,7 +78,7 @@
|
|
78
78
|
|
79
79
|
<p class="clearfix"></p>
|
80
80
|
|
81
|
-
<%= erb :_paging, :
|
81
|
+
<%= erb :_paging, locals: { url: "#{root_path}expected_failures?date=#{@date}" } %>
|
82
82
|
|
83
83
|
<table id="expected" class="queues table table-hover table-bordered table-striped table-white">
|
84
84
|
<thead>
|
@@ -99,7 +99,7 @@
|
|
99
99
|
<% end %>
|
100
100
|
</table>
|
101
101
|
|
102
|
-
<%= erb :_paging, :
|
102
|
+
<%= erb :_paging, locals: { url: "#{root_path}expected_failures/#{@date}" } %>
|
103
103
|
|
104
104
|
<% else %>
|
105
105
|
<p class="clearfix"></p>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-expected_failures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafal Wojsznis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 4.2.0
|
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
|
-
version: 2.
|
26
|
+
version: 4.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
193
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.
|
194
|
+
rubygems_version: 2.6.8
|
195
195
|
signing_key:
|
196
196
|
specification_version: 4
|
197
197
|
summary: If you don't rely on sidekiq' retry behavior, you handle exceptions on your
|