delayed_job_web 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of delayed_job_web might be problematic. Click here for more details.

data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.1.0
data/bin/delayed_job_web CHANGED
File without changes
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{delayed_job_web}
8
- s.version = "1.0.3"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Erick Schmitt"]
12
- s.date = %q{2011-12-07}
12
+ s.date = %q{2012-02-14}
13
13
  s.default_executable = %q{delayed_job_web}
14
14
  s.description = %q{Web interface for delayed_job inspired by resque}
15
15
  s.email = %q{ejschmitt@gmail.com}
@@ -66,7 +66,7 @@ class DelayedJobWeb < Sinatra::Base
66
66
 
67
67
  %w(enqueued working pending failed).each do |page|
68
68
  get "/#{page}" do
69
- @jobs = delayed_jobs(page.to_sym).order('created_at desc').offset(start).limit(per_page)
69
+ @jobs = delayed_jobs(page.to_sym).order('created_at desc, id desc').offset(start).limit(per_page)
70
70
  @all_jobs = delayed_jobs(page.to_sym)
71
71
  haml page.to_sym
72
72
  end
@@ -1,5 +1,7 @@
1
1
  html { background:#efefef; font-family:Arial, Verdana, sans-serif; font-size:13px; }
2
2
  body { padding:0; margin:0; }
3
+ pre { font-family:Courier New; line-height:1.4em; }
4
+
3
5
  .hide { display:none; }
4
6
 
5
7
  .header { background:#000; padding:8px 5% 0 5%; border-bottom:1px solid #444;border-bottom:5px solid #3B5998;}
@@ -2,7 +2,8 @@
2
2
  %dl
3
3
  %dt ID
4
4
  %dd
5
- = job.id
5
+ %a{:name => job.id}
6
+ %a{:href => "##{job.id}"}=job.id
6
7
  %div.controls
7
8
  %a{:rel => 'retry', :href => u("requeue/#{job.id}")}Retry
8
9
  or
@@ -11,16 +12,20 @@
11
12
  %dd= job.priority
12
13
  %dt Attempts
13
14
  %dd= job.attempts
15
+ - if job.respond_to?(:queue) && job.queue
16
+ %dt Queue
17
+ %dd= job.queue
14
18
  %dt Handler
15
- %dd= job.handler
19
+ %dd
20
+ %pre= job.handler
16
21
  - if job.last_error
17
22
  %dt Last Error
18
23
  %dd
19
24
  %div.backtrace
20
- = job.last_error[0..100] + '...'
25
+ %pre= job.last_error[0..100] + '...'
21
26
  %a{:href => '#', :class => 'backtrace'} Toggle full message
22
27
  %div.backtrace.full.hide
23
- = job.last_error
28
+ %pre= job.last_error
24
29
  - if job.run_at
25
30
  %dt Run At
26
31
  %dd.time= job.run_at
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: delayed_job_web
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.3
5
+ version: 1.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Erick Schmitt
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-07 00:00:00 -05:00
13
+ date: 2012-02-14 00:00:00 -05:00
14
14
  default_executable: delayed_job_web
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -175,7 +175,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - ">="
177
177
  - !ruby/object:Gem::Version
178
- hash: -592718613070586521
178
+ hash: -3617714346137608611
179
179
  segments:
180
180
  - 0
181
181
  version: "0"