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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b0560cc62185edb0b32da06f74a18460e9fdd4e
4
- data.tar.gz: f68316c748d4e7a3e3c03928f8e32d9e45c6fe00
3
+ metadata.gz: 973d4f1e19b0b62c98f1bb653872a9e1f13d6263
4
+ data.tar.gz: 22c6939a27e9519ab660dca25e2ef6bf2a3807f4
5
5
  SHA512:
6
- metadata.gz: 9dc73a74ca445ffdb8ef2a46fb9eeb66008944eff3d796a05cf3a3fd914463803f01e216b87a26e05c4876cb4d440a175ca92cd60614a5c24d4ebac5ca698196
7
- data.tar.gz: ea762d5547321cc88f74a346eca574dcd2f099e1532b7de49aba5cbae4f0b11322d58252c5e0b198d2088919addfe356fe332cac90eb2d069414217fafa41a8d
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][![Dependency Status](https://gemnasium.com/ilyakatz/resque-history.png?travis)](https://gemnasium.com/ilyakatz/resque-history)
3
- [![Code Climate](https://codeclimate.com/github/ilyakatz/resque-history.png)](https://codeclimate.com/github/ilyakatz/resque-history)
4
- [![Gem Version](https://badge.fury.io/rb/resque-history.png)](http://badge.fury.io/rb/resque-history)
1
+ # Resque History
2
+ [![alt build status][1]][2]
3
+ [![Dependency Status](http://img.shields.io/gemnasium/ilyakatz/he.svg)](https://gemnasium.com/ilyakatz/resque-history)
4
+ [![Code Climate](http://img.shields.io/codeclimate/github/ilyakatz/resque-history.svg)](https://codeclimate.com/github/ilyakatz/resque-history)
5
+ [![Gem Version](http://img.shields.io/gem/v/resque-history.svg)](http://badge.fury.io/rb/resque-history)
5
6
 
6
- [1]: https://secure.travis-ci.org/ilyakatz/resque-history.png?branch=master
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
+ 1.12.2
@@ -18,43 +18,45 @@
18
18
  <% end %>jobs</p>
19
19
 
20
20
  <div id="main">
21
- <%= partial :next_more, :start => params[:start].to_i, :size => size %>
22
-
23
- <table>
24
- <tr>
25
- <th>Job</th>
26
- <th>Arguments</th>
27
- <th>Time</th>
28
- <th>Execution</th>
29
- </tr>
30
- <% history.each do |history| %>
31
- <% j = JSON.parse(history, :symbolize_names => true, :symbolize_keys => true) %>
32
- <tr class='<%= j[:error].nil? ? "" : "failure" %>' >
33
- <td class='queue'><%= j[:class] %></td>
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
- <td class='time'><%= j[:time] %></td>
36
- <td class='execution'><%= format_execution(j[:execution]) %></td>
37
- </tr>
38
- <% end %>
39
- </table>
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
- <%= partial :next_more, :start => start, :size => size %>
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
- #main table tr.failure td {
46
- background: #ffecec;
47
- border-top: 2px solid #d37474;
48
- font-size: 90%;
49
- color: #d37474;
50
- }
51
-
52
- .argument {
53
- max-width: 250px;
54
- word-wrap: break-word;
55
- }
56
-
57
- #main table tr.failure td a {
58
- color: #d37474;
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>
@@ -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.1 ruby lib
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.1"
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-07"
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/next_more.erb",
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.1
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-07 00:00:00.000000000 Z
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/next_more.erb
147
+ - lib/resque-history/server/views/navigation.erb
148
148
  - lib/version.rb
149
149
  - resque-history.gemspec
150
150
  - spec/redis-test.conf