right_chimp 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +4 -0
- data/lib/right_chimp/Chimp.rb +2 -1
- data/lib/right_chimp/daemon/ChimpDaemon.rb +1 -1
- data/lib/right_chimp/templates/all_jobs.erb +4 -0
- data/lib/right_chimp/templates/invertedhotdogstand.css +82 -0
- data/lib/right_chimp/templates/styleswitcher.js +1 -1
- data/lib/right_chimp/version.rb +1 -1
- metadata +3 -2
data/CHANGES
CHANGED
@@ -113,3 +113,7 @@ Version 1.0.5
|
|
113
113
|
-------------
|
114
114
|
* Feature: improved error handling and logging when submitting to chimpd
|
115
115
|
|
116
|
+
Version 1.0.9
|
117
|
+
-------------
|
118
|
+
* Feature: Improved support for running chimp commands on any chimp daemon port
|
119
|
+
* Feature: Added inverted hot dog stand theme
|
data/lib/right_chimp/Chimp.rb
CHANGED
@@ -208,7 +208,7 @@ module Chimp
|
|
208
208
|
[ '--dry-run', '-n', GetoptLong::NO_ARGUMENT ],
|
209
209
|
[ '--limit', '-l', GetoptLong::REQUIRED_ARGUMENT ],
|
210
210
|
[ '--version', '-1', GetoptLong::NO_ARGUMENT ],
|
211
|
-
[ '--chimpd', '-f', GetoptLong::
|
211
|
+
[ '--chimpd', '-f', GetoptLong::OPTIONAL_ARGUMENT ],
|
212
212
|
[ '--chimpd-wait-until-done', '-j', GetoptLong::NO_ARGUMENT ],
|
213
213
|
[ '--dont-check-templates', '-0', GetoptLong::NO_ARGUMENT ],
|
214
214
|
[ '--ignore-errors', '-9', GetoptLong::NO_ARGUMENT ],
|
@@ -297,6 +297,7 @@ module Chimp
|
|
297
297
|
exit 0
|
298
298
|
when '--chimpd'
|
299
299
|
@use_chimpd = true
|
300
|
+
@chimpd_port = arg.to_i unless arg.empty?
|
300
301
|
when '--chimpd-wait-until-done'
|
301
302
|
@use_chimpd = true
|
302
303
|
@chimpd_wait_until_done = true
|
@@ -5,10 +5,13 @@
|
|
5
5
|
<link rel="stylesheet" href="default.css" title="default" />
|
6
6
|
<link rel="alternate stylesheet" href="greenscreen.css" title="greenscreen" />
|
7
7
|
<link rel="alternate stylesheet" href="hotdogstand.css" title="hotdogstand" />
|
8
|
+
<link rel="alternate stylesheet" href="invertedhotdogstand.css" title="invertedhotdogstand" />
|
8
9
|
<script src="styleswitcher.js"></script>
|
9
10
|
|
10
11
|
<script type="text/javascript">
|
11
12
|
|
13
|
+
port = <%= ChimpDaemon.instance.port.to_s %>
|
14
|
+
|
12
15
|
function chimpd_job_control(obj, url) {
|
13
16
|
obj.style.color = "red";
|
14
17
|
xmlhttp = new XMLHttpRequest();
|
@@ -79,6 +82,7 @@ SINCE 2012</p>
|
|
79
82
|
<li> <a href="#" onclick="setActiveStyleSheet('default')">default</a></li>
|
80
83
|
<li> <a href="#" onclick="setActiveStyleSheet('greenscreen')">green screen</a></li>
|
81
84
|
<li> <a href="#" onclick="setActiveStyleSheet('hotdogstand')">hot dog stand</a></li>
|
85
|
+
<li> <a href="#" onclick="setActiveStyleSheet('invertedhotdogstand')">inverted hot dog stand</a></li>
|
82
86
|
</ol>
|
83
87
|
|
84
88
|
</div>
|
@@ -0,0 +1,82 @@
|
|
1
|
+
body {
|
2
|
+
color: red;
|
3
|
+
background-color: yellow;
|
4
|
+
font-family: monospace;
|
5
|
+
font-size: 10px;
|
6
|
+
margin: 0;
|
7
|
+
}
|
8
|
+
|
9
|
+
h3 {
|
10
|
+
font-weight: bold;
|
11
|
+
border-bottom: 2px solid red;
|
12
|
+
}
|
13
|
+
|
14
|
+
h2 {
|
15
|
+
float: left;
|
16
|
+
color: red;
|
17
|
+
}
|
18
|
+
|
19
|
+
ol, ul {
|
20
|
+
list-style-type: none;
|
21
|
+
}
|
22
|
+
|
23
|
+
ol {
|
24
|
+
padding-left: 10px;
|
25
|
+
}
|
26
|
+
|
27
|
+
ul {
|
28
|
+
padding-bottom: 5px;
|
29
|
+
border-bottom: solid red 2px;
|
30
|
+
}
|
31
|
+
|
32
|
+
div#stats {
|
33
|
+
background-color: yellow; /* #002A5C */
|
34
|
+
color: red;
|
35
|
+
float: left;
|
36
|
+
border-right: solid 2px red;
|
37
|
+
position: fixed;
|
38
|
+
height: 100%;
|
39
|
+
padding: 5px;
|
40
|
+
padding-right: 15px;
|
41
|
+
}
|
42
|
+
|
43
|
+
div#jobs {
|
44
|
+
position: absolute;
|
45
|
+
left: 375px;
|
46
|
+
top: 10px;
|
47
|
+
width: 500px;
|
48
|
+
padding-left: 20px;
|
49
|
+
color: red;
|
50
|
+
}
|
51
|
+
|
52
|
+
div#groups {
|
53
|
+
color: red;
|
54
|
+
background-color: yellow;
|
55
|
+
border: solid 1px red;
|
56
|
+
overflow-y: auto;
|
57
|
+
height: 150px;
|
58
|
+
}
|
59
|
+
|
60
|
+
div#groups a {
|
61
|
+
color: red;
|
62
|
+
background-color: yellow;
|
63
|
+
}
|
64
|
+
|
65
|
+
.highlight {
|
66
|
+
background-color: red;
|
67
|
+
color: yellow;
|
68
|
+
}
|
69
|
+
|
70
|
+
td {
|
71
|
+
padding-right: 10px;
|
72
|
+
}
|
73
|
+
|
74
|
+
a {
|
75
|
+
text-decoration: underline;
|
76
|
+
color: red;
|
77
|
+
font-weight: bold;
|
78
|
+
}
|
79
|
+
|
80
|
+
a:hover, ol a:hover {
|
81
|
+
text-decoration: underline;
|
82
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
function setActiveStyleSheet(title) {
|
2
1
|
var i, a, main;
|
3
2
|
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
|
4
3
|
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
|
5
4
|
a.disabled = true;
|
6
5
|
if(a.getAttribute("title") == title) a.disabled = false;
|
7
6
|
}
|
8
7
|
}
|
9
8
|
var i, a;
|
10
9
|
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
|
11
10
|
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
|
12
11
|
}
|
13
12
|
return null;
|
14
13
|
var i, a;
|
15
14
|
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
|
16
15
|
if(a.getAttribute("rel").indexOf("style") != -1
|
17
16
|
&& a.getAttribute("rel").indexOf("alt") == -1
|
18
17
|
&& a.getAttribute("title")
|
19
18
|
) return a.getAttribute("title");
|
20
19
|
}
|
21
20
|
return null;
|
22
21
|
if (days) {
|
23
22
|
var date = new Date();
|
24
23
|
date.setTime(date.getTime()+(days*24*60*60*1000));
|
25
24
|
var expires = "; expires="+date.toGMTString();
|
26
25
|
}
|
27
26
|
else expires = "";
|
28
27
|
document.cookie = name+"="+value+expires+"; path=/";
|
29
28
|
var nameEQ = name + "=";
|
30
29
|
var ca = document.cookie.split(';');
|
31
30
|
for(var i=0;i < ca.length;i++) {
|
32
31
|
var c = ca[i];
|
33
32
|
while (c.charAt(0)==' ') c = c.substring(1,c.length);
|
34
33
|
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
|
35
34
|
}
|
36
35
|
return null;
|
37
36
|
var cookie = readCookie("style");
|
38
37
|
var title = cookie ? cookie : getPreferredStyleSheet();
|
39
38
|
setActiveStyleSheet(title);
|
40
39
|
var title = getActiveStyleSheet();
|
41
40
|
createCookie("style", title, 365);
|
41
|
+
var port = 9055
|
42
42
|
var i, a, main;
|
43
43
|
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
|
44
44
|
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
|
45
45
|
a.disabled = true;
|
46
46
|
if(a.getAttribute("title") == title) a.disabled = false;
|
47
47
|
}
|
48
48
|
}
|
49
49
|
var i, a;
|
50
50
|
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
|
51
51
|
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
|
52
52
|
}
|
53
53
|
return null;
|
54
54
|
var i, a;
|
55
55
|
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
|
56
56
|
if(a.getAttribute("rel").indexOf("style") != -1
|
57
57
|
&& a.getAttribute("rel").indexOf("alt") == -1
|
58
58
|
&& a.getAttribute("title")
|
59
59
|
) return a.getAttribute("title");
|
60
60
|
}
|
61
61
|
return null;
|
62
62
|
if (days) {
|
63
63
|
var date = new Date();
|
64
64
|
date.setTime(date.getTime()+(days*24*60*60*1000));
|
65
65
|
var expires = "; expires="+date.toGMTString();
|
66
66
|
}
|
67
67
|
else expires = "";
|
68
68
|
document.cookie = name+"="+value+expires+"; path=/";
|
69
69
|
var nameEQ = name + "=";
|
70
70
|
var ca = document.cookie.split(';');
|
71
71
|
for(var i=0;i < ca.length;i++) {
|
72
72
|
var c = ca[i];
|
73
73
|
while (c.charAt(0)==' ') c = c.substring(1,c.length);
|
74
74
|
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
|
75
75
|
}
|
76
76
|
return null;
|
77
77
|
var cookie = readCookie("chimpd_theme_" + port);
|
78
78
|
var title = cookie ? cookie : getPreferredStyleSheet();
|
79
79
|
setActiveStyleSheet(title);
|
80
80
|
var title = getActiveStyleSheet();
|
81
81
|
createCookie("chimpd_theme_" + port, title, 365);
|
data/lib/right_chimp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_chimp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest_connection
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- lib/right_chimp/templates/default.css
|
147
147
|
- lib/right_chimp/templates/greenscreen.css
|
148
148
|
- lib/right_chimp/templates/hotdogstand.css
|
149
|
+
- lib/right_chimp/templates/invertedhotdogstand.css
|
149
150
|
- lib/right_chimp/templates/styleswitcher.js
|
150
151
|
- lib/right_chimp/version.rb
|
151
152
|
- spec/spec_chimp.rb
|