queue_classic_admin 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -12
- data/app/controllers/queue_classic_admin/application_controller.rb +1 -0
- data/app/controllers/queue_classic_admin/queue_classic_jobs_controller.rb +6 -0
- data/app/controllers/queue_classic_admin/queue_classic_later_jobs_controller.rb +6 -0
- data/app/models/queue_classic_admin/job_common.rb +2 -0
- data/app/views/queue_classic_admin/shared/_job_list.html.erb +7 -1
- data/config/routes.rb +11 -2
- data/lib/queue_classic_admin/version.rb +1 -1
- metadata +33 -197
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/application.rb +0 -59
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -15
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/qc.rb +0 -3
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130626005404_setup_q_classic.rb +0 -9
- data/test/dummy/db/schema.rb +0 -25
- data/test/dummy/log/development.log +0 -7382
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/enqueue_stuff.rb +0 -3
- data/test/dummy/script/rails +0 -6
- data/test/dummy/tmp/cache/assets/C47/770/sprockets%2F731c1b418629b262752df50b811830d8 +0 -0
- data/test/dummy/tmp/cache/assets/C63/090/sprockets%2F52a4220f99a6792ab5b38398590848e6 +0 -0
- data/test/dummy/tmp/cache/assets/C65/970/sprockets%2F603023e85311a52ad880a40a61a93d09 +0 -0
- data/test/dummy/tmp/cache/assets/C77/EB0/sprockets%2Fd44446833b7391e4235ce1620812f1cd +0 -0
- data/test/dummy/tmp/cache/assets/C80/7E0/sprockets%2F72b2d9371d2a28919335a352d77d4d16 +0 -0
- data/test/dummy/tmp/cache/assets/C95/EB0/sprockets%2F1ce07a9c31863b89991a715e295756d8 +0 -0
- data/test/dummy/tmp/cache/assets/CA7/9F0/sprockets%2F16fb36a63e1b29a17f6e05183d249107 +0 -0
- data/test/dummy/tmp/cache/assets/CAB/1B0/sprockets%2F73273f3e028910302c5cdec87f47d007 +0 -0
- data/test/dummy/tmp/cache/assets/CB2/470/sprockets%2F28c92908f6375dd4c22246fd400154fe +0 -0
- data/test/dummy/tmp/cache/assets/CC8/0F0/sprockets%2F88c7bec3a358463f8915b46266c90c89 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CE2/1D0/sprockets%2F15f9f1ed72e033a56396c2f64f90212f +0 -0
- data/test/dummy/tmp/cache/assets/CE4/830/sprockets%2F28a48b303d68bc5bb998577efa105460 +0 -0
- data/test/dummy/tmp/cache/assets/D01/400/sprockets%2Fe0c40acbd45d09b38088378721e3b3a2 +0 -0
- data/test/dummy/tmp/cache/assets/D01/AF0/sprockets%2F0b2d522e2e5b8e54a4d41d31549d5c70 +0 -0
- data/test/dummy/tmp/cache/assets/D11/100/sprockets%2F245cbeb74ed68217a7a7e02997503bc5 +0 -0
- data/test/dummy/tmp/cache/assets/D15/480/sprockets%2F7db6c79b319c401bbd54a509e66e8482 +0 -0
- data/test/dummy/tmp/cache/assets/D1E/A00/sprockets%2F2e51bac84698ca87e4e293c3b5939b81 +0 -0
- data/test/dummy/tmp/cache/assets/D27/A60/sprockets%2F2a00c991a1c5364a8bbea53160f6ad71 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D3D/B70/sprockets%2Fda6c2a5128bdb48893801bf9935e2bc1 +0 -0
- data/test/dummy/tmp/cache/assets/D40/4E0/sprockets%2F8476ef7da6e14ce27cd951052dc50d33 +0 -0
- data/test/dummy/tmp/cache/assets/D42/A40/sprockets%2F27702773fab6e9c662d02a16a94b8efd +0 -0
- data/test/dummy/tmp/cache/assets/D44/930/sprockets%2Fef7fe4c88828e810cd058e3277aa3b01 +0 -0
- data/test/dummy/tmp/cache/assets/D46/930/sprockets%2F5e39368e6a521b9e00f75b6cc4dc518f +0 -0
- data/test/dummy/tmp/cache/assets/D47/320/sprockets%2F03e79d9fcbcd465545ab948f1136d7a2 +0 -0
- data/test/dummy/tmp/cache/assets/D49/830/sprockets%2F810812682e67fcb948fa46eb4b0c8f2f +0 -0
- data/test/dummy/tmp/cache/assets/D49/FE0/sprockets%2F9fd8019256eb9e4a5da017d9e2722e9b +0 -0
- data/test/dummy/tmp/cache/assets/D4C/B30/sprockets%2Fdba89e1f15d375895781fb21a6d7bc65 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D52/A50/sprockets%2F6ad94be95ef8f6055681c1d568380cfb +0 -0
- data/test/dummy/tmp/cache/assets/D52/A60/sprockets%2F24a40551c4c0fe6cbb24270191f0cfbc +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D65/A60/sprockets%2Fc43a267e70ea13772f9dd38a0b7adc23 +0 -0
- data/test/dummy/tmp/cache/assets/D68/850/sprockets%2F7ffd5005ac4d4fcdc177b8131e4703e5 +0 -0
- data/test/dummy/tmp/cache/assets/D6E/210/sprockets%2Fd1e8d63edbd5bc83448a86a2e2a76242 +0 -0
- data/test/dummy/tmp/cache/assets/D74/FD0/sprockets%2Fcbbf3afb75554fc790996d213b444f3c +0 -0
- data/test/dummy/tmp/cache/assets/D7F/9F0/sprockets%2F8ada4593db5e026e1f383ee9d566b7d9 +0 -0
- data/test/dummy/tmp/cache/assets/D82/620/sprockets%2Fdccad8fc9e94c971c4b23fe182177848 +0 -0
- data/test/dummy/tmp/cache/assets/D8D/C80/sprockets%2F1df75b4006a6c14d6bba8c7b5221fcc6 +0 -0
- data/test/dummy/tmp/cache/assets/D95/2F0/sprockets%2Fe5fad03ed53e808b210d4e3b3bd69f06 +0 -0
- data/test/dummy/tmp/cache/assets/DA1/820/sprockets%2Fc41773fdb1e43f95c2e6710f8ace5c6b +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DEA/700/sprockets%2Fca5ce92b20c18cbb584ab7da6c0ae147 +0 -0
- data/test/dummy/tmp/cache/assets/DF2/E60/sprockets%2Ff41261aed7ce78bf8ac2e328ac4ab03d +0 -0
- data/test/dummy/tmp/cache/assets/DFC/A60/sprockets%2Fba8ebe45dcead726907c4dce581a72c2 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E35/DB0/sprockets%2F5dae79fac5d06a52c6f9abac99c7a4e4 +0 -0
- data/test/dummy/tmp/cache/assets/E59/930/sprockets%2Ff286c9c9c1bbae871fa0bc23da5ffca6 +0 -0
- data/test/dummy/tmp/cache/assets/E5A/2D0/sprockets%2Ff87bbbd5bbc3411d8d108e79de6aedab +0 -0
- data/test/dummy/tmp/restart.txt +0 -0
- data/test/fixtures/queue_classic_admin/queue_classic_jobs.yml +0 -11
- data/test/fixtures/queue_classic_admin/queue_classic_later_jobs.yml +0 -11
- data/test/functional/queue_classic_admin/queue_classic_jobs_controller_test.rb +0 -51
- data/test/functional/queue_classic_admin/queue_classic_later_jobs_controller_test.rb +0 -51
- data/test/integration/navigation_test.rb +0 -10
- data/test/queue_classic_admin_test.rb +0 -7
- data/test/test_helper.rb +0 -15
- data/test/unit/helpers/queue_classic_admin/queue_classic_jobs_helper_test.rb +0 -6
- data/test/unit/helpers/queue_classic_admin/queue_classic_later_jobs_helper_test.rb +0 -6
- data/test/unit/queue_classic_admin/queue_classic_job_test.rb +0 -9
- data/test/unit/queue_classic_admin/queue_classic_later_job_test.rb +0 -9
data/test/dummy/public/404.html
DELETED
@@ -1,26 +0,0 @@
|
|
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>
|
data/test/dummy/public/422.html
DELETED
@@ -1,26 +0,0 @@
|
|
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>
|
data/test/dummy/public/500.html
DELETED
@@ -1,25 +0,0 @@
|
|
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
|
-
</div>
|
24
|
-
</body>
|
25
|
-
</html>
|
File without changes
|
data/test/dummy/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
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'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/dummy/tmp/restart.txt
DELETED
File without changes
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
-
|
3
|
-
# This model initially had no columns defined. If you add columns to the
|
4
|
-
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
-
# below each fixture, per the syntax in the comments below
|
6
|
-
#
|
7
|
-
one: {}
|
8
|
-
# column: value
|
9
|
-
#
|
10
|
-
two: {}
|
11
|
-
# column: value
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
-
|
3
|
-
# This model initially had no columns defined. If you add columns to the
|
4
|
-
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
-
# below each fixture, per the syntax in the comments below
|
6
|
-
#
|
7
|
-
one: {}
|
8
|
-
# column: value
|
9
|
-
#
|
10
|
-
two: {}
|
11
|
-
# column: value
|
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
module QueueClassicAdmin
|
4
|
-
class QueueClassicJobsControllerTest < ActionController::TestCase
|
5
|
-
setup do
|
6
|
-
@queue_classic_job = queue_classic_jobs(:one)
|
7
|
-
end
|
8
|
-
|
9
|
-
test "should get index" do
|
10
|
-
get :index
|
11
|
-
assert_response :success
|
12
|
-
assert_not_nil assigns(:queue_classic_jobs)
|
13
|
-
end
|
14
|
-
|
15
|
-
test "should get new" do
|
16
|
-
get :new
|
17
|
-
assert_response :success
|
18
|
-
end
|
19
|
-
|
20
|
-
test "should create queue_classic_job" do
|
21
|
-
assert_difference('QueueClassicJob.count') do
|
22
|
-
post :create, queue_classic_job: { }
|
23
|
-
end
|
24
|
-
|
25
|
-
assert_redirected_to queue_classic_job_path(assigns(:queue_classic_job))
|
26
|
-
end
|
27
|
-
|
28
|
-
test "should show queue_classic_job" do
|
29
|
-
get :show, id: @queue_classic_job
|
30
|
-
assert_response :success
|
31
|
-
end
|
32
|
-
|
33
|
-
test "should get edit" do
|
34
|
-
get :edit, id: @queue_classic_job
|
35
|
-
assert_response :success
|
36
|
-
end
|
37
|
-
|
38
|
-
test "should update queue_classic_job" do
|
39
|
-
put :update, id: @queue_classic_job, queue_classic_job: { }
|
40
|
-
assert_redirected_to queue_classic_job_path(assigns(:queue_classic_job))
|
41
|
-
end
|
42
|
-
|
43
|
-
test "should destroy queue_classic_job" do
|
44
|
-
assert_difference('QueueClassicJob.count', -1) do
|
45
|
-
delete :destroy, id: @queue_classic_job
|
46
|
-
end
|
47
|
-
|
48
|
-
assert_redirected_to queue_classic_jobs_path
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
module QueueClassicAdmin
|
4
|
-
class QueueClassicLaterJobsControllerTest < ActionController::TestCase
|
5
|
-
setup do
|
6
|
-
@queue_classic_later_job = queue_classic_later_jobs(:one)
|
7
|
-
end
|
8
|
-
|
9
|
-
test "should get index" do
|
10
|
-
get :index
|
11
|
-
assert_response :success
|
12
|
-
assert_not_nil assigns(:queue_classic_later_jobs)
|
13
|
-
end
|
14
|
-
|
15
|
-
test "should get new" do
|
16
|
-
get :new
|
17
|
-
assert_response :success
|
18
|
-
end
|
19
|
-
|
20
|
-
test "should create queue_classic_later_job" do
|
21
|
-
assert_difference('QueueClassicLaterJob.count') do
|
22
|
-
post :create, queue_classic_later_job: { destroy: @queue_classic_later_job.destroy, index: @queue_classic_later_job.index }
|
23
|
-
end
|
24
|
-
|
25
|
-
assert_redirected_to queue_classic_later_job_path(assigns(:queue_classic_later_job))
|
26
|
-
end
|
27
|
-
|
28
|
-
test "should show queue_classic_later_job" do
|
29
|
-
get :show, id: @queue_classic_later_job
|
30
|
-
assert_response :success
|
31
|
-
end
|
32
|
-
|
33
|
-
test "should get edit" do
|
34
|
-
get :edit, id: @queue_classic_later_job
|
35
|
-
assert_response :success
|
36
|
-
end
|
37
|
-
|
38
|
-
test "should update queue_classic_later_job" do
|
39
|
-
put :update, id: @queue_classic_later_job, queue_classic_later_job: { destroy: @queue_classic_later_job.destroy, index: @queue_classic_later_job.index }
|
40
|
-
assert_redirected_to queue_classic_later_job_path(assigns(:queue_classic_later_job))
|
41
|
-
end
|
42
|
-
|
43
|
-
test "should destroy queue_classic_later_job" do
|
44
|
-
assert_difference('QueueClassicLaterJob.count', -1) do
|
45
|
-
delete :destroy, id: @queue_classic_later_job
|
46
|
-
end
|
47
|
-
|
48
|
-
assert_redirected_to queue_classic_later_jobs_path
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
data/test/test_helper.rb
DELETED
@@ -1,15 +0,0 @@
|
|
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 }
|
11
|
-
|
12
|
-
# Load fixtures from the engine
|
13
|
-
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
-
end
|