delayed_job_web 1.2.0 → 1.2.1

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/Gemfile CHANGED
@@ -8,7 +8,6 @@ source "http://rubygems.org"
8
8
  group :development do
9
9
  gem "shoulda", ">= 0"
10
10
  gem "bundler", "> 1.0.0"
11
- gem "jeweler", "~> 1.6.4"
12
- gem "rcov", ">= 0"
11
+ gem "jeweler"
13
12
  gem "rack-test", ">= 0"
14
13
  end
data/Rakefile CHANGED
@@ -32,14 +32,6 @@ Rake::TestTask.new(:test) do |test|
32
32
  test.verbose = true
33
33
  end
34
34
 
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- test.rcov_opts << '--exclude "gems/*"'
41
- end
42
-
43
35
  task :default => :test
44
36
 
45
37
  require 'rdoc/task'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.2.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "delayed_job_web"
8
- s.version = "1.2.0"
8
+ s.version = "1.2.1"
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 = "2012-05-18"
12
+ s.date = "2013-11-13"
13
13
  s.description = "Web interface for delayed_job inspired by resque"
14
14
  s.email = "ejschmitt@gmail.com"
15
15
  s.executables = ["delayed_job_web"]
@@ -50,7 +50,7 @@ Gem::Specification.new do |s|
50
50
  s.homepage = "http://github.com/ejschmitt/delayed_job_web"
51
51
  s.licenses = ["MIT"]
52
52
  s.require_paths = ["lib"]
53
- s.rubygems_version = "1.8.22"
53
+ s.rubygems_version = "1.8.23"
54
54
  s.summary = "Web interface for delayed_job"
55
55
 
56
56
  if s.respond_to? :specification_version then
@@ -63,9 +63,8 @@ Gem::Specification.new do |s|
63
63
  s.add_runtime_dependency(%q<delayed_job>, ["> 2.0.3"])
64
64
  s.add_runtime_dependency(%q<rdoc>, [">= 0"])
65
65
  s.add_development_dependency(%q<shoulda>, [">= 0"])
66
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
67
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
68
- s.add_development_dependency(%q<rcov>, [">= 0"])
66
+ s.add_development_dependency(%q<bundler>, ["> 1.0.0"])
67
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
69
68
  s.add_development_dependency(%q<rack-test>, [">= 0"])
70
69
  else
71
70
  s.add_dependency(%q<sinatra>, [">= 0.9.2"])
@@ -74,9 +73,8 @@ Gem::Specification.new do |s|
74
73
  s.add_dependency(%q<delayed_job>, ["> 2.0.3"])
75
74
  s.add_dependency(%q<rdoc>, [">= 0"])
76
75
  s.add_dependency(%q<shoulda>, [">= 0"])
77
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
78
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
79
- s.add_dependency(%q<rcov>, [">= 0"])
76
+ s.add_dependency(%q<bundler>, ["> 1.0.0"])
77
+ s.add_dependency(%q<jeweler>, [">= 0"])
80
78
  s.add_dependency(%q<rack-test>, [">= 0"])
81
79
  end
82
80
  else
@@ -86,9 +84,8 @@ Gem::Specification.new do |s|
86
84
  s.add_dependency(%q<delayed_job>, ["> 2.0.3"])
87
85
  s.add_dependency(%q<rdoc>, [">= 0"])
88
86
  s.add_dependency(%q<shoulda>, [">= 0"])
89
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
90
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
91
- s.add_dependency(%q<rcov>, [">= 0"])
87
+ s.add_dependency(%q<bundler>, ["> 1.0.0"])
88
+ s.add_dependency(%q<jeweler>, [">= 0"])
92
89
  s.add_dependency(%q<rack-test>, [">= 0"])
93
90
  end
94
91
  end
@@ -83,6 +83,12 @@ class DelayedJobWeb < Sinatra::Base
83
83
  redirect back
84
84
  end
85
85
 
86
+ get "/reload/:id" do
87
+ job = delayed_job.find(params[:id])
88
+ job.update_attributes(:run_at => Time.now, :failed_at => nil, :locked_by => nil, :locked_at => nil, :last_error => nil, :attempts => 0)
89
+ redirect back
90
+ end
91
+
86
92
  post "/failed/clear" do
87
93
  delayed_job.destroy_all(delayed_job_sql(:failed))
88
94
  redirect u('failed')
@@ -8,6 +8,8 @@
8
8
  %a{:rel => 'retry', :href => u("requeue/#{job.id}")}Retry
9
9
  or
10
10
  %a{:rel => 'remove', :href => u("remove/#{job.id}")}Remove
11
+ or
12
+ %a{:rel => 'reload_job', :href => u("reload/#{job.id}")}Reload Job
11
13
  %dt Priority
12
14
  %dd= job.priority
13
15
  %dt Attempts
@@ -17,15 +19,15 @@
17
19
  %dd= job.queue
18
20
  %dt Handler
19
21
  %dd
20
- %pre= job.handler
22
+ %pre&= job.handler
21
23
  - if job.last_error
22
24
  %dt Last Error
23
25
  %dd
24
26
  %div.backtrace
25
- %pre= job.last_error[0..100] + '...'
27
+ %pre&= job.last_error[0..100] + '...'
26
28
  %a{:href => '#', :class => 'backtrace'} Toggle full message
27
29
  %div.backtrace.full.hide
28
- %pre= job.last_error
30
+ %pre&= job.last_error
29
31
  - if job.run_at
30
32
  %dt Run At
31
33
  %dd.time= job.run_at.rfc822
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-18 00:00:00.000000000 Z
12
+ date: 2013-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -112,7 +112,7 @@ dependencies:
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
115
- - - ~>
115
+ - - ! '>'
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.0.0
118
118
  type: :development
@@ -120,27 +120,11 @@ dependencies:
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
- - - ~>
123
+ - - ! '>'
124
124
  - !ruby/object:Gem::Version
125
125
  version: 1.0.0
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: jeweler
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ~>
132
- - !ruby/object:Gem::Version
133
- version: 1.6.4
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ~>
140
- - !ruby/object:Gem::Version
141
- version: 1.6.4
142
- - !ruby/object:Gem::Dependency
143
- name: rcov
144
128
  requirement: !ruby/object:Gem::Requirement
145
129
  none: false
146
130
  requirements:
@@ -221,6 +205,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
205
  - - ! '>='
222
206
  - !ruby/object:Gem::Version
223
207
  version: '0'
208
+ segments:
209
+ - 0
210
+ hash: 2330436251690914550
224
211
  required_rubygems_version: !ruby/object:Gem::Requirement
225
212
  none: false
226
213
  requirements:
@@ -229,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
216
  version: '0'
230
217
  requirements: []
231
218
  rubyforge_project:
232
- rubygems_version: 1.8.24
219
+ rubygems_version: 1.8.23
233
220
  signing_key:
234
221
  specification_version: 3
235
222
  summary: Web interface for delayed_job