winr 1.0 → 1.0.1
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 +4 -4
- data/bin/winr +22 -22
- data/winr.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f21441bb531e1d38f35a8f66a06cde6ab1082b2ea9713d4f25f78dc6ca2f870
|
|
4
|
+
data.tar.gz: 2d0149171faeb84c7942f6d0546591c3d8ac9789771a682271a9a1d650820f09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67f0e74a0135c3927d4826d1160302ce30c2091193b762ae56b48db0eaf2c77cbe14e26ce212ff022feafebf38938ded4ddf3429a956240f3c0742be8dc0c1a5
|
|
7
|
+
data.tar.gz: 34d00a66c0d6bb5d100d551543d5c69e61f873bca05db421c830dce67df8b00a028369b04ee6f1e8d8b042a11e14d3ed6d50b1d6fc4a05a0409d91442b4d5905
|
data/bin/winr
CHANGED
|
@@ -204,7 +204,28 @@ end
|
|
|
204
204
|
|
|
205
205
|
# read the winr script
|
|
206
206
|
winr = ARGV.first or abort "missing winr script"
|
|
207
|
-
|
|
207
|
+
|
|
208
|
+
# generate the code template
|
|
209
|
+
tmpl = ERB.new(<<~"end")
|
|
210
|
+
# ============================================================================
|
|
211
|
+
# Environment <%= ei + 1 %>: <%= e.name %>
|
|
212
|
+
# Context <%= ci + 1 %>: <%= c.name %>
|
|
213
|
+
# Task <%= ti + 1 %>: <%= t.name %>
|
|
214
|
+
# ============================================================================
|
|
215
|
+
|
|
216
|
+
trap("INT") { exit }
|
|
217
|
+
|
|
218
|
+
# def __winr_timer; Process.clock_gettime(Process::CLOCK_MONOTONIC); end
|
|
219
|
+
def __winr_timer; Time.now.to_f; end
|
|
220
|
+
|
|
221
|
+
<%= e.begin %>
|
|
222
|
+
<%= c.begin %>
|
|
223
|
+
|
|
224
|
+
<%= compile(t, file.path) %>
|
|
225
|
+
|
|
226
|
+
<%= c.end %>
|
|
227
|
+
<%= e.end %>
|
|
228
|
+
end
|
|
208
229
|
|
|
209
230
|
# grok the config
|
|
210
231
|
$config = eval(File.read(winr))
|
|
@@ -291,24 +312,3 @@ rank.each do |ips, ei, ci, ti|
|
|
|
291
312
|
end
|
|
292
313
|
puts rb
|
|
293
314
|
puts "```" unless hush
|
|
294
|
-
|
|
295
|
-
__END__
|
|
296
|
-
|
|
297
|
-
# ============================================================================
|
|
298
|
-
# Environment <%= ei + 1 %>: <%= e.name %>
|
|
299
|
-
# Context <%= ci + 1 %>: <%= c.name %>
|
|
300
|
-
# Task <%= ti + 1 %>: <%= t.name %>
|
|
301
|
-
# ============================================================================
|
|
302
|
-
|
|
303
|
-
trap("INT") { exit }
|
|
304
|
-
|
|
305
|
-
# def __winr_timer; Process.clock_gettime(Process::CLOCK_MONOTONIC); end
|
|
306
|
-
def __winr_timer; Time.now.to_f; end
|
|
307
|
-
|
|
308
|
-
<%= e.begin %>
|
|
309
|
-
<%= c.begin %>
|
|
310
|
-
|
|
311
|
-
<%= compile(t, file.path) %>
|
|
312
|
-
|
|
313
|
-
<%= c.end %>
|
|
314
|
-
<%= e.end %>
|
data/winr.gemspec
CHANGED