resque-history 1.12.1 → 1.12.2
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 +4 -4
- data/README.md +9 -8
- data/VERSION +1 -1
- data/lib/resque-history/server/views/history.erb +36 -34
- data/lib/resque-history/server/views/{next_more.erb → navigation.erb} +0 -0
- data/resque-history.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 973d4f1e19b0b62c98f1bb653872a9e1f13d6263
|
|
4
|
+
data.tar.gz: 22c6939a27e9519ab660dca25e2ef6bf2a3807f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2cd60366ce5d02a1b572ec346d8b980e857430d063003c2729e08d8252806df89f49fa94fd266cf5ce4758f97fa7787b1dbd057d101236fb1afe4ff12bcc3462
|
|
7
|
+
data.tar.gz: bd78289d154c376776e3aa705279857af502949fe4c5acf4c9f5e09b7e0008dfe2dd13ad9c4111ab0615ba938d1b6c150f4483b480277dd88a2eeb8b0bca2f97
|
data/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
# Resque History
|
|
2
|
-
[![alt build status][1]][2]
|
|
3
|
-
[![
|
|
4
|
-
[![
|
|
1
|
+
# Resque History
|
|
2
|
+
[![alt build status][1]][2]
|
|
3
|
+
[](https://gemnasium.com/ilyakatz/resque-history)
|
|
4
|
+
[](https://codeclimate.com/github/ilyakatz/resque-history)
|
|
5
|
+
[](http://badge.fury.io/rb/resque-history)
|
|
5
6
|
|
|
6
|
-
[1]:
|
|
7
|
+
[1]: http://img.shields.io/travis/ilyakatz/resque-history.svg
|
|
7
8
|
[2]: http://travis-ci.org/#!/ilyakatz/resque-history
|
|
8
9
|
|
|
9
10
|
|
|
@@ -32,7 +33,7 @@ Usage / Examples
|
|
|
32
33
|
|
|
33
34
|
### Job History
|
|
34
35
|
|
|
35
|
-
By default resque-history stores 500 history items on redis,
|
|
36
|
+
By default resque-history stores 500 history items on redis,
|
|
36
37
|
but if you want to store less items, assign @max_history in the job class.
|
|
37
38
|
|
|
38
39
|
```ruby
|
|
@@ -51,7 +52,7 @@ but if you want to store less items, assign @max_history in the job class.
|
|
|
51
52
|
|
|
52
53
|
### 3rd Party classes
|
|
53
54
|
|
|
54
|
-
If you want to use resque history with 3rd party resque jobs,
|
|
55
|
+
If you want to use resque history with 3rd party resque jobs,
|
|
55
56
|
extended the classes that you want to be recorded in history
|
|
56
57
|
|
|
57
58
|
```ruby
|
|
@@ -80,7 +81,7 @@ Install
|
|
|
80
81
|
Add to your Gemfile
|
|
81
82
|
|
|
82
83
|
$ gem "resque-history"
|
|
83
|
-
|
|
84
|
+
|
|
84
85
|
Add to routes.rb file
|
|
85
86
|
|
|
86
87
|
require 'resque-history/server'
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.12.
|
|
1
|
+
1.12.2
|
|
@@ -18,43 +18,45 @@
|
|
|
18
18
|
<% end %>jobs</p>
|
|
19
19
|
|
|
20
20
|
<div id="main">
|
|
21
|
-
<%=
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
<%= erb File.read(ResqueHistory::Server.erb_path('navigation.erb')), {},
|
|
22
|
+
:start => params[:start].to_i, :size => size %>
|
|
23
|
+
|
|
24
|
+
<table>
|
|
25
|
+
<tr>
|
|
26
|
+
<th>Job</th>
|
|
27
|
+
<th>Arguments</th>
|
|
28
|
+
<th>Time</th>
|
|
29
|
+
<th>Execution</th>
|
|
30
|
+
</tr>
|
|
31
|
+
<% history.each do |history| %>
|
|
32
|
+
<% j = JSON.parse(history, :symbolize_names => true, :symbolize_keys => true) %>
|
|
33
|
+
<tr class='<%= j[:error].nil? ? "" : "failure" %>' >
|
|
34
|
+
<td class='queue'><%= j[:class] %></td>
|
|
34
35
|
<td class='argument'><pre><%= j[:args] ? show_args(j[:args]) : '' %></pre></td>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
<td class='time'><%= j[:time] %></td>
|
|
37
|
+
<td class='execution'><%= format_execution(j[:execution]) %></td>
|
|
38
|
+
</tr>
|
|
39
|
+
<% end %>
|
|
40
|
+
</table>
|
|
40
41
|
|
|
41
|
-
<%=
|
|
42
|
+
<%= erb File.read(ResqueHistory::Server.erb_path('navigation.erb')), {},
|
|
43
|
+
:start => params[:start].to_i, :size => size %>
|
|
42
44
|
</div>
|
|
43
45
|
|
|
44
46
|
<style type="text/css">
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
#main table tr.failure td {
|
|
48
|
+
background: #ffecec;
|
|
49
|
+
border-top: 2px solid #d37474;
|
|
50
|
+
font-size: 90%;
|
|
51
|
+
color: #d37474;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.argument {
|
|
55
|
+
max-width: 250px;
|
|
56
|
+
word-wrap: break-word;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#main table tr.failure td a {
|
|
60
|
+
color: #d37474;
|
|
61
|
+
}
|
|
60
62
|
</style>
|
|
File without changes
|
data/resque-history.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: resque-history 1.12.
|
|
5
|
+
# stub: resque-history 1.12.2 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "resque-history"
|
|
9
|
-
s.version = "1.12.
|
|
9
|
+
s.version = "1.12.2"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Katzmopolitan"]
|
|
14
|
-
s.date = "2014-09-
|
|
14
|
+
s.date = "2014-09-08"
|
|
15
15
|
s.description = "Show history of recently executed jobs"
|
|
16
16
|
s.email = "ilyakatz@gmail.com"
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
|
33
33
|
"lib/resque-history/plugins/history.rb",
|
|
34
34
|
"lib/resque-history/server.rb",
|
|
35
35
|
"lib/resque-history/server/views/history.erb",
|
|
36
|
-
"lib/resque-history/server/views/
|
|
36
|
+
"lib/resque-history/server/views/navigation.erb",
|
|
37
37
|
"lib/version.rb",
|
|
38
38
|
"resque-history.gemspec",
|
|
39
39
|
"spec/redis-test.conf",
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: resque-history
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.12.
|
|
4
|
+
version: 1.12.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Katzmopolitan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-09-
|
|
11
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: resque
|
|
@@ -144,7 +144,7 @@ files:
|
|
|
144
144
|
- lib/resque-history/plugins/history.rb
|
|
145
145
|
- lib/resque-history/server.rb
|
|
146
146
|
- lib/resque-history/server/views/history.erb
|
|
147
|
-
- lib/resque-history/server/views/
|
|
147
|
+
- lib/resque-history/server/views/navigation.erb
|
|
148
148
|
- lib/version.rb
|
|
149
149
|
- resque-history.gemspec
|
|
150
150
|
- spec/redis-test.conf
|