sidekiq-failures 0.4.4 → 0.4.5

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: 08c41125bbe72948d1b462f9f1d6ebd70bae27f7
4
- data.tar.gz: 48daa18cbaa840748707705598a819eba6be3b9c
3
+ metadata.gz: 3cf2e8b86ea584dc2d01d303a8b810a3527da318
4
+ data.tar.gz: ea8731360ed096a6f6b885cb3f078a80bb96747e
5
5
  SHA512:
6
- metadata.gz: 544127a6faf08b4853db2ab37f56bb8eed697a576772d06e59fc91fa6749181d91144a05c135dcbc74ad88c09a074d4d183f8a6c79eecb114c84efdba2556140
7
- data.tar.gz: 661fc63c8be480df3a07ed42539003f52fd4ef0cd883c9d0fb787c6d91a2a91e9eb30a3fe021d75acc527f438c16637753f8690abb055c5ff937dfe7918c60cd
6
+ metadata.gz: dd021e8afcbd6a59c8d725d2954f7d45cbb50475b3c342b8e5d00533dd3c72594548d4fdb197e3d5a3cd51d158f000c050da57d353ef294c67bfe7880243dad8
7
+ data.tar.gz: 422b175ead022b822ae08838a03365f22e6e4a0a2213ff8f9c2756ed3f41b14c58e9e7f950f32adce8d8f25e440c3a5a8b78753798a4162ddf8626cd9bb2c977
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.4.5
4
+
5
+ * Limit error message to 500 symbols (@antonzaytsev)
6
+ * Add conditional csrf_tag to each form instance (@JamesChevalier)
7
+
3
8
  ## 0.4.4
4
9
 
5
10
  * Add paging to bottom of the view (@czarneckid)
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Failures
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
@@ -24,6 +24,7 @@
24
24
  </tbody>
25
25
  </table>
26
26
  <form class="form-horizontal" action="<%= root_path %>failures/<%= job_params(@failure, @failure.score) %>" method="post">
27
+ <%= csrf_tag if respond_to?(:csrf_tag) %>
27
28
  <a class="btn" href="<%= root_path %>failures"><%= t('GoBack') %></a>
28
29
  <input class="btn btn-primary" type="submit" name="retry" value="<%= t('RetryNow') %>" />
29
30
  <input class="btn btn-danger" type="submit" name="delete" value="<%= t('Delete') %>" />
@@ -12,6 +12,7 @@
12
12
 
13
13
  <% if @failures.size > 0 %>
14
14
  <form action="<%= root_path %>failures" method="post">
15
+ <%= csrf_tag if respond_to?(:csrf_tag) %>
15
16
  <table class="table table-striped table-bordered table-white">
16
17
  <thead>
17
18
  <tr>
@@ -44,7 +45,7 @@
44
45
  <td><%= safe_relative_time(entry['failed_at']) %></td>
45
46
  <td style="overflow: auto; padding: 10px;">
46
47
  <a class="backtrace" href="#" onclick="$(this).next().toggle(); return false">
47
- <%= h entry['error_class'] %>: <%= h entry['error_message'] %>
48
+ <%= h entry['error_class'] %>: <%= h entry['error_message'].size > 500 ? entry['error_message'][0..500] + '...' : entry['error_message'] %>
48
49
  </a>
49
50
  <pre style="display: none; background: none; border: 0; width: 100%; max-height: 30em; font-size: 0.8em; white-space: nowrap; overflow: auto;">
50
51
  <%= entry['error_backtrace'].join("<br />") if entry['error_backtrace'] %>
@@ -61,9 +62,11 @@
61
62
  </form>
62
63
 
63
64
  <form action="<%= root_path %>failures/all/delete" method="post">
65
+ <%= csrf_tag if respond_to?(:csrf_tag) %>
64
66
  <input class="btn btn-danger btn-xs pull-right" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
65
67
  </form>
66
68
  <form action="<%= root_path %>failures/all/retry" method="post">
69
+ <%= csrf_tag if respond_to?(:csrf_tag) %>
67
70
  <input class="btn btn-danger btn-xs pull-right" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
68
71
  </form>
69
72
 
@@ -77,5 +80,6 @@
77
80
  <div class="alert alert-success"><%= t('NoFailedJobsFound') %></div>
78
81
  <% end %>
79
82
  <form action="<%= root_path %>failures/all/reset" method="post">
83
+ <%= csrf_tag if respond_to?(:csrf_tag) %>
80
84
  <input class="btn btn-danger btn-xs pull-right" type="submit" name="reset" value="<%= t('Reset Counter') %>" data-confirm="<%= t('AreYouSure') %>" />
81
85
  </form>
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.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Silveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-08 00:00:00.000000000 Z
11
+ date: 2015-07-21 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.4.6
130
+ rubygems_version: 2.4.5
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,4 +136,3 @@ test_files:
136
136
  - test/middleware_test.rb
137
137
  - test/test_helper.rb
138
138
  - test/web_extension_test.rb
139
- has_rdoc: