sidekiq-failures 0.4.3 → 0.4.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
  SHA1:
3
- metadata.gz: dbf773e3881e5c3f66679dc77ce221997c58442d
4
- data.tar.gz: 8fde6abd64a06cd529e7bf523a8f018c68cd9900
3
+ metadata.gz: 08c41125bbe72948d1b462f9f1d6ebd70bae27f7
4
+ data.tar.gz: 48daa18cbaa840748707705598a819eba6be3b9c
5
5
  SHA512:
6
- metadata.gz: 61dc54a740b82bd9317bec3240468dcd9fdb30663cc2eea05c2368fb117c307e5eeb2979388309177fd7c5a1bec692997e041675d6bba5d11265e95d8492a069
7
- data.tar.gz: 58fca490bba04d832220c1ee1689cb19adfb6a0b457d76fbd79f82b1171ace187990cd47147f3ac8c081bcf36453bb1aa0d858b923bdb2f91058048b27984050
6
+ metadata.gz: 544127a6faf08b4853db2ab37f56bb8eed697a576772d06e59fc91fa6749181d91144a05c135dcbc74ad88c09a074d4d183f8a6c79eecb114c84efdba2556140
7
+ data.tar.gz: 661fc63c8be480df3a07ed42539003f52fd4ef0cd883c9d0fb787c6d91a2a91e9eb30a3fe021d75acc527f438c16637753f8690abb055c5ff937dfe7918c60cd
@@ -1,16 +1,26 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.4.4
4
+
5
+ * Add paging to bottom of the view (@czarneckid)
6
+ * Always display failure count reset button (@mikeastock)
7
+ * Fix overflow for large backtrace messages (@marciotrindade)
8
+
3
9
  ## 0.4.3
10
+
4
11
  * Handle numeric timestamps format (@krasnoukhov)
5
12
 
6
13
  ## 0.4.2
14
+
7
15
  * Bump sidekiq dependency to 2.16.0 (@davetoxa)
8
16
  * Handle legacy timestamps (@maltoe)
9
17
 
10
18
  ## 0.4.1
19
+
11
20
  * Restore compatibility for failed payloads created with 0.3.0
12
21
 
13
22
  ## 0.4.0
23
+
14
24
  * Bump sidekiq dependency to sidekiq >= 2.16.0
15
25
  * Introduce delete(all) / retry(all) (@spectator)
16
26
  * Fix Sidekiq 3 compatibility (@petergoldstein)
@@ -18,6 +28,7 @@
18
28
  * Explicitly require sidekiq/api (@krasnoukhov)
19
29
 
20
30
  ## 0.3.0
31
+
21
32
  * Bump sidekiq dependency to sidekiq >= 2.14.0
22
33
  * Remove slim templates and dependecy
23
34
  * Escape exception info when outputing to html
@@ -28,15 +39,18 @@
28
39
  * Fix private method call (@bwthomas)
29
40
 
30
41
  ## 0.2.2
42
+
31
43
  * Support ERB for sidekiq >= 2.14.0 (@tobiassvn)
32
44
  * Bump sidekiq dep to >= 2.9.0
33
45
  * Show newest failures first (@PlugIN73)
34
46
  * Fix specs (@krasnoukhov)
35
47
 
36
48
  ## 0.2.1
49
+
37
50
  * Fix exhausted mode when retry is disabled (@wr0ngway)
38
51
 
39
52
  ## 0.2.0
53
+
40
54
  * Added processor identity to failure data (@krasnoukhov)
41
55
  * Handle Sidekiq::Shutdown exceptions (@krasnoukhov)
42
56
  * Add failures maximum count option (@mathieulaporte)
@@ -45,6 +59,7 @@
45
59
  * Stop overloading find_template (@zquestz)
46
60
 
47
61
  ## 0.1.0
62
+
48
63
  * Allow per worker configuration of failure tracking mode. Thanks to
49
64
  @kbaum for most of the work.
50
65
  * Prevent sidekiq-failures from loading up sidekiq/processor (and thus
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Failures
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
@@ -46,7 +46,7 @@
46
46
  <a class="backtrace" href="#" onclick="$(this).next().toggle(); return false">
47
47
  <%= h entry['error_class'] %>: <%= h entry['error_message'] %>
48
48
  </a>
49
- <pre style="display: none; background: none; border: 0; width: 100%; max-height: 30em; font-size: 0.8em; white-space: nowrap;">
49
+ <pre style="display: none; background: none; border: 0; width: 100%; max-height: 30em; font-size: 0.8em; white-space: nowrap; overflow: auto;">
50
50
  <%= entry['error_backtrace'].join("<br />") if entry['error_backtrace'] %>
51
51
  </pre>
52
52
  <p>
@@ -60,9 +60,6 @@
60
60
  <input class="btn btn-danger btn-xs pull-left" type="submit" name="delete" value="<%= t('Delete') %>" />
61
61
  </form>
62
62
 
63
- <form action="<%= root_path %>failures/all/reset" method="post">
64
- <input class="btn btn-danger btn-xs pull-right" type="submit" name="reset" value="<%= t('Reset Counter') %>" data-confirm="<%= t('AreYouSure') %>" />
65
- </form>
66
63
  <form action="<%= root_path %>failures/all/delete" method="post">
67
64
  <input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
68
65
  </form>
@@ -70,6 +67,15 @@
70
67
  <input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
71
68
  </form>
72
69
 
70
+ <% if @failures.size > 0 && @total_size > @count %>
71
+ <div class="col-sm-4">
72
+ <%= erb :_paging, :locals => { :url => "#{root_path}failures" } %>
73
+ </div>
74
+ <% end %>
75
+
73
76
  <% else %>
74
77
  <div class="alert alert-success"><%= t('NoFailedJobsFound') %></div>
75
78
  <% end %>
79
+ <form action="<%= root_path %>failures/all/reset" method="post">
80
+ <input class="btn btn-danger btn-xs pull-right" type="submit" name="reset" value="<%= t('Reset Counter') %>" data-confirm="<%= t('AreYouSure') %>" />
81
+ </form>
@@ -29,6 +29,12 @@ module Sidekiq
29
29
  last_response.body.must_match /No failed jobs found/
30
30
  end
31
31
 
32
+ it 'has the reset counter form and action' do
33
+ get '/failures'
34
+ last_response.body.must_match /failures\/all\/reset/
35
+ last_response.body.must_match /Reset Counter/
36
+ end
37
+
32
38
  describe 'when there are failures' do
33
39
  before do
34
40
  create_sample_failure
@@ -46,11 +52,6 @@ module Sidekiq
46
52
  last_response.body.wont_match /No failed jobs found/
47
53
  end
48
54
 
49
- it 'has the reset counter form and action' do
50
- last_response.body.must_match /failures\/all\/reset/
51
- last_response.body.must_match /Reset Counter/
52
- end
53
-
54
55
  it 'can reset counter' do
55
56
  assert_equal failed_count, "1"
56
57
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-failures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Silveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-30 00:00:00.000000000 Z
11
+ date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.2.2
130
+ rubygems_version: 2.4.6
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Keeps track of Sidekiq failed jobs and adds a tab to the Web UI to let you
@@ -136,3 +136,4 @@ test_files:
136
136
  - test/middleware_test.rb
137
137
  - test/test_helper.rb
138
138
  - test/web_extension_test.rb
139
+ has_rdoc: