delayed_job_web 1.1.0 → 1.1.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/README.markdown CHANGED
@@ -33,7 +33,7 @@ Add a route to your application for accessing the interface
33
33
  match "/delayed_job" => DelayedJobWeb, :anchor => false
34
34
  ```
35
35
 
36
- You probably want to password protect the interfce, an easy way is to add something like this your config.ru file
36
+ You probably want to password protect the interface, an easy way is to add something like this your config.ru file
37
37
 
38
38
  ```ruby
39
39
  if Rails.env.production?
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -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.1.0"
8
+ s.version = "1.1.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 = %q{2012-02-14}
12
+ s.date = %q{2012-03-29}
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}
@@ -79,8 +79,7 @@ class DelayedJobWeb < Sinatra::Base
79
79
 
80
80
  get "/requeue/:id" do
81
81
  job = delayed_job.find(params[:id])
82
- job.run_at = Time.now
83
- job.save
82
+ job.update_attributes(:run_at => Time.now, :failed_at => nil)
84
83
  redirect back
85
84
  end
86
85
 
@@ -90,7 +89,7 @@ class DelayedJobWeb < Sinatra::Base
90
89
  end
91
90
 
92
91
  post "/requeue/all" do
93
- delayed_jobs(:failed).each{|dj| dj.run_at = Time.now; dj.save}
92
+ delayed_jobs(:failed).update_all(:run_at => Time.now, :failed_at => nil)
94
93
  redirect back
95
94
  end
96
95
 
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.1.0
5
+ version: 1.1.1
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: 2012-02-14 00:00:00 -05:00
13
+ date: 2012-03-29 00:00:00 -04: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: -3617714346137608611
178
+ hash: 331709547764882470
179
179
  segments:
180
180
  - 0
181
181
  version: "0"