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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 917b21396fa599fd213751fabd7f6edcc3e61c88
|
4
|
+
data.tar.gz: 2aac34b6b98ebd6598e3672ab5d26290f60ab477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c63fcf4010230b617af198a071c74e17553a179fb9f39ade39e108894168ce294e853369ca55fbbb525e69f60d405708da9169617eee8dc21f3ae92647e0f963
|
7
|
+
data.tar.gz: c9099dd1d050f470206ee2cad36c1408e3f5ff17ff5eff7eab1d94b9dee2531d3f786ce5ed1fdd82994cf1dc1f26a369453e9f8f80aa7af139115d468bcd9374
|
data/Rakefile
CHANGED
@@ -20,21 +20,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
23
|
-
APP_RAKEFILE = File.expand_path("../
|
23
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
24
24
|
load 'rails/tasks/engine.rake'
|
25
25
|
|
26
26
|
|
27
27
|
|
28
28
|
Bundler::GemHelper.install_tasks
|
29
29
|
|
30
|
-
require 'rake/testtask'
|
31
|
-
|
32
|
-
Rake::TestTask.new(:test) do |t|
|
33
|
-
t.libs << 'lib'
|
34
|
-
t.libs << 'test'
|
35
|
-
t.pattern = 'test/**/*_test.rb'
|
36
|
-
t.verbose = false
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
task :default => :test
|
@@ -4,6 +4,7 @@ module QueueClassicAdmin
|
|
4
4
|
class QueueClassicJobsController < ApplicationController
|
5
5
|
def index
|
6
6
|
filter_jobs(QueueClassicJob)
|
7
|
+
@queue_classic_jobs = @queue_classic_jobs.paginate(page: params[:page])
|
7
8
|
end
|
8
9
|
|
9
10
|
def destroy
|
@@ -12,6 +13,11 @@ module QueueClassicAdmin
|
|
12
13
|
redirect_to queue_classic_jobs_url
|
13
14
|
end
|
14
15
|
|
16
|
+
def purge
|
17
|
+
filter_jobs(QueueClassicJob).delete_all
|
18
|
+
redirect_to queue_classic_jobs_url
|
19
|
+
end
|
20
|
+
|
15
21
|
private
|
16
22
|
def index_path(*params)
|
17
23
|
queue_classic_jobs_path(*params)
|
@@ -4,6 +4,7 @@ module QueueClassicAdmin
|
|
4
4
|
class QueueClassicLaterJobsController < ApplicationController
|
5
5
|
def index
|
6
6
|
filter_jobs(QueueClassicLaterJob)
|
7
|
+
@queue_classic_jobs = @queue_classic_jobs.paginate(page: params[:page])
|
7
8
|
end
|
8
9
|
|
9
10
|
def destroy
|
@@ -12,6 +13,11 @@ module QueueClassicAdmin
|
|
12
13
|
redirect_to queue_classic_later_jobs_url
|
13
14
|
end
|
14
15
|
|
16
|
+
def purge
|
17
|
+
filter_jobs(QueueClassicLaterJob).delete_all
|
18
|
+
redirect_to queue_classic_jobs_url
|
19
|
+
end
|
20
|
+
|
15
21
|
private
|
16
22
|
def index_path(*params)
|
17
23
|
queue_classic_later_jobs_path(*params)
|
@@ -19,7 +19,11 @@
|
|
19
19
|
<% if @klass.columns_hash['not_before'] %>
|
20
20
|
<th>Run At</th>
|
21
21
|
<% end %>
|
22
|
-
<th
|
22
|
+
<th>
|
23
|
+
<%=
|
24
|
+
link_to "Purge All", url_for(params.merge(action: 'purge')), class: 'btn btn-danger', data: {confirm: "Are you sure?", method: :delete}
|
25
|
+
%>
|
26
|
+
</th>
|
23
27
|
</tr>
|
24
28
|
</thead>
|
25
29
|
|
@@ -45,6 +49,8 @@
|
|
45
49
|
</tbody>
|
46
50
|
</table>
|
47
51
|
|
52
|
+
<%= will_paginate @queue_classic_jobs, renderer: BootstrapPagination::Rails %>
|
53
|
+
|
48
54
|
<br />
|
49
55
|
|
50
56
|
|
data/config/routes.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
QueueClassicAdmin::Engine.routes.draw do
|
2
|
-
resources :queue_classic_later_jobs
|
3
|
-
|
2
|
+
resources :queue_classic_later_jobs do
|
3
|
+
collection do
|
4
|
+
delete :purge
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
resources :queue_classic_jobs do
|
9
|
+
collection do
|
10
|
+
delete :purge
|
11
|
+
end
|
12
|
+
end
|
4
13
|
|
5
14
|
root to: "queue_classic_jobs#index"
|
6
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queue_classic_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Mathieu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: queue_classic
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - '
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - '
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -52,6 +52,34 @@ dependencies:
|
|
52
52
|
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: will_paginate
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.0.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: will_paginate-bootstrap
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.2.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.2.0
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: twitter-bootstrap-rails
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,102 +145,6 @@ files:
|
|
117
145
|
- MIT-LICENSE
|
118
146
|
- Rakefile
|
119
147
|
- README.md
|
120
|
-
- test/dummy/app/assets/javascripts/application.js
|
121
|
-
- test/dummy/app/assets/stylesheets/application.css
|
122
|
-
- test/dummy/app/controllers/application_controller.rb
|
123
|
-
- test/dummy/app/helpers/application_helper.rb
|
124
|
-
- test/dummy/app/views/layouts/application.html.erb
|
125
|
-
- test/dummy/config/application.rb
|
126
|
-
- test/dummy/config/boot.rb
|
127
|
-
- test/dummy/config/database.yml
|
128
|
-
- test/dummy/config/environment.rb
|
129
|
-
- test/dummy/config/environments/development.rb
|
130
|
-
- test/dummy/config/environments/production.rb
|
131
|
-
- test/dummy/config/environments/test.rb
|
132
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
133
|
-
- test/dummy/config/initializers/inflections.rb
|
134
|
-
- test/dummy/config/initializers/mime_types.rb
|
135
|
-
- test/dummy/config/initializers/qc.rb
|
136
|
-
- test/dummy/config/initializers/secret_token.rb
|
137
|
-
- test/dummy/config/initializers/session_store.rb
|
138
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
139
|
-
- test/dummy/config/locales/en.yml
|
140
|
-
- test/dummy/config/routes.rb
|
141
|
-
- test/dummy/config.ru
|
142
|
-
- test/dummy/db/development.sqlite3
|
143
|
-
- test/dummy/db/migrate/20130626005404_setup_q_classic.rb
|
144
|
-
- test/dummy/db/schema.rb
|
145
|
-
- test/dummy/log/development.log
|
146
|
-
- test/dummy/public/404.html
|
147
|
-
- test/dummy/public/422.html
|
148
|
-
- test/dummy/public/500.html
|
149
|
-
- test/dummy/public/favicon.ico
|
150
|
-
- test/dummy/Rakefile
|
151
|
-
- test/dummy/README.rdoc
|
152
|
-
- test/dummy/script/enqueue_stuff.rb
|
153
|
-
- test/dummy/script/rails
|
154
|
-
- test/dummy/tmp/cache/assets/C47/770/sprockets%2F731c1b418629b262752df50b811830d8
|
155
|
-
- test/dummy/tmp/cache/assets/C63/090/sprockets%2F52a4220f99a6792ab5b38398590848e6
|
156
|
-
- test/dummy/tmp/cache/assets/C65/970/sprockets%2F603023e85311a52ad880a40a61a93d09
|
157
|
-
- test/dummy/tmp/cache/assets/C77/EB0/sprockets%2Fd44446833b7391e4235ce1620812f1cd
|
158
|
-
- test/dummy/tmp/cache/assets/C80/7E0/sprockets%2F72b2d9371d2a28919335a352d77d4d16
|
159
|
-
- test/dummy/tmp/cache/assets/C95/EB0/sprockets%2F1ce07a9c31863b89991a715e295756d8
|
160
|
-
- test/dummy/tmp/cache/assets/CA7/9F0/sprockets%2F16fb36a63e1b29a17f6e05183d249107
|
161
|
-
- test/dummy/tmp/cache/assets/CAB/1B0/sprockets%2F73273f3e028910302c5cdec87f47d007
|
162
|
-
- test/dummy/tmp/cache/assets/CB2/470/sprockets%2F28c92908f6375dd4c22246fd400154fe
|
163
|
-
- test/dummy/tmp/cache/assets/CC8/0F0/sprockets%2F88c7bec3a358463f8915b46266c90c89
|
164
|
-
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
165
|
-
- test/dummy/tmp/cache/assets/CE2/1D0/sprockets%2F15f9f1ed72e033a56396c2f64f90212f
|
166
|
-
- test/dummy/tmp/cache/assets/CE4/830/sprockets%2F28a48b303d68bc5bb998577efa105460
|
167
|
-
- test/dummy/tmp/cache/assets/D01/400/sprockets%2Fe0c40acbd45d09b38088378721e3b3a2
|
168
|
-
- test/dummy/tmp/cache/assets/D01/AF0/sprockets%2F0b2d522e2e5b8e54a4d41d31549d5c70
|
169
|
-
- test/dummy/tmp/cache/assets/D11/100/sprockets%2F245cbeb74ed68217a7a7e02997503bc5
|
170
|
-
- test/dummy/tmp/cache/assets/D15/480/sprockets%2F7db6c79b319c401bbd54a509e66e8482
|
171
|
-
- test/dummy/tmp/cache/assets/D1E/A00/sprockets%2F2e51bac84698ca87e4e293c3b5939b81
|
172
|
-
- test/dummy/tmp/cache/assets/D27/A60/sprockets%2F2a00c991a1c5364a8bbea53160f6ad71
|
173
|
-
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
174
|
-
- test/dummy/tmp/cache/assets/D3D/B70/sprockets%2Fda6c2a5128bdb48893801bf9935e2bc1
|
175
|
-
- test/dummy/tmp/cache/assets/D40/4E0/sprockets%2F8476ef7da6e14ce27cd951052dc50d33
|
176
|
-
- test/dummy/tmp/cache/assets/D42/A40/sprockets%2F27702773fab6e9c662d02a16a94b8efd
|
177
|
-
- test/dummy/tmp/cache/assets/D44/930/sprockets%2Fef7fe4c88828e810cd058e3277aa3b01
|
178
|
-
- test/dummy/tmp/cache/assets/D46/930/sprockets%2F5e39368e6a521b9e00f75b6cc4dc518f
|
179
|
-
- test/dummy/tmp/cache/assets/D47/320/sprockets%2F03e79d9fcbcd465545ab948f1136d7a2
|
180
|
-
- test/dummy/tmp/cache/assets/D49/830/sprockets%2F810812682e67fcb948fa46eb4b0c8f2f
|
181
|
-
- test/dummy/tmp/cache/assets/D49/FE0/sprockets%2F9fd8019256eb9e4a5da017d9e2722e9b
|
182
|
-
- test/dummy/tmp/cache/assets/D4C/B30/sprockets%2Fdba89e1f15d375895781fb21a6d7bc65
|
183
|
-
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
184
|
-
- test/dummy/tmp/cache/assets/D52/A50/sprockets%2F6ad94be95ef8f6055681c1d568380cfb
|
185
|
-
- test/dummy/tmp/cache/assets/D52/A60/sprockets%2F24a40551c4c0fe6cbb24270191f0cfbc
|
186
|
-
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
187
|
-
- test/dummy/tmp/cache/assets/D65/A60/sprockets%2Fc43a267e70ea13772f9dd38a0b7adc23
|
188
|
-
- test/dummy/tmp/cache/assets/D68/850/sprockets%2F7ffd5005ac4d4fcdc177b8131e4703e5
|
189
|
-
- test/dummy/tmp/cache/assets/D6E/210/sprockets%2Fd1e8d63edbd5bc83448a86a2e2a76242
|
190
|
-
- test/dummy/tmp/cache/assets/D74/FD0/sprockets%2Fcbbf3afb75554fc790996d213b444f3c
|
191
|
-
- test/dummy/tmp/cache/assets/D7F/9F0/sprockets%2F8ada4593db5e026e1f383ee9d566b7d9
|
192
|
-
- test/dummy/tmp/cache/assets/D82/620/sprockets%2Fdccad8fc9e94c971c4b23fe182177848
|
193
|
-
- test/dummy/tmp/cache/assets/D8D/C80/sprockets%2F1df75b4006a6c14d6bba8c7b5221fcc6
|
194
|
-
- test/dummy/tmp/cache/assets/D95/2F0/sprockets%2Fe5fad03ed53e808b210d4e3b3bd69f06
|
195
|
-
- test/dummy/tmp/cache/assets/DA1/820/sprockets%2Fc41773fdb1e43f95c2e6710f8ace5c6b
|
196
|
-
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
197
|
-
- test/dummy/tmp/cache/assets/DEA/700/sprockets%2Fca5ce92b20c18cbb584ab7da6c0ae147
|
198
|
-
- test/dummy/tmp/cache/assets/DF2/E60/sprockets%2Ff41261aed7ce78bf8ac2e328ac4ab03d
|
199
|
-
- test/dummy/tmp/cache/assets/DFC/A60/sprockets%2Fba8ebe45dcead726907c4dce581a72c2
|
200
|
-
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
201
|
-
- test/dummy/tmp/cache/assets/E35/DB0/sprockets%2F5dae79fac5d06a52c6f9abac99c7a4e4
|
202
|
-
- test/dummy/tmp/cache/assets/E59/930/sprockets%2Ff286c9c9c1bbae871fa0bc23da5ffca6
|
203
|
-
- test/dummy/tmp/cache/assets/E5A/2D0/sprockets%2Ff87bbbd5bbc3411d8d108e79de6aedab
|
204
|
-
- test/dummy/tmp/restart.txt
|
205
|
-
- test/fixtures/queue_classic_admin/queue_classic_jobs.yml
|
206
|
-
- test/fixtures/queue_classic_admin/queue_classic_later_jobs.yml
|
207
|
-
- test/functional/queue_classic_admin/queue_classic_jobs_controller_test.rb
|
208
|
-
- test/functional/queue_classic_admin/queue_classic_later_jobs_controller_test.rb
|
209
|
-
- test/integration/navigation_test.rb
|
210
|
-
- test/queue_classic_admin_test.rb
|
211
|
-
- test/test_helper.rb
|
212
|
-
- test/unit/helpers/queue_classic_admin/queue_classic_jobs_helper_test.rb
|
213
|
-
- test/unit/helpers/queue_classic_admin/queue_classic_later_jobs_helper_test.rb
|
214
|
-
- test/unit/queue_classic_admin/queue_classic_job_test.rb
|
215
|
-
- test/unit/queue_classic_admin/queue_classic_later_job_test.rb
|
216
148
|
homepage: https://github.com/rainforestapp/queue_classic_admin
|
217
149
|
licenses: []
|
218
150
|
metadata: {}
|
@@ -236,100 +168,4 @@ rubygems_version: 2.0.3
|
|
236
168
|
signing_key:
|
237
169
|
specification_version: 4
|
238
170
|
summary: An admin interface for QueueClassic
|
239
|
-
test_files:
|
240
|
-
- test/dummy/app/assets/javascripts/application.js
|
241
|
-
- test/dummy/app/assets/stylesheets/application.css
|
242
|
-
- test/dummy/app/controllers/application_controller.rb
|
243
|
-
- test/dummy/app/helpers/application_helper.rb
|
244
|
-
- test/dummy/app/views/layouts/application.html.erb
|
245
|
-
- test/dummy/config/application.rb
|
246
|
-
- test/dummy/config/boot.rb
|
247
|
-
- test/dummy/config/database.yml
|
248
|
-
- test/dummy/config/environment.rb
|
249
|
-
- test/dummy/config/environments/development.rb
|
250
|
-
- test/dummy/config/environments/production.rb
|
251
|
-
- test/dummy/config/environments/test.rb
|
252
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
253
|
-
- test/dummy/config/initializers/inflections.rb
|
254
|
-
- test/dummy/config/initializers/mime_types.rb
|
255
|
-
- test/dummy/config/initializers/qc.rb
|
256
|
-
- test/dummy/config/initializers/secret_token.rb
|
257
|
-
- test/dummy/config/initializers/session_store.rb
|
258
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
259
|
-
- test/dummy/config/locales/en.yml
|
260
|
-
- test/dummy/config/routes.rb
|
261
|
-
- test/dummy/config.ru
|
262
|
-
- test/dummy/db/development.sqlite3
|
263
|
-
- test/dummy/db/migrate/20130626005404_setup_q_classic.rb
|
264
|
-
- test/dummy/db/schema.rb
|
265
|
-
- test/dummy/log/development.log
|
266
|
-
- test/dummy/public/404.html
|
267
|
-
- test/dummy/public/422.html
|
268
|
-
- test/dummy/public/500.html
|
269
|
-
- test/dummy/public/favicon.ico
|
270
|
-
- test/dummy/Rakefile
|
271
|
-
- test/dummy/README.rdoc
|
272
|
-
- test/dummy/script/enqueue_stuff.rb
|
273
|
-
- test/dummy/script/rails
|
274
|
-
- test/dummy/tmp/cache/assets/C47/770/sprockets%2F731c1b418629b262752df50b811830d8
|
275
|
-
- test/dummy/tmp/cache/assets/C63/090/sprockets%2F52a4220f99a6792ab5b38398590848e6
|
276
|
-
- test/dummy/tmp/cache/assets/C65/970/sprockets%2F603023e85311a52ad880a40a61a93d09
|
277
|
-
- test/dummy/tmp/cache/assets/C77/EB0/sprockets%2Fd44446833b7391e4235ce1620812f1cd
|
278
|
-
- test/dummy/tmp/cache/assets/C80/7E0/sprockets%2F72b2d9371d2a28919335a352d77d4d16
|
279
|
-
- test/dummy/tmp/cache/assets/C95/EB0/sprockets%2F1ce07a9c31863b89991a715e295756d8
|
280
|
-
- test/dummy/tmp/cache/assets/CA7/9F0/sprockets%2F16fb36a63e1b29a17f6e05183d249107
|
281
|
-
- test/dummy/tmp/cache/assets/CAB/1B0/sprockets%2F73273f3e028910302c5cdec87f47d007
|
282
|
-
- test/dummy/tmp/cache/assets/CB2/470/sprockets%2F28c92908f6375dd4c22246fd400154fe
|
283
|
-
- test/dummy/tmp/cache/assets/CC8/0F0/sprockets%2F88c7bec3a358463f8915b46266c90c89
|
284
|
-
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
285
|
-
- test/dummy/tmp/cache/assets/CE2/1D0/sprockets%2F15f9f1ed72e033a56396c2f64f90212f
|
286
|
-
- test/dummy/tmp/cache/assets/CE4/830/sprockets%2F28a48b303d68bc5bb998577efa105460
|
287
|
-
- test/dummy/tmp/cache/assets/D01/400/sprockets%2Fe0c40acbd45d09b38088378721e3b3a2
|
288
|
-
- test/dummy/tmp/cache/assets/D01/AF0/sprockets%2F0b2d522e2e5b8e54a4d41d31549d5c70
|
289
|
-
- test/dummy/tmp/cache/assets/D11/100/sprockets%2F245cbeb74ed68217a7a7e02997503bc5
|
290
|
-
- test/dummy/tmp/cache/assets/D15/480/sprockets%2F7db6c79b319c401bbd54a509e66e8482
|
291
|
-
- test/dummy/tmp/cache/assets/D1E/A00/sprockets%2F2e51bac84698ca87e4e293c3b5939b81
|
292
|
-
- test/dummy/tmp/cache/assets/D27/A60/sprockets%2F2a00c991a1c5364a8bbea53160f6ad71
|
293
|
-
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
294
|
-
- test/dummy/tmp/cache/assets/D3D/B70/sprockets%2Fda6c2a5128bdb48893801bf9935e2bc1
|
295
|
-
- test/dummy/tmp/cache/assets/D40/4E0/sprockets%2F8476ef7da6e14ce27cd951052dc50d33
|
296
|
-
- test/dummy/tmp/cache/assets/D42/A40/sprockets%2F27702773fab6e9c662d02a16a94b8efd
|
297
|
-
- test/dummy/tmp/cache/assets/D44/930/sprockets%2Fef7fe4c88828e810cd058e3277aa3b01
|
298
|
-
- test/dummy/tmp/cache/assets/D46/930/sprockets%2F5e39368e6a521b9e00f75b6cc4dc518f
|
299
|
-
- test/dummy/tmp/cache/assets/D47/320/sprockets%2F03e79d9fcbcd465545ab948f1136d7a2
|
300
|
-
- test/dummy/tmp/cache/assets/D49/830/sprockets%2F810812682e67fcb948fa46eb4b0c8f2f
|
301
|
-
- test/dummy/tmp/cache/assets/D49/FE0/sprockets%2F9fd8019256eb9e4a5da017d9e2722e9b
|
302
|
-
- test/dummy/tmp/cache/assets/D4C/B30/sprockets%2Fdba89e1f15d375895781fb21a6d7bc65
|
303
|
-
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
304
|
-
- test/dummy/tmp/cache/assets/D52/A50/sprockets%2F6ad94be95ef8f6055681c1d568380cfb
|
305
|
-
- test/dummy/tmp/cache/assets/D52/A60/sprockets%2F24a40551c4c0fe6cbb24270191f0cfbc
|
306
|
-
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
307
|
-
- test/dummy/tmp/cache/assets/D65/A60/sprockets%2Fc43a267e70ea13772f9dd38a0b7adc23
|
308
|
-
- test/dummy/tmp/cache/assets/D68/850/sprockets%2F7ffd5005ac4d4fcdc177b8131e4703e5
|
309
|
-
- test/dummy/tmp/cache/assets/D6E/210/sprockets%2Fd1e8d63edbd5bc83448a86a2e2a76242
|
310
|
-
- test/dummy/tmp/cache/assets/D74/FD0/sprockets%2Fcbbf3afb75554fc790996d213b444f3c
|
311
|
-
- test/dummy/tmp/cache/assets/D7F/9F0/sprockets%2F8ada4593db5e026e1f383ee9d566b7d9
|
312
|
-
- test/dummy/tmp/cache/assets/D82/620/sprockets%2Fdccad8fc9e94c971c4b23fe182177848
|
313
|
-
- test/dummy/tmp/cache/assets/D8D/C80/sprockets%2F1df75b4006a6c14d6bba8c7b5221fcc6
|
314
|
-
- test/dummy/tmp/cache/assets/D95/2F0/sprockets%2Fe5fad03ed53e808b210d4e3b3bd69f06
|
315
|
-
- test/dummy/tmp/cache/assets/DA1/820/sprockets%2Fc41773fdb1e43f95c2e6710f8ace5c6b
|
316
|
-
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
317
|
-
- test/dummy/tmp/cache/assets/DEA/700/sprockets%2Fca5ce92b20c18cbb584ab7da6c0ae147
|
318
|
-
- test/dummy/tmp/cache/assets/DF2/E60/sprockets%2Ff41261aed7ce78bf8ac2e328ac4ab03d
|
319
|
-
- test/dummy/tmp/cache/assets/DFC/A60/sprockets%2Fba8ebe45dcead726907c4dce581a72c2
|
320
|
-
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
321
|
-
- test/dummy/tmp/cache/assets/E35/DB0/sprockets%2F5dae79fac5d06a52c6f9abac99c7a4e4
|
322
|
-
- test/dummy/tmp/cache/assets/E59/930/sprockets%2Ff286c9c9c1bbae871fa0bc23da5ffca6
|
323
|
-
- test/dummy/tmp/cache/assets/E5A/2D0/sprockets%2Ff87bbbd5bbc3411d8d108e79de6aedab
|
324
|
-
- test/dummy/tmp/restart.txt
|
325
|
-
- test/fixtures/queue_classic_admin/queue_classic_jobs.yml
|
326
|
-
- test/fixtures/queue_classic_admin/queue_classic_later_jobs.yml
|
327
|
-
- test/functional/queue_classic_admin/queue_classic_jobs_controller_test.rb
|
328
|
-
- test/functional/queue_classic_admin/queue_classic_later_jobs_controller_test.rb
|
329
|
-
- test/integration/navigation_test.rb
|
330
|
-
- test/queue_classic_admin_test.rb
|
331
|
-
- test/test_helper.rb
|
332
|
-
- test/unit/helpers/queue_classic_admin/queue_classic_jobs_helper_test.rb
|
333
|
-
- test/unit/helpers/queue_classic_admin/queue_classic_later_jobs_helper_test.rb
|
334
|
-
- test/unit/queue_classic_admin/queue_classic_job_test.rb
|
335
|
-
- test/unit/queue_classic_admin/queue_classic_later_job_test.rb
|
171
|
+
test_files: []
|
data/test/dummy/README.rdoc
DELETED
@@ -1,261 +0,0 @@
|
|
1
|
-
== Welcome to Rails
|
2
|
-
|
3
|
-
Rails is a web-application framework that includes everything needed to create
|
4
|
-
database-backed web applications according to the Model-View-Control pattern.
|
5
|
-
|
6
|
-
This pattern splits the view (also called the presentation) into "dumb"
|
7
|
-
templates that are primarily responsible for inserting pre-built data in between
|
8
|
-
HTML tags. The model contains the "smart" domain objects (such as Account,
|
9
|
-
Product, Person, Post) that holds all the business logic and knows how to
|
10
|
-
persist themselves to a database. The controller handles the incoming requests
|
11
|
-
(such as Save New Account, Update Product, Show Post) by manipulating the model
|
12
|
-
and directing data to the view.
|
13
|
-
|
14
|
-
In Rails, the model is handled by what's called an object-relational mapping
|
15
|
-
layer entitled Active Record. This layer allows you to present the data from
|
16
|
-
database rows as objects and embellish these data objects with business logic
|
17
|
-
methods. You can read more about Active Record in
|
18
|
-
link:files/vendor/rails/activerecord/README.html.
|
19
|
-
|
20
|
-
The controller and view are handled by the Action Pack, which handles both
|
21
|
-
layers by its two parts: Action View and Action Controller. These two layers
|
22
|
-
are bundled in a single package due to their heavy interdependence. This is
|
23
|
-
unlike the relationship between the Active Record and Action Pack that is much
|
24
|
-
more separate. Each of these packages can be used independently outside of
|
25
|
-
Rails. You can read more about Action Pack in
|
26
|
-
link:files/vendor/rails/actionpack/README.html.
|
27
|
-
|
28
|
-
|
29
|
-
== Getting Started
|
30
|
-
|
31
|
-
1. At the command prompt, create a new Rails application:
|
32
|
-
<tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
|
33
|
-
|
34
|
-
2. Change directory to <tt>myapp</tt> and start the web server:
|
35
|
-
<tt>cd myapp; rails server</tt> (run with --help for options)
|
36
|
-
|
37
|
-
3. Go to http://localhost:3000/ and you'll see:
|
38
|
-
"Welcome aboard: You're riding Ruby on Rails!"
|
39
|
-
|
40
|
-
4. Follow the guidelines to start developing your application. You can find
|
41
|
-
the following resources handy:
|
42
|
-
|
43
|
-
* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
|
44
|
-
* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
|
45
|
-
|
46
|
-
|
47
|
-
== Debugging Rails
|
48
|
-
|
49
|
-
Sometimes your application goes wrong. Fortunately there are a lot of tools that
|
50
|
-
will help you debug it and get it back on the rails.
|
51
|
-
|
52
|
-
First area to check is the application log files. Have "tail -f" commands
|
53
|
-
running on the server.log and development.log. Rails will automatically display
|
54
|
-
debugging and runtime information to these files. Debugging info will also be
|
55
|
-
shown in the browser on requests from 127.0.0.1.
|
56
|
-
|
57
|
-
You can also log your own messages directly into the log file from your code
|
58
|
-
using the Ruby logger class from inside your controllers. Example:
|
59
|
-
|
60
|
-
class WeblogController < ActionController::Base
|
61
|
-
def destroy
|
62
|
-
@weblog = Weblog.find(params[:id])
|
63
|
-
@weblog.destroy
|
64
|
-
logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
The result will be a message in your log file along the lines of:
|
69
|
-
|
70
|
-
Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
|
71
|
-
|
72
|
-
More information on how to use the logger is at http://www.ruby-doc.org/core/
|
73
|
-
|
74
|
-
Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
|
75
|
-
several books available online as well:
|
76
|
-
|
77
|
-
* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
|
78
|
-
* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
|
79
|
-
|
80
|
-
These two books will bring you up to speed on the Ruby language and also on
|
81
|
-
programming in general.
|
82
|
-
|
83
|
-
|
84
|
-
== Debugger
|
85
|
-
|
86
|
-
Debugger support is available through the debugger command when you start your
|
87
|
-
Mongrel or WEBrick server with --debugger. This means that you can break out of
|
88
|
-
execution at any point in the code, investigate and change the model, and then,
|
89
|
-
resume execution! You need to install ruby-debug to run the server in debugging
|
90
|
-
mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
|
91
|
-
|
92
|
-
class WeblogController < ActionController::Base
|
93
|
-
def index
|
94
|
-
@posts = Post.all
|
95
|
-
debugger
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
So the controller will accept the action, run the first line, then present you
|
100
|
-
with a IRB prompt in the server window. Here you can do things like:
|
101
|
-
|
102
|
-
>> @posts.inspect
|
103
|
-
=> "[#<Post:0x14a6be8
|
104
|
-
@attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
|
105
|
-
#<Post:0x14a6620
|
106
|
-
@attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
|
107
|
-
>> @posts.first.title = "hello from a debugger"
|
108
|
-
=> "hello from a debugger"
|
109
|
-
|
110
|
-
...and even better, you can examine how your runtime objects actually work:
|
111
|
-
|
112
|
-
>> f = @posts.first
|
113
|
-
=> #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
|
114
|
-
>> f.
|
115
|
-
Display all 152 possibilities? (y or n)
|
116
|
-
|
117
|
-
Finally, when you're ready to resume execution, you can enter "cont".
|
118
|
-
|
119
|
-
|
120
|
-
== Console
|
121
|
-
|
122
|
-
The console is a Ruby shell, which allows you to interact with your
|
123
|
-
application's domain model. Here you'll have all parts of the application
|
124
|
-
configured, just like it is when the application is running. You can inspect
|
125
|
-
domain models, change values, and save to the database. Starting the script
|
126
|
-
without arguments will launch it in the development environment.
|
127
|
-
|
128
|
-
To start the console, run <tt>rails console</tt> from the application
|
129
|
-
directory.
|
130
|
-
|
131
|
-
Options:
|
132
|
-
|
133
|
-
* Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
|
134
|
-
made to the database.
|
135
|
-
* Passing an environment name as an argument will load the corresponding
|
136
|
-
environment. Example: <tt>rails console production</tt>.
|
137
|
-
|
138
|
-
To reload your controllers and models after launching the console run
|
139
|
-
<tt>reload!</tt>
|
140
|
-
|
141
|
-
More information about irb can be found at:
|
142
|
-
link:http://www.rubycentral.org/pickaxe/irb.html
|
143
|
-
|
144
|
-
|
145
|
-
== dbconsole
|
146
|
-
|
147
|
-
You can go to the command line of your database directly through <tt>rails
|
148
|
-
dbconsole</tt>. You would be connected to the database with the credentials
|
149
|
-
defined in database.yml. Starting the script without arguments will connect you
|
150
|
-
to the development database. Passing an argument will connect you to a different
|
151
|
-
database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
|
152
|
-
PostgreSQL and SQLite 3.
|
153
|
-
|
154
|
-
== Description of Contents
|
155
|
-
|
156
|
-
The default directory structure of a generated Ruby on Rails application:
|
157
|
-
|
158
|
-
|-- app
|
159
|
-
| |-- assets
|
160
|
-
| | |-- images
|
161
|
-
| | |-- javascripts
|
162
|
-
| | `-- stylesheets
|
163
|
-
| |-- controllers
|
164
|
-
| |-- helpers
|
165
|
-
| |-- mailers
|
166
|
-
| |-- models
|
167
|
-
| `-- views
|
168
|
-
| `-- layouts
|
169
|
-
|-- config
|
170
|
-
| |-- environments
|
171
|
-
| |-- initializers
|
172
|
-
| `-- locales
|
173
|
-
|-- db
|
174
|
-
|-- doc
|
175
|
-
|-- lib
|
176
|
-
| |-- assets
|
177
|
-
| `-- tasks
|
178
|
-
|-- log
|
179
|
-
|-- public
|
180
|
-
|-- script
|
181
|
-
|-- test
|
182
|
-
| |-- fixtures
|
183
|
-
| |-- functional
|
184
|
-
| |-- integration
|
185
|
-
| |-- performance
|
186
|
-
| `-- unit
|
187
|
-
|-- tmp
|
188
|
-
| `-- cache
|
189
|
-
| `-- assets
|
190
|
-
`-- vendor
|
191
|
-
|-- assets
|
192
|
-
| |-- javascripts
|
193
|
-
| `-- stylesheets
|
194
|
-
`-- plugins
|
195
|
-
|
196
|
-
app
|
197
|
-
Holds all the code that's specific to this particular application.
|
198
|
-
|
199
|
-
app/assets
|
200
|
-
Contains subdirectories for images, stylesheets, and JavaScript files.
|
201
|
-
|
202
|
-
app/controllers
|
203
|
-
Holds controllers that should be named like weblogs_controller.rb for
|
204
|
-
automated URL mapping. All controllers should descend from
|
205
|
-
ApplicationController which itself descends from ActionController::Base.
|
206
|
-
|
207
|
-
app/models
|
208
|
-
Holds models that should be named like post.rb. Models descend from
|
209
|
-
ActiveRecord::Base by default.
|
210
|
-
|
211
|
-
app/views
|
212
|
-
Holds the template files for the view that should be named like
|
213
|
-
weblogs/index.html.erb for the WeblogsController#index action. All views use
|
214
|
-
eRuby syntax by default.
|
215
|
-
|
216
|
-
app/views/layouts
|
217
|
-
Holds the template files for layouts to be used with views. This models the
|
218
|
-
common header/footer method of wrapping views. In your views, define a layout
|
219
|
-
using the <tt>layout :default</tt> and create a file named default.html.erb.
|
220
|
-
Inside default.html.erb, call <% yield %> to render the view using this
|
221
|
-
layout.
|
222
|
-
|
223
|
-
app/helpers
|
224
|
-
Holds view helpers that should be named like weblogs_helper.rb. These are
|
225
|
-
generated for you automatically when using generators for controllers.
|
226
|
-
Helpers can be used to wrap functionality for your views into methods.
|
227
|
-
|
228
|
-
config
|
229
|
-
Configuration files for the Rails environment, the routing map, the database,
|
230
|
-
and other dependencies.
|
231
|
-
|
232
|
-
db
|
233
|
-
Contains the database schema in schema.rb. db/migrate contains all the
|
234
|
-
sequence of Migrations for your schema.
|
235
|
-
|
236
|
-
doc
|
237
|
-
This directory is where your application documentation will be stored when
|
238
|
-
generated using <tt>rake doc:app</tt>
|
239
|
-
|
240
|
-
lib
|
241
|
-
Application specific libraries. Basically, any kind of custom code that
|
242
|
-
doesn't belong under controllers, models, or helpers. This directory is in
|
243
|
-
the load path.
|
244
|
-
|
245
|
-
public
|
246
|
-
The directory available for the web server. Also contains the dispatchers and the
|
247
|
-
default HTML files. This should be set as the DOCUMENT_ROOT of your web
|
248
|
-
server.
|
249
|
-
|
250
|
-
script
|
251
|
-
Helper scripts for automation and generation.
|
252
|
-
|
253
|
-
test
|
254
|
-
Unit and functional tests along with fixtures. When using the rails generate
|
255
|
-
command, template test files will be generated for you and placed in this
|
256
|
-
directory.
|
257
|
-
|
258
|
-
vendor
|
259
|
-
External libraries that the application depends on. Also includes the plugins
|
260
|
-
subdirectory. If the app has frozen rails, those gems also go here, under
|
261
|
-
vendor/rails/. This directory is in the load path.
|