zhong 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/lib/zhong/version.rb +1 -1
- data/web/views/index.erb +6 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3e71463624a6d3061b206272b39c88daa0b145d
|
4
|
+
data.tar.gz: 0b71eaff8757627ea23f304ada61ba8f20276ace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c580408001b146026c8b9a6526b70867bcc410ce4b8a6017e7050575cb00008366c8eddf8b4b3895d90741d9f05c5807b466fc09fc0d192a76a5fe96f47d2f31
|
7
|
+
data.tar.gz: 2d9cb24f3af98eb301b58742ecb539047b01938abaf06e0bdf6bd8397565505aadf03707ee14ea99f89e6348aca19e6b202006012e5cd6a8fc116a72089f96b8
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -27,9 +27,9 @@ Zhong.schedule do
|
|
27
27
|
puts "foo"
|
28
28
|
end
|
29
29
|
|
30
|
-
every(1.minute, "biz", at: ["**:26", "**:27"]) { puts "biz" }
|
31
|
-
every(1.week, "baz", at: ["mon 22:45", "wed 23:13"]) { puts "baz" }
|
32
|
-
every(10.seconds, "boom") { raise "fail" }
|
30
|
+
every(1.minute, "running biz at 26th and 27th minute", at: ["**:26", "**:27"]) { puts "biz" }
|
31
|
+
every(1.week, "running baz on mon and wed", at: ["mon 22:45", "wed 23:13"]) { puts "baz" }
|
32
|
+
every(10.seconds, "boom every 10 seconds") { raise "fail" }
|
33
33
|
end
|
34
34
|
|
35
35
|
category "clutter" do
|
data/lib/zhong/version.rb
CHANGED
data/web/views/index.erb
CHANGED
@@ -70,7 +70,7 @@
|
|
70
70
|
<tbody>
|
71
71
|
<% @jobs.each do |job| %>
|
72
72
|
<% enabled = !@disabled[job.to_s] %>
|
73
|
-
<% enabled_str = enabled ? 'disable' : 'enable'
|
73
|
+
<% enabled_str = enabled ? 'disable' : 'enable' %>
|
74
74
|
<% last_run = @last_runs[job.to_s] %>
|
75
75
|
<tr class="<%= enabled ? "" : "disabled" %>">
|
76
76
|
<td><%= h(job) %></td>
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<form method="POST" style="margin-top: 20px; margin-bottom: 10px;">
|
89
89
|
<%= csrf_tag %>
|
90
90
|
<div>
|
91
|
-
<button type="submit" name="<%= enabled_str
|
91
|
+
<button type="submit" name="<%= enabled_str %>" value="<%= job.id %>" data-confirm="Are you sure you want to <%= enabled_str %> this job?"><%= enabled_str.capitalize %></button>
|
92
92
|
</div>
|
93
93
|
</form>
|
94
94
|
</td>
|
@@ -100,15 +100,15 @@
|
|
100
100
|
<div>
|
101
101
|
<h3>Hosts</h3>
|
102
102
|
<ul>
|
103
|
-
<% @hosts.each do |host|
|
103
|
+
<% @hosts.each do |host| %>
|
104
104
|
<li>
|
105
|
-
<strong><%= h(host[:host])
|
105
|
+
<strong><%= h(host[:host]) %></strong> <em>(PID <%= host[:pid] %>)</em>: last seen <%= relative_time(host[:last_seen]) %>.
|
106
106
|
</li>
|
107
|
-
<% end
|
107
|
+
<% end %>
|
108
108
|
</ul>
|
109
109
|
</div>
|
110
110
|
<div>
|
111
|
-
<small><%= product_version
|
111
|
+
<small><%= product_version %></small>
|
112
112
|
</div>
|
113
113
|
</body>
|
114
114
|
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zhong
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Elser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: suo
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
version: '0'
|
275
275
|
requirements: []
|
276
276
|
rubyforge_project:
|
277
|
-
rubygems_version: 2.
|
277
|
+
rubygems_version: 2.6.13
|
278
278
|
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: Reliable, distributed cron.
|