zhong 0.2.3 → 0.2.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d80018119a8dad42610c1bf9736cf81eff5e91a7
4
- data.tar.gz: d0ebedc85aedfc21e15c3c324525e5a497f56e1d
3
+ metadata.gz: a3e71463624a6d3061b206272b39c88daa0b145d
4
+ data.tar.gz: 0b71eaff8757627ea23f304ada61ba8f20276ace
5
5
  SHA512:
6
- metadata.gz: 6245f44c4154dcb1c93e08bcc4801b177ac66f33f6531e89d437bf6926c283a777c58cef5514daad6b488c557e2fa5e524423abe48c35812e53c4c917a5fbf38
7
- data.tar.gz: 4f9ea33e8d62cca027a0c8383fa0a2683a6a2a8a477090842fb41b7fa484b8139b1ac904f313900bb6f57eb28dc219b011d04915eec7329a25963521774dc3ba
6
+ metadata.gz: c580408001b146026c8b9a6526b70867bcc410ce4b8a6017e7050575cb00008366c8eddf8b4b3895d90741d9f05c5807b466fc09fc0d192a76a5fe96f47d2f31
7
+ data.tar.gz: 2d9cb24f3af98eb301b58742ecb539047b01938abaf06e0bdf6bd8397565505aadf03707ee14ea99f89e6348aca19e6b202006012e5cd6a8fc116a72089f96b8
@@ -1,3 +1,7 @@
1
+ ## 0.2.4
2
+
3
+ - Compatibility with Sinatra/Tilt (thank you Brian Storti!)
4
+
1
5
  ## 0.2.3
2
6
 
3
7
  - Much improved documentation, and executable file naming (thank you Antoine Augusti!)
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
@@ -1,3 +1,3 @@
1
1
  module Zhong
2
- VERSION = "0.2.3".freeze
2
+ VERSION = "0.2.4".freeze
3
3
  end
@@ -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 -%>" value="<%= job.id -%>" data-confirm="Are you sure you want to <%= enabled_str -%> this job?"><%= enabled_str.capitalize -%></button>
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]) -%></strong> <em>(PID <%= host[:pid] -%>)</em>: last seen <%= relative_time(host[:last_seen]) -%>.
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 -%></small>
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.3
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-07-28 00:00:00.000000000 Z
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.5.2
277
+ rubygems_version: 2.6.13
278
278
  signing_key:
279
279
  specification_version: 4
280
280
  summary: Reliable, distributed cron.