gloo 0.5.4 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/gloo/app/args.rb +48 -6
- data/lib/gloo/app/engine.rb +60 -38
- data/lib/gloo/app/help.rb +137 -16
- data/lib/gloo/app/info.rb +3 -1
- data/lib/gloo/app/log.rb +23 -0
- data/lib/gloo/app/mode.rb +2 -0
- data/lib/gloo/app/settings.rb +98 -47
- data/lib/gloo/convert/converter.rb +35 -0
- data/lib/gloo/convert/string_to_datetime.rb +1 -1
- data/lib/gloo/convert/string_to_decimal.rb +1 -1
- data/lib/gloo/convert/string_to_integer.rb +1 -1
- data/lib/gloo/core/dictionary.rb +99 -22
- data/lib/gloo/core/error.rb +19 -8
- data/lib/gloo/core/event_manager.rb +4 -0
- data/lib/gloo/core/factory.rb +11 -0
- data/lib/gloo/core/gloo_system.rb +1 -1
- data/lib/gloo/core/heap.rb +11 -3
- data/lib/gloo/core/here.rb +36 -0
- data/lib/gloo/core/it.rb +6 -0
- data/lib/gloo/core/literal.rb +5 -0
- data/lib/gloo/core/obj.rb +22 -0
- data/lib/gloo/core/op.rb +7 -0
- data/lib/gloo/core/parser.rb +6 -0
- data/lib/gloo/core/pn.rb +38 -0
- data/lib/gloo/core/tokens.rb +66 -22
- data/lib/gloo/core/verb.rb +12 -0
- data/lib/gloo/exec/action.rb +48 -0
- data/lib/gloo/exec/dispatch.rb +15 -5
- data/lib/gloo/exec/exec_env.rb +74 -0
- data/lib/gloo/exec/runner.rb +4 -2
- data/lib/gloo/{core → exec}/script.rb +21 -9
- data/lib/gloo/exec/stack.rb +78 -0
- data/lib/gloo/expr/expression.rb +26 -4
- data/lib/gloo/expr/l_boolean.rb +6 -0
- data/lib/gloo/expr/l_decimal.rb +5 -0
- data/lib/gloo/expr/l_integer.rb +7 -0
- data/lib/gloo/expr/l_string.rb +7 -0
- data/lib/gloo/expr/op_div.rb +2 -0
- data/lib/gloo/expr/op_minus.rb +2 -0
- data/lib/gloo/expr/op_mult.rb +2 -0
- data/lib/gloo/expr/op_plus.rb +2 -0
- data/lib/gloo/help/app/application.txt +22 -0
- data/lib/gloo/help/app/configuration.txt +7 -0
- data/lib/gloo/help/app/default_help.txt +14 -0
- data/lib/gloo/help/app/logging.txt +16 -0
- data/lib/gloo/help/core/color.txt +31 -0
- data/lib/gloo/help/core/error.txt +33 -0
- data/lib/gloo/help/core/events.txt +21 -0
- data/lib/gloo/help/core/gloo_system.txt +54 -0
- data/lib/gloo/help/core/here.txt +30 -0
- data/lib/gloo/help/core/it.txt +23 -0
- data/lib/gloo/help/core/ops.txt +16 -0
- data/lib/gloo/help/core/pathname.txt +29 -0
- data/lib/gloo/help/objs/basic/alias.txt +36 -0
- data/lib/gloo/help/objs/basic/boolean.txt +28 -0
- data/lib/gloo/help/objs/basic/container.txt +33 -0
- data/lib/gloo/help/objs/basic/decimal.txt +28 -0
- data/lib/gloo/help/objs/basic/integer.txt +27 -0
- data/lib/gloo/help/objs/basic/script.txt +29 -0
- data/lib/gloo/help/objs/basic/string.txt +28 -0
- data/lib/gloo/help/objs/basic/text.txt +27 -0
- data/lib/gloo/help/objs/basic/untyped.txt +22 -0
- data/lib/gloo/help/objs/cli/banner.txt +49 -0
- data/lib/gloo/help/objs/cli/bar.txt +34 -0
- data/lib/gloo/help/objs/cli/colorize.txt +33 -0
- data/lib/gloo/help/objs/cli/confirm.txt +26 -0
- data/lib/gloo/help/objs/cli/menu.txt +44 -0
- data/lib/gloo/help/objs/cli/menu_item.txt +26 -0
- data/lib/gloo/help/objs/cli/pastel.txt +43 -0
- data/lib/gloo/help/objs/cli/prompt.txt +27 -0
- data/lib/gloo/help/objs/cli/select.txt +34 -0
- data/lib/gloo/help/objs/ctrl/each.txt +48 -0
- data/lib/gloo/help/objs/ctrl/repeat.txt +38 -0
- data/lib/gloo/help/objs/data/markdown.txt +25 -0
- data/lib/gloo/help/objs/data/table.txt +46 -0
- data/lib/gloo/help/objs/dev/git_repo.txt +35 -0
- data/lib/gloo/help/objs/dt/date.txt +23 -0
- data/lib/gloo/help/objs/dt/datetime.txt +24 -0
- data/lib/gloo/help/objs/dt/time.txt +23 -0
- data/lib/gloo/help/objs/ror/erb.txt +37 -0
- data/lib/gloo/help/objs/ror/eval.txt +24 -0
- data/lib/gloo/help/objs/snd/play.txt +23 -0
- data/lib/gloo/help/objs/snd/say.txt +28 -0
- data/lib/gloo/help/objs/system/file.txt +41 -0
- data/lib/gloo/help/objs/system/system.txt +32 -0
- data/lib/gloo/help/objs/web/http_get.txt +35 -0
- data/lib/gloo/help/objs/web/http_post.txt +32 -0
- data/lib/gloo/help/objs/web/json.txt +34 -0
- data/lib/gloo/help/objs/web/slack.txt +33 -0
- data/lib/gloo/help/objs/web/teams.txt +30 -0
- data/lib/gloo/help/objs/web/uri.txt +37 -0
- data/lib/gloo/help/verbs/alert.txt +33 -0
- data/lib/gloo/help/verbs/beep.txt +25 -0
- data/lib/gloo/help/verbs/cls.txt +24 -0
- data/lib/gloo/help/verbs/context.txt +43 -0
- data/lib/gloo/help/verbs/create.txt +33 -0
- data/lib/gloo/help/verbs/execute.txt +27 -0
- data/lib/gloo/help/verbs/help.txt +34 -0
- data/lib/gloo/help/verbs/if.txt +37 -0
- data/lib/gloo/help/verbs/list.txt +34 -0
- data/lib/gloo/help/verbs/load.txt +38 -0
- data/lib/gloo/help/verbs/move.txt +42 -0
- data/lib/gloo/help/verbs/put.txt +38 -0
- data/lib/gloo/help/verbs/quit.txt +25 -0
- data/lib/gloo/help/verbs/run.txt +41 -0
- data/lib/gloo/help/verbs/save.txt +26 -0
- data/lib/gloo/help/verbs/show.txt +30 -0
- data/lib/gloo/help/verbs/tell.txt +34 -0
- data/lib/gloo/help/verbs/unless.txt +38 -0
- data/lib/gloo/help/verbs/version.txt +32 -0
- data/lib/gloo/help/verbs/wait.txt +29 -0
- data/lib/gloo/objs/basic/alias.rb +0 -33
- data/lib/gloo/objs/basic/boolean.rb +6 -27
- data/lib/gloo/objs/basic/container.rb +0 -33
- data/lib/gloo/objs/basic/decimal.rb +8 -28
- data/lib/gloo/objs/basic/integer.rb +5 -26
- data/lib/gloo/objs/basic/script.rb +1 -27
- data/lib/gloo/objs/basic/string.rb +6 -26
- data/lib/gloo/objs/basic/text.rb +0 -25
- data/lib/gloo/objs/basic/untyped.rb +0 -26
- data/lib/gloo/objs/cli/banner.rb +0 -29
- data/lib/gloo/objs/cli/bar.rb +0 -29
- data/lib/gloo/objs/cli/colorize.rb +4 -34
- data/lib/gloo/objs/cli/confirm.rb +6 -36
- data/lib/gloo/objs/cli/menu.rb +6 -36
- data/lib/gloo/objs/cli/menu_item.rb +0 -33
- data/lib/gloo/objs/cli/pastel.rb +4 -27
- data/lib/gloo/objs/cli/prompt.rb +4 -28
- data/lib/gloo/objs/cli/select.rb +4 -31
- data/lib/gloo/objs/ctrl/each.rb +33 -33
- data/lib/gloo/objs/ctrl/repeat.rb +8 -29
- data/lib/gloo/objs/data/markdown.rb +0 -25
- data/lib/gloo/objs/data/table.rb +4 -32
- data/lib/gloo/objs/dev/git.rb +12 -30
- data/lib/gloo/objs/dt/date.rb +3 -25
- data/lib/gloo/objs/dt/datetime.rb +4 -26
- data/lib/gloo/objs/dt/time.rb +3 -25
- data/lib/gloo/objs/ror/erb.rb +11 -45
- data/lib/gloo/objs/ror/eval.rb +11 -38
- data/lib/gloo/objs/snd/play.rb +2 -25
- data/lib/gloo/objs/snd/say.rb +9 -31
- data/lib/gloo/objs/system/file_handle.rb +0 -38
- data/lib/gloo/objs/system/system.rb +16 -46
- data/lib/gloo/objs/web/http_get.rb +57 -83
- data/lib/gloo/objs/web/http_post.rb +8 -31
- data/lib/gloo/objs/web/json.rb +11 -31
- data/lib/gloo/objs/web/slack.rb +7 -34
- data/lib/gloo/objs/web/teams.rb +13 -48
- data/lib/gloo/objs/web/uri.rb +0 -29
- data/lib/gloo/persist/file_loader.rb +8 -0
- data/lib/gloo/persist/file_saver.rb +6 -0
- data/lib/gloo/persist/file_storage.rb +2 -0
- data/lib/gloo/persist/line_splitter.rb +2 -0
- data/lib/gloo/persist/persist_man.rb +6 -0
- data/lib/gloo/verbs/alert.rb +30 -44
- data/lib/gloo/verbs/beep.rb +0 -30
- data/lib/gloo/verbs/cls.rb +0 -30
- data/lib/gloo/verbs/context.rb +9 -39
- data/lib/gloo/verbs/create.rb +17 -32
- data/lib/gloo/verbs/execute.rb +52 -0
- data/lib/gloo/verbs/help.rb +151 -115
- data/lib/gloo/verbs/if.rb +46 -44
- data/lib/gloo/verbs/list.rb +36 -54
- data/lib/gloo/verbs/load.rb +8 -37
- data/lib/gloo/verbs/move.rb +12 -51
- data/lib/gloo/verbs/put.rb +28 -52
- data/lib/gloo/verbs/quit.rb +0 -31
- data/lib/gloo/verbs/run.rb +23 -39
- data/lib/gloo/verbs/save.rb +0 -33
- data/lib/gloo/verbs/show.rb +6 -31
- data/lib/gloo/verbs/tell.rb +31 -31
- data/lib/gloo/verbs/unless.rb +47 -46
- data/lib/gloo/verbs/version.rb +0 -30
- data/lib/gloo/verbs/wait.rb +0 -31
- metadata +79 -3
data/lib/gloo/verbs/wait.rb
CHANGED
@@ -37,37 +37,6 @@ module Gloo
|
|
37
37
|
return KEYWORD_SHORT
|
38
38
|
end
|
39
39
|
|
40
|
-
# ---------------------------------------------------------------------
|
41
|
-
# Help
|
42
|
-
# ---------------------------------------------------------------------
|
43
|
-
|
44
|
-
#
|
45
|
-
# Get help for this verb.
|
46
|
-
#
|
47
|
-
def self.help
|
48
|
-
return <<~TEXT
|
49
|
-
WAIT VERB
|
50
|
-
NAME: wait
|
51
|
-
SHORTCUT: w
|
52
|
-
|
53
|
-
DESCRIPTION
|
54
|
-
Wait for the given number of seconds.
|
55
|
-
|
56
|
-
SYNTAX
|
57
|
-
wait <seconds>
|
58
|
-
|
59
|
-
PARAMETERS
|
60
|
-
seconds - The number of seconds.
|
61
|
-
If no value is given, we'll wait for 1 second.
|
62
|
-
|
63
|
-
RESULT
|
64
|
-
None
|
65
|
-
|
66
|
-
ERRORS
|
67
|
-
None
|
68
|
-
TEXT
|
69
|
-
end
|
70
|
-
|
71
40
|
end
|
72
41
|
end
|
73
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gloo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Crane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -210,6 +210,7 @@ files:
|
|
210
210
|
- lib/gloo/app/log.rb
|
211
211
|
- lib/gloo/app/mode.rb
|
212
212
|
- lib/gloo/app/settings.rb
|
213
|
+
- lib/gloo/convert/converter.rb
|
213
214
|
- lib/gloo/convert/string_to_datetime.rb
|
214
215
|
- lib/gloo/convert/string_to_decimal.rb
|
215
216
|
- lib/gloo/convert/string_to_integer.rb
|
@@ -220,6 +221,7 @@ files:
|
|
220
221
|
- lib/gloo/core/factory.rb
|
221
222
|
- lib/gloo/core/gloo_system.rb
|
222
223
|
- lib/gloo/core/heap.rb
|
224
|
+
- lib/gloo/core/here.rb
|
223
225
|
- lib/gloo/core/it.rb
|
224
226
|
- lib/gloo/core/literal.rb
|
225
227
|
- lib/gloo/core/obj.rb
|
@@ -227,11 +229,14 @@ files:
|
|
227
229
|
- lib/gloo/core/op.rb
|
228
230
|
- lib/gloo/core/parser.rb
|
229
231
|
- lib/gloo/core/pn.rb
|
230
|
-
- lib/gloo/core/script.rb
|
231
232
|
- lib/gloo/core/tokens.rb
|
232
233
|
- lib/gloo/core/verb.rb
|
234
|
+
- lib/gloo/exec/action.rb
|
233
235
|
- lib/gloo/exec/dispatch.rb
|
236
|
+
- lib/gloo/exec/exec_env.rb
|
234
237
|
- lib/gloo/exec/runner.rb
|
238
|
+
- lib/gloo/exec/script.rb
|
239
|
+
- lib/gloo/exec/stack.rb
|
235
240
|
- lib/gloo/expr/expression.rb
|
236
241
|
- lib/gloo/expr/l_boolean.rb
|
237
242
|
- lib/gloo/expr/l_decimal.rb
|
@@ -241,6 +246,76 @@ files:
|
|
241
246
|
- lib/gloo/expr/op_minus.rb
|
242
247
|
- lib/gloo/expr/op_mult.rb
|
243
248
|
- lib/gloo/expr/op_plus.rb
|
249
|
+
- lib/gloo/help/app/application.txt
|
250
|
+
- lib/gloo/help/app/configuration.txt
|
251
|
+
- lib/gloo/help/app/default_help.txt
|
252
|
+
- lib/gloo/help/app/logging.txt
|
253
|
+
- lib/gloo/help/core/color.txt
|
254
|
+
- lib/gloo/help/core/error.txt
|
255
|
+
- lib/gloo/help/core/events.txt
|
256
|
+
- lib/gloo/help/core/gloo_system.txt
|
257
|
+
- lib/gloo/help/core/here.txt
|
258
|
+
- lib/gloo/help/core/it.txt
|
259
|
+
- lib/gloo/help/core/ops.txt
|
260
|
+
- lib/gloo/help/core/pathname.txt
|
261
|
+
- lib/gloo/help/objs/basic/alias.txt
|
262
|
+
- lib/gloo/help/objs/basic/boolean.txt
|
263
|
+
- lib/gloo/help/objs/basic/container.txt
|
264
|
+
- lib/gloo/help/objs/basic/decimal.txt
|
265
|
+
- lib/gloo/help/objs/basic/integer.txt
|
266
|
+
- lib/gloo/help/objs/basic/script.txt
|
267
|
+
- lib/gloo/help/objs/basic/string.txt
|
268
|
+
- lib/gloo/help/objs/basic/text.txt
|
269
|
+
- lib/gloo/help/objs/basic/untyped.txt
|
270
|
+
- lib/gloo/help/objs/cli/banner.txt
|
271
|
+
- lib/gloo/help/objs/cli/bar.txt
|
272
|
+
- lib/gloo/help/objs/cli/colorize.txt
|
273
|
+
- lib/gloo/help/objs/cli/confirm.txt
|
274
|
+
- lib/gloo/help/objs/cli/menu.txt
|
275
|
+
- lib/gloo/help/objs/cli/menu_item.txt
|
276
|
+
- lib/gloo/help/objs/cli/pastel.txt
|
277
|
+
- lib/gloo/help/objs/cli/prompt.txt
|
278
|
+
- lib/gloo/help/objs/cli/select.txt
|
279
|
+
- lib/gloo/help/objs/ctrl/each.txt
|
280
|
+
- lib/gloo/help/objs/ctrl/repeat.txt
|
281
|
+
- lib/gloo/help/objs/data/markdown.txt
|
282
|
+
- lib/gloo/help/objs/data/table.txt
|
283
|
+
- lib/gloo/help/objs/dev/git_repo.txt
|
284
|
+
- lib/gloo/help/objs/dt/date.txt
|
285
|
+
- lib/gloo/help/objs/dt/datetime.txt
|
286
|
+
- lib/gloo/help/objs/dt/time.txt
|
287
|
+
- lib/gloo/help/objs/ror/erb.txt
|
288
|
+
- lib/gloo/help/objs/ror/eval.txt
|
289
|
+
- lib/gloo/help/objs/snd/play.txt
|
290
|
+
- lib/gloo/help/objs/snd/say.txt
|
291
|
+
- lib/gloo/help/objs/system/file.txt
|
292
|
+
- lib/gloo/help/objs/system/system.txt
|
293
|
+
- lib/gloo/help/objs/web/http_get.txt
|
294
|
+
- lib/gloo/help/objs/web/http_post.txt
|
295
|
+
- lib/gloo/help/objs/web/json.txt
|
296
|
+
- lib/gloo/help/objs/web/slack.txt
|
297
|
+
- lib/gloo/help/objs/web/teams.txt
|
298
|
+
- lib/gloo/help/objs/web/uri.txt
|
299
|
+
- lib/gloo/help/verbs/alert.txt
|
300
|
+
- lib/gloo/help/verbs/beep.txt
|
301
|
+
- lib/gloo/help/verbs/cls.txt
|
302
|
+
- lib/gloo/help/verbs/context.txt
|
303
|
+
- lib/gloo/help/verbs/create.txt
|
304
|
+
- lib/gloo/help/verbs/execute.txt
|
305
|
+
- lib/gloo/help/verbs/help.txt
|
306
|
+
- lib/gloo/help/verbs/if.txt
|
307
|
+
- lib/gloo/help/verbs/list.txt
|
308
|
+
- lib/gloo/help/verbs/load.txt
|
309
|
+
- lib/gloo/help/verbs/move.txt
|
310
|
+
- lib/gloo/help/verbs/put.txt
|
311
|
+
- lib/gloo/help/verbs/quit.txt
|
312
|
+
- lib/gloo/help/verbs/run.txt
|
313
|
+
- lib/gloo/help/verbs/save.txt
|
314
|
+
- lib/gloo/help/verbs/show.txt
|
315
|
+
- lib/gloo/help/verbs/tell.txt
|
316
|
+
- lib/gloo/help/verbs/unless.txt
|
317
|
+
- lib/gloo/help/verbs/version.txt
|
318
|
+
- lib/gloo/help/verbs/wait.txt
|
244
319
|
- lib/gloo/objs/basic/alias.rb
|
245
320
|
- lib/gloo/objs/basic/boolean.rb
|
246
321
|
- lib/gloo/objs/basic/container.rb
|
@@ -290,6 +365,7 @@ files:
|
|
290
365
|
- lib/gloo/verbs/cls.rb
|
291
366
|
- lib/gloo/verbs/context.rb
|
292
367
|
- lib/gloo/verbs/create.rb
|
368
|
+
- lib/gloo/verbs/execute.rb
|
293
369
|
- lib/gloo/verbs/help.rb
|
294
370
|
- lib/gloo/verbs/if.rb
|
295
371
|
- lib/gloo/verbs/list.rb
|