sidekiq-failures 0.4.1 → 0.4.2

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: 71027ff19b10b529acabafaba413fb8e6c79cd94
4
- data.tar.gz: b8d994984de5da5050c78962704169f30f6c4e60
3
+ metadata.gz: ef8e45759e8632e06c43e6d68074a4c12c8e4ad6
4
+ data.tar.gz: 9388a41322307036eeee488e71be8695c481fa9b
5
5
  SHA512:
6
- metadata.gz: 5eb5e39114e6a384d8285dd6e9e4d32d62d6dc8adbfaa76c55af1f7bce617bb93fc5242cba0c24c87168ec7d7fa450880d602e7f06b341d09f378aefb73957f6
7
- data.tar.gz: d5e89bad2b074dedc2d64976becae9d30651aae28c55799572c3870db87de42c4f8e8b1903f4d50f9fdb0b8c97b6959cc5ae88e95db41615ac981e77e8981d56
6
+ metadata.gz: 1975b9a74bbaea66c03dad69e62b5ed007a4137cd0c9d634238d0a4f15bb28f6a6eb0aa3395433392f0d19f6408f655ebf944052623fd4fad55b40460c6f5750
7
+ data.tar.gz: dc950ec4c3015ddfab679297011e284127ffb16adb62ad931b8e7cb049aafa303b2f29dfbd05bbe9b19c1764be569870b92173b98150488c443d199597291fa0
data/.travis.yml CHANGED
@@ -5,10 +5,13 @@ rvm:
5
5
  - 1.9.3
6
6
  - jruby-19mode
7
7
  - 2.0.0
8
- - 2.1.0
9
- - 2.1.1
8
+ - 2.1
10
9
  env:
11
10
  matrix:
12
11
  - SIDEKIQ_VERSION="~> 2.16.0"
13
12
  - SIDEKIQ_VERSION="~> 2.17.0"
14
13
  - SIDEKIQ_VERSION="~> 3.0.0"
14
+ matrix:
15
+ allow_failures:
16
+ - rvm: 1.9.3
17
+ - rvm: jruby-19mode
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.4.2
4
+ * Bump sidekiq dependency to 2.16.0 (@davetoxa)
5
+ * Handle legacy timestamps (@maltoe)
6
+
3
7
  ## 0.4.1
4
8
  * Restore compatibility for failed payloads created with 0.3.0
5
9
 
data/README.md CHANGED
@@ -136,7 +136,7 @@ Sidekiq::Failures.reset_failures
136
136
 
137
137
  ## Dependencies
138
138
 
139
- Depends on Sidekiq >= 2.14.0
139
+ Depends on Sidekiq >= 2.16.0
140
140
 
141
141
  ## Contributing
142
142
 
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Failures
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
@@ -41,7 +41,7 @@
41
41
  <td>
42
42
  <a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
43
43
  </td>
44
- <td><%= relative_time(Time.at(entry['failed_at'])) %></td>
44
+ <td><%= relative_time(entry['failed_at'].is_a?(Float) ? Time.at(entry['failed_at']) : Time.parse(entry['failed_at'])) %></td>
45
45
  <td style="overflow: auto; padding: 10px;">
46
46
  <a class="backtrace" href="#" onclick="$(this).next().toggle(); return false">
47
47
  <%= h entry['error_class'] %>: <%= h entry['error_message'] %>
@@ -168,6 +168,17 @@ module Sidekiq
168
168
  end
169
169
  end
170
170
 
171
+ describe 'when there are failures with old timestamp format' do
172
+ before do
173
+ create_sample_failure failed_at: Time.now.strftime('%Y-%m-%dT%H:%M:%SZ')
174
+ get '/failures'
175
+ end
176
+
177
+ it 'should be successful' do
178
+ last_response.status.must_equal 200
179
+ end
180
+ end
181
+
171
182
  describe 'when there is failure' do
172
183
  before do
173
184
  create_sample_failure
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.1
4
+ version: 0.4.2
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-05-01 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq