delayed_job_dashboard 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +58 -0
- data/Rakefile +54 -0
- data/app/assets/javascripts/delayed_job_dashboard.js +4 -0
- data/app/assets/javascripts/jquery-1.6.2.min.js +18 -0
- data/app/assets/javascripts/jquery-ui-1.8.16.custom.min.js +363 -0
- data/app/assets/stylesheets/delayed_job_dashboard.css +36 -0
- data/app/assets/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/app/assets/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/stylesheets/smoothness/jquery-ui-1.8.16.custom.css +539 -0
- data/app/controllers/delayed_jobs_controller.rb +46 -0
- data/app/helpers/ben_eric.rb +3 -0
- data/app/helpers/delayed_jobs_helper.rb +9 -0
- data/app/helpers/monitor.rb +3 -0
- data/app/views/delayed_jobs/counts.js.erb +6 -0
- data/app/views/delayed_jobs/failing.html.haml +23 -0
- data/app/views/delayed_jobs/future.html.haml +22 -0
- data/app/views/delayed_jobs/index.html.haml +107 -0
- data/app/views/delayed_jobs/overdue.html.haml +23 -0
- data/app/views/delayed_jobs/show.html.haml +45 -0
- data/app/views/delayed_jobs/wip.html.haml +22 -0
- data/app/views/layouts/delayed_jobs.html.haml +7 -0
- data/config/routes.rb +14 -0
- data/lib/app/dashboard_controller.rb +5 -0
- data/lib/delayed_job_dashboard/engine.rb +11 -0
- data/lib/delayed_job_dashboard/version.rb +3 -0
- data/lib/delayed_job_dashboard.rb +4 -0
- data/lib/tasks/delayed_job_dashboard_tasks.rake +6 -0
- data/test/delayed_job_dashboard_test.rb +7 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +45 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/test_helper.rb +10 -0
- metadata +204 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters :format => [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation:
|
3
|
+
# first created -> highest priority.
|
4
|
+
|
5
|
+
# Sample of regular route:
|
6
|
+
# match 'products/:id' => 'catalog#view'
|
7
|
+
# Keep in mind you can assign values other than :controller and :action
|
8
|
+
|
9
|
+
# Sample of named route:
|
10
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
+
|
13
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
+
# resources :products
|
15
|
+
|
16
|
+
# Sample resource route with options:
|
17
|
+
# resources :products do
|
18
|
+
# member do
|
19
|
+
# get 'short'
|
20
|
+
# post 'toggle'
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# collection do
|
24
|
+
# get 'sold'
|
25
|
+
# end
|
26
|
+
# end
|
27
|
+
|
28
|
+
# Sample resource route with sub-resources:
|
29
|
+
# resources :products do
|
30
|
+
# resources :comments, :sales
|
31
|
+
# resource :seller
|
32
|
+
# end
|
33
|
+
|
34
|
+
# Sample resource route with more complex sub-resources
|
35
|
+
# resources :products do
|
36
|
+
# resources :comments
|
37
|
+
# resources :sales do
|
38
|
+
# get 'recent', :on => :collection
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
|
42
|
+
# Sample resource route within a namespace:
|
43
|
+
# namespace :admin do
|
44
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
+
# # (app/controllers/admin/products_controller.rb)
|
46
|
+
# resources :products
|
47
|
+
# end
|
48
|
+
|
49
|
+
# You can have the root of your site routed with "root"
|
50
|
+
# just remember to delete public/index.html.
|
51
|
+
# root :to => 'welcome#index'
|
52
|
+
|
53
|
+
# See how all your routes lay out with "rake routes"
|
54
|
+
|
55
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
+
# match ':controller(/:action(/:id(.:format)))'
|
58
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
ADDED
@@ -0,0 +1,204 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: delayed_job_dashboard
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Ben Johnson
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-09-09 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rails
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
version: 3.1.0
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: haml
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: sqlite3
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
type: :development
|
63
|
+
version_requirements: *id003
|
64
|
+
description: manipulate and view delayed_job information in your app.
|
65
|
+
email:
|
66
|
+
- deafgreatdane@gmail.com
|
67
|
+
executables: []
|
68
|
+
|
69
|
+
extensions: []
|
70
|
+
|
71
|
+
extra_rdoc_files: []
|
72
|
+
|
73
|
+
files:
|
74
|
+
- app/assets/javascripts/delayed_job_dashboard.js
|
75
|
+
- app/assets/javascripts/jquery-1.6.2.min.js
|
76
|
+
- app/assets/javascripts/jquery-ui-1.8.16.custom.min.js
|
77
|
+
- app/assets/stylesheets/delayed_job_dashboard.css
|
78
|
+
- app/assets/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
|
79
|
+
- app/assets/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
|
80
|
+
- app/assets/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
|
81
|
+
- app/assets/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
|
82
|
+
- app/assets/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png
|
83
|
+
- app/assets/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
|
84
|
+
- app/assets/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
|
85
|
+
- app/assets/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
86
|
+
- app/assets/stylesheets/smoothness/images/ui-icons_222222_256x240.png
|
87
|
+
- app/assets/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png
|
88
|
+
- app/assets/stylesheets/smoothness/images/ui-icons_454545_256x240.png
|
89
|
+
- app/assets/stylesheets/smoothness/images/ui-icons_888888_256x240.png
|
90
|
+
- app/assets/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png
|
91
|
+
- app/assets/stylesheets/smoothness/jquery-ui-1.8.16.custom.css
|
92
|
+
- app/controllers/delayed_jobs_controller.rb
|
93
|
+
- app/helpers/ben_eric.rb
|
94
|
+
- app/helpers/delayed_jobs_helper.rb
|
95
|
+
- app/helpers/monitor.rb
|
96
|
+
- app/views/delayed_jobs/counts.js.erb
|
97
|
+
- app/views/delayed_jobs/failing.html.haml
|
98
|
+
- app/views/delayed_jobs/future.html.haml
|
99
|
+
- app/views/delayed_jobs/index.html.haml
|
100
|
+
- app/views/delayed_jobs/overdue.html.haml
|
101
|
+
- app/views/delayed_jobs/show.html.haml
|
102
|
+
- app/views/delayed_jobs/wip.html.haml
|
103
|
+
- app/views/layouts/delayed_jobs.html.haml
|
104
|
+
- config/routes.rb
|
105
|
+
- lib/app/dashboard_controller.rb
|
106
|
+
- lib/delayed_job_dashboard/engine.rb
|
107
|
+
- lib/delayed_job_dashboard/version.rb
|
108
|
+
- lib/delayed_job_dashboard.rb
|
109
|
+
- lib/tasks/delayed_job_dashboard_tasks.rake
|
110
|
+
- MIT-LICENSE
|
111
|
+
- Rakefile
|
112
|
+
- README.rdoc
|
113
|
+
- test/delayed_job_dashboard_test.rb
|
114
|
+
- test/dummy/app/assets/javascripts/application.js
|
115
|
+
- test/dummy/app/assets/stylesheets/application.css
|
116
|
+
- test/dummy/app/controllers/application_controller.rb
|
117
|
+
- test/dummy/app/helpers/application_helper.rb
|
118
|
+
- test/dummy/app/views/layouts/application.html.erb
|
119
|
+
- test/dummy/config/application.rb
|
120
|
+
- test/dummy/config/boot.rb
|
121
|
+
- test/dummy/config/database.yml
|
122
|
+
- test/dummy/config/environment.rb
|
123
|
+
- test/dummy/config/environments/development.rb
|
124
|
+
- test/dummy/config/environments/production.rb
|
125
|
+
- test/dummy/config/environments/test.rb
|
126
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
127
|
+
- test/dummy/config/initializers/inflections.rb
|
128
|
+
- test/dummy/config/initializers/mime_types.rb
|
129
|
+
- test/dummy/config/initializers/secret_token.rb
|
130
|
+
- test/dummy/config/initializers/session_store.rb
|
131
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
132
|
+
- test/dummy/config/locales/en.yml
|
133
|
+
- test/dummy/config/routes.rb
|
134
|
+
- test/dummy/config.ru
|
135
|
+
- test/dummy/public/404.html
|
136
|
+
- test/dummy/public/422.html
|
137
|
+
- test/dummy/public/500.html
|
138
|
+
- test/dummy/public/favicon.ico
|
139
|
+
- test/dummy/Rakefile
|
140
|
+
- test/dummy/script/rails
|
141
|
+
- test/test_helper.rb
|
142
|
+
homepage:
|
143
|
+
licenses: []
|
144
|
+
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
hash: 3
|
156
|
+
segments:
|
157
|
+
- 0
|
158
|
+
version: "0"
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
none: false
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
hash: 3
|
165
|
+
segments:
|
166
|
+
- 0
|
167
|
+
version: "0"
|
168
|
+
requirements: []
|
169
|
+
|
170
|
+
rubyforge_project:
|
171
|
+
rubygems_version: 1.8.9
|
172
|
+
signing_key:
|
173
|
+
specification_version: 3
|
174
|
+
summary: A dashboard for delayed_job.
|
175
|
+
test_files:
|
176
|
+
- test/delayed_job_dashboard_test.rb
|
177
|
+
- test/dummy/app/assets/javascripts/application.js
|
178
|
+
- test/dummy/app/assets/stylesheets/application.css
|
179
|
+
- test/dummy/app/controllers/application_controller.rb
|
180
|
+
- test/dummy/app/helpers/application_helper.rb
|
181
|
+
- test/dummy/app/views/layouts/application.html.erb
|
182
|
+
- test/dummy/config/application.rb
|
183
|
+
- test/dummy/config/boot.rb
|
184
|
+
- test/dummy/config/database.yml
|
185
|
+
- test/dummy/config/environment.rb
|
186
|
+
- test/dummy/config/environments/development.rb
|
187
|
+
- test/dummy/config/environments/production.rb
|
188
|
+
- test/dummy/config/environments/test.rb
|
189
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
190
|
+
- test/dummy/config/initializers/inflections.rb
|
191
|
+
- test/dummy/config/initializers/mime_types.rb
|
192
|
+
- test/dummy/config/initializers/secret_token.rb
|
193
|
+
- test/dummy/config/initializers/session_store.rb
|
194
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
195
|
+
- test/dummy/config/locales/en.yml
|
196
|
+
- test/dummy/config/routes.rb
|
197
|
+
- test/dummy/config.ru
|
198
|
+
- test/dummy/public/404.html
|
199
|
+
- test/dummy/public/422.html
|
200
|
+
- test/dummy/public/500.html
|
201
|
+
- test/dummy/public/favicon.ico
|
202
|
+
- test/dummy/Rakefile
|
203
|
+
- test/dummy/script/rails
|
204
|
+
- test/test_helper.rb
|