rocketjob_mission_control 1.2.4 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +201 -0
- data/README.md +85 -0
- data/Rakefile +12 -18
- data/app/assets/javascripts/rocket_job_mission_control/application.js +3 -0
- data/app/assets/javascripts/rocket_job_mission_control/base.js.coffee +9 -12
- data/app/assets/javascripts/rocket_job_mission_control/datatable.js.coffee +31 -0
- data/app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js.coffee +0 -1
- data/app/assets/stylesheets/rocket_job_mission_control/application.scss +2 -0
- data/app/assets/stylesheets/rocket_job_mission_control/base.scss +310 -357
- data/app/assets/stylesheets/rocket_job_mission_control/bootstrap_and_overrides.scss +474 -3
- data/app/assets/stylesheets/rocket_job_mission_control/callout.scss +57 -12
- data/app/assets/stylesheets/rocket_job_mission_control/jobs.scss +3 -2
- data/app/assets/stylesheets/rocket_job_mission_control/worker_processes.scss +9 -0
- data/app/controllers/rocket_job_mission_control/active_processes_controller.rb +26 -0
- data/app/controllers/rocket_job_mission_control/dirmon_entries/index_filters_controller.rb +50 -0
- data/app/controllers/rocket_job_mission_control/dirmon_entries_controller.rb +11 -14
- data/app/controllers/rocket_job_mission_control/jobs/failures_controller.rb +2 -2
- data/app/controllers/rocket_job_mission_control/jobs/index_filters_controller.rb +69 -0
- data/app/controllers/rocket_job_mission_control/jobs_controller.rb +10 -12
- data/app/controllers/rocket_job_mission_control/workers/index_filters_controller.rb +50 -0
- data/app/controllers/rocket_job_mission_control/workers_controller.rb +14 -5
- data/app/datatables/rocket_job_mission_control/active_processes_datatable.rb +79 -0
- data/app/datatables/rocket_job_mission_control/completed_jobs_datatable.rb +26 -0
- data/app/datatables/rocket_job_mission_control/dirmon_entries_datatable.rb +95 -0
- data/app/datatables/rocket_job_mission_control/interrupted_jobs_datatable.rb +25 -0
- data/app/datatables/rocket_job_mission_control/jobs_datatable.rb +95 -0
- data/app/datatables/rocket_job_mission_control/queued_jobs_datatable.rb +22 -0
- data/app/datatables/rocket_job_mission_control/running_jobs_datatable.rb +35 -0
- data/app/datatables/rocket_job_mission_control/scheduled_jobs_datatable.rb +30 -0
- data/app/datatables/rocket_job_mission_control/workers_datatable.rb +127 -0
- data/app/helpers/rocket_job_mission_control/application_helper.rb +21 -2
- data/app/helpers/rocket_job_mission_control/dirmon_entries_helper.rb +7 -0
- data/app/helpers/rocket_job_mission_control/jobs_helper.rb +9 -26
- data/app/helpers/rocket_job_mission_control/workers_helper.rb +18 -6
- data/app/interactors/rocket_job_mission_control/dirmon_entries/search.rb +19 -0
- data/app/interactors/rocket_job_mission_control/jobs/search.rb +19 -0
- data/app/interactors/rocket_job_mission_control/workers/search.rb +19 -0
- data/app/models/job_failures.rb +5 -5
- data/app/views/layouts/rocket_job_mission_control/application.html.haml +22 -22
- data/app/views/layouts/rocket_job_mission_control/partials/_header.html.haml +33 -18
- data/app/views/layouts/rocket_job_mission_control/partials/_sidebar.html.haml +11 -24
- data/app/views/rocket_job_mission_control/active_processes/index.html.haml +24 -0
- data/app/views/rocket_job_mission_control/dirmon_entries/_form.html.haml +11 -10
- data/app/views/rocket_job_mission_control/dirmon_entries/_properties.html.haml +6 -3
- data/app/views/rocket_job_mission_control/dirmon_entries/_sidebar.html.haml +27 -0
- data/app/views/rocket_job_mission_control/dirmon_entries/_status.html.haml +0 -3
- data/app/views/rocket_job_mission_control/dirmon_entries/edit.html.haml +3 -7
- data/app/views/rocket_job_mission_control/dirmon_entries/index.html.haml +17 -10
- data/app/views/rocket_job_mission_control/dirmon_entries/index_filters/disabled.html.haml +17 -0
- data/app/views/rocket_job_mission_control/dirmon_entries/index_filters/enabled.html.haml +17 -0
- data/app/views/rocket_job_mission_control/dirmon_entries/index_filters/failed.html.haml +17 -0
- data/app/views/rocket_job_mission_control/dirmon_entries/index_filters/pending.html.haml +17 -0
- data/app/views/rocket_job_mission_control/dirmon_entries/new.html.haml +5 -8
- data/app/views/rocket_job_mission_control/dirmon_entries/show.html.haml +18 -22
- data/app/views/rocket_job_mission_control/jobs/_sidebar.html.haml +28 -0
- data/app/views/rocket_job_mission_control/jobs/failures/index.html.haml +2 -2
- data/app/views/rocket_job_mission_control/jobs/index.html.haml +23 -10
- data/app/views/rocket_job_mission_control/jobs/index_filters/aborted.html.haml +22 -0
- data/app/views/rocket_job_mission_control/jobs/index_filters/completed.html.haml +23 -0
- data/app/views/rocket_job_mission_control/jobs/index_filters/failed.html.haml +22 -0
- data/app/views/rocket_job_mission_control/jobs/index_filters/paused.html.haml +22 -0
- data/app/views/rocket_job_mission_control/jobs/index_filters/queued.html.haml +23 -0
- data/app/views/rocket_job_mission_control/jobs/index_filters/running.html.haml +24 -0
- data/app/views/rocket_job_mission_control/jobs/index_filters/scheduled.html.haml +23 -0
- data/app/views/rocket_job_mission_control/jobs/show.html.haml +5 -8
- data/app/views/rocket_job_mission_control/workers/_sidebar.html.haml +20 -0
- data/app/views/rocket_job_mission_control/workers/index.html.haml +36 -59
- data/app/views/rocket_job_mission_control/workers/index_filters/paused.html.haml +37 -0
- data/app/views/rocket_job_mission_control/workers/index_filters/running.html.haml +37 -0
- data/app/views/rocket_job_mission_control/workers/index_filters/starting.html.haml +37 -0
- data/app/views/rocket_job_mission_control/workers/index_filters/stopping.html.haml +37 -0
- data/config/routes.rb +28 -5
- data/lib/rocket_job_mission_control/engine.rb +2 -0
- data/lib/rocket_job_mission_control/version.rb +1 -1
- data/spec/controllers/application_controller_spec.rb +1 -1
- data/spec/controllers/dirmon_entries_controller_spec.rb +35 -97
- data/spec/controllers/jobs/failures_controller_spec.rb +4 -4
- data/spec/controllers/jobs_controller_spec.rb +10 -80
- data/spec/dummy/config/environments/development.rb +7 -7
- data/spec/dummy/config/environments/test.rb +9 -9
- data/spec/dummy/log/test.log +5446 -23487
- data/spec/helpers/application_helper_spec.rb +58 -0
- data/spec/helpers/jobs_helper_spec.rb +0 -65
- data/spec/helpers/slices_helper_spec.rb +1 -1
- data/spec/helpers/workers_helper_spec.rb +1 -1
- metadata +64 -44
- data/MIT-LICENSE +0 -20
- data/app/assets/javascripts/rocket_job_mission_control/jobs.js.coffee +0 -11
- data/app/views/rocket_job_mission_control/dirmon_entries/_list.html.haml +0 -31
- data/app/views/rocket_job_mission_control/jobs/_list.html.haml +0 -35
- data/app/views/rocket_job_mission_control/jobs/running.html.haml +0 -37
- data/spec/dummy/log/development.log +0 -0
- data/spec/views/workers/index.html.haml_spec.rb +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d6070a8df8dec6e720e61c8cbe198d57d99d2cd
|
4
|
+
data.tar.gz: 99ed10e3889637005bbb597baa22df8276dd730e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecf68750c37bc08091c8086f95fdb7111a2313b2674d7350806da6491e46d666203f38b5a8841c505249b67869b6b903df27f89ea74556fb016f4c8f280bed17
|
7
|
+
data.tar.gz: 03375b1c49bf62f710bce704939de85c7d0025b37898b101d82452a6112f762cf8c294511e62284cbc95d772ce3491e6a88b65543f662e586e5a0a2181f73814
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2015, 2016 Michael Cloutier, Chris Lamb, Reid Morrison
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
# rocketjob mission control
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/rocketjob_mission_control.svg)](http://badge.fury.io/rb/rocketjob_mission_control) [![Build Status](https://secure.travis-ci.org/rocketjob/rocketjob_mission_control.png?branch=master)](http://travis-ci.org/rocketjob/rocketjob_mission_control) ![](http://ruby-gem-downloads-badge.herokuapp.com/rocketjob_mission_control)
|
3
|
+
|
4
|
+
Web based management interface for [rocketjob][0].
|
5
|
+
|
6
|
+
![Screen shot](http://rocketjob.io/images/rjmc.png)
|
7
|
+
|
8
|
+
## Status
|
9
|
+
|
10
|
+
Production Ready
|
11
|
+
|
12
|
+
Already in use in production processing large files with millions
|
13
|
+
of records, as well as large jobs to walk though large databases.
|
14
|
+
|
15
|
+
## Features
|
16
|
+
|
17
|
+
Job Management
|
18
|
+
|
19
|
+
* View all queued, running, failed, and running jobs
|
20
|
+
* View all completed jobs where `destroy_on_complete == false`
|
21
|
+
* Pause any running jobs
|
22
|
+
* Resume paused jobs
|
23
|
+
* Retry failed jobs
|
24
|
+
* Abort, or fail queued or running jobs
|
25
|
+
* Destroy a completed or aborted job
|
26
|
+
|
27
|
+
Worker Management
|
28
|
+
|
29
|
+
* View running workers
|
30
|
+
* Stop workers
|
31
|
+
|
32
|
+
Running Jobs
|
33
|
+
|
34
|
+
* View the jobs that workers are currently working on.
|
35
|
+
|
36
|
+
Directory Monitor Management
|
37
|
+
|
38
|
+
* Create, update, enable, disable directory monitoring entries
|
39
|
+
|
40
|
+
## Documentation
|
41
|
+
|
42
|
+
* [Guide](http://rocketjob.io/mission_control)
|
43
|
+
|
44
|
+
## Rails 4 Installation
|
45
|
+
|
46
|
+
This gem is a Rails Engine and can be installed directly into existing Rails 4
|
47
|
+
applications.
|
48
|
+
|
49
|
+
Add the dependency to your Gemfile
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
gem 'rocketjob_mission_control'
|
53
|
+
```
|
54
|
+
|
55
|
+
Install it...
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
bundle
|
59
|
+
```
|
60
|
+
|
61
|
+
Add the following route to your application for accessing the interface,
|
62
|
+
and retrying failed jobs.
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
mount RocketJobMissionControl::Engine => 'rocketjob'
|
66
|
+
```
|
67
|
+
|
68
|
+
## Versioning
|
69
|
+
|
70
|
+
This project uses [Semantic Versioning](http://semver.org/).
|
71
|
+
|
72
|
+
## Authors
|
73
|
+
|
74
|
+
* [Michael Cloutier][1]
|
75
|
+
* [Chris Lamb][2]
|
76
|
+
|
77
|
+
## Contributors
|
78
|
+
|
79
|
+
* [Reid Morrison][3] :: @reidmorrison
|
80
|
+
* [Rafi](http://www.graphicsfuel.com/2012/02/space-rocket-icon-psd/)
|
81
|
+
|
82
|
+
[0]: http://rocketjob.io
|
83
|
+
[1]: https://github.com/mjcloutier
|
84
|
+
[2]: https://github.com/lambcr
|
85
|
+
[3]: https://github.com/reidmorrison
|
data/Rakefile
CHANGED
@@ -1,26 +1,20 @@
|
|
1
|
-
begin
|
2
|
-
require 'bundler/setup'
|
3
|
-
rescue LoadError
|
4
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
-
end
|
6
|
-
|
7
|
-
require 'rdoc/task'
|
8
|
-
|
9
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
11
|
-
rdoc.title = 'RocketJobMissionControl'
|
12
|
-
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.rdoc')
|
14
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
-
end
|
16
|
-
|
17
1
|
APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
|
18
2
|
load 'rails/tasks/engine.rake'
|
19
3
|
|
20
|
-
|
21
|
-
|
4
|
+
require_relative 'lib/rocket_job_mission_control/version'
|
22
5
|
require 'rspec/core'
|
23
6
|
require 'rspec/core/rake_task'
|
24
7
|
|
25
8
|
task spec: 'app:spec'
|
26
9
|
task default: :spec
|
10
|
+
|
11
|
+
task :gem do
|
12
|
+
system 'gem build rocketjob_mission_control.gemspec'
|
13
|
+
end
|
14
|
+
|
15
|
+
task publish: :gem do
|
16
|
+
system "git tag -a v#{RocketJobMissionControl::VERSION} -m 'Tagging #{RocketJobMissionControl::VERSION}'"
|
17
|
+
system 'git push --tags'
|
18
|
+
system "gem push rocketjob_mission_control-#{RocketJobMissionControl::VERSION}.gem"
|
19
|
+
system "rm rocketjob_mission_control-#{RocketJobMissionControl::VERSION}.gem"
|
20
|
+
end
|
@@ -12,6 +12,9 @@
|
|
12
12
|
//
|
13
13
|
//= require jquery
|
14
14
|
//= require jquery_ujs
|
15
|
+
//= require dataTables/jquery.dataTables
|
16
|
+
//= require dataTables/extras/dataTables.responsive
|
17
|
+
//= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
|
15
18
|
//= require microplugin
|
16
19
|
//= require sifter
|
17
20
|
//= require selectize
|
@@ -1,24 +1,21 @@
|
|
1
1
|
$(document).load ->
|
2
|
-
readyMenuToggle()
|
3
2
|
registerJobPriority()
|
4
3
|
|
5
4
|
$(document).on 'ready page:change', ->
|
6
|
-
readyMenuToggle()
|
7
5
|
registerJobPriority()
|
8
6
|
|
9
|
-
readyMenuToggle = ->
|
10
|
-
$('#menu-toggle').click (e) ->
|
11
|
-
e.preventDefault()
|
12
|
-
$('#wrapper').toggleClass 'toggled'
|
13
|
-
|
14
|
-
$('#menu-close').click (e) ->
|
15
|
-
e.preventDefault()
|
16
|
-
$('#wrapper').toggleClass 'toggled'
|
17
|
-
|
18
|
-
|
19
7
|
registerJobPriority = ->
|
20
8
|
$('#increase_priority').on 'click', ->
|
21
9
|
$('#job_priority').val(parseInt($('#job_priority').val(), 10) + 1)
|
22
10
|
|
23
11
|
$('#decrease_priority').on 'click', ->
|
24
12
|
$('#job_priority').val(parseInt($('#job_priority').val(), 10) - 1)
|
13
|
+
|
14
|
+
$(document).ready ->
|
15
|
+
$('[data-toggle=offcanvas]').click ->
|
16
|
+
$(this).toggleClass 'visible-xs text-center'
|
17
|
+
$(this).find('i').toggleClass 'fa-chevron-right fa-chevron-left'
|
18
|
+
$('.row-offcanvas').toggleClass 'active'
|
19
|
+
$('#lg-menu').toggleClass('hidden-xs').toggleClass 'visible-xs'
|
20
|
+
$('#xs-menu').toggleClass('visible-xs').toggleClass 'hidden-xs'
|
21
|
+
$('#btnShow').toggle()
|
@@ -0,0 +1,31 @@
|
|
1
|
+
class @RjmcDatatable
|
2
|
+
constructor: (table, columns, opts={}) ->
|
3
|
+
@table = $(table)
|
4
|
+
@columns = columns
|
5
|
+
@ordering = opts.ordering ? true
|
6
|
+
@searching = opts.searching ? true
|
7
|
+
@order = opts.order ? []
|
8
|
+
@reload = $("[data-behavior='reload']")
|
9
|
+
@initializeTable()
|
10
|
+
@setEvents()
|
11
|
+
|
12
|
+
initializeTable: ->
|
13
|
+
@data = @table.DataTable
|
14
|
+
pagingType: 'full_numbers'
|
15
|
+
responsive: true
|
16
|
+
ajax: @table.data('source')
|
17
|
+
processing: true
|
18
|
+
serverSide: true
|
19
|
+
columns: @columns
|
20
|
+
ordering: @ordering
|
21
|
+
searching: @searching
|
22
|
+
order: @order
|
23
|
+
|
24
|
+
setEvents: ->
|
25
|
+
@reload.on 'click', @reloadTable
|
26
|
+
|
27
|
+
reloadTable: =>
|
28
|
+
icon = @reload.find('i')
|
29
|
+
icon.addClass('fa-spin')
|
30
|
+
@data.ajax.reload ->
|
31
|
+
icon.removeClass('fa-spin')
|