gloo 0.8.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.gitignore +2 -1
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/LICENSE.txt +1 -1
  7. data/gloo.gemspec +12 -4
  8. data/lib/VERSION +1 -1
  9. data/lib/dependencies.rb +4 -4
  10. data/lib/gloo/app/info.rb +3 -1
  11. data/lib/gloo/app/log.rb +1 -29
  12. data/lib/gloo/app/platform.rb +142 -0
  13. data/lib/gloo/objs/cli/banner.rb +2 -2
  14. data/lib/gloo/objs/cli/bar.rb +4 -4
  15. data/lib/gloo/objs/cli/colorize.rb +3 -3
  16. data/lib/gloo/objs/cli/confirm.rb +3 -3
  17. data/lib/gloo/objs/cli/menu.rb +9 -9
  18. data/lib/gloo/objs/cli/menu_item.rb +2 -2
  19. data/lib/gloo/objs/cli/pastel.rb +2 -2
  20. data/lib/gloo/objs/cli/prompt.rb +4 -4
  21. data/lib/gloo/objs/cli/select.rb +4 -4
  22. data/lib/gloo/objs/data/mysql.rb +9 -9
  23. data/lib/gloo/objs/data/sqlite.rb +10 -10
  24. data/lib/gloo/objs/dev/git.rb +7 -7
  25. data/lib/gloo/objs/dev/stats.rb +8 -5
  26. data/lib/gloo/objs/snd/play.rb +1 -1
  27. data/lib/gloo/objs/snd/say.rb +2 -2
  28. data/lib/gloo/objs/system/file_handle.rb +9 -9
  29. data/lib/gloo/objs/system/ssh_exec.rb +3 -3
  30. data/lib/gloo/objs/system/system.rb +2 -2
  31. data/lib/gloo/verbs/alert.rb +7 -7
  32. data/lib/gloo/verbs/beep.rb +1 -1
  33. data/lib/gloo/verbs/cls.rb +2 -2
  34. data/lib/gloo/verbs/help.rb +7 -189
  35. data/lib/gloo/verbs/version.rb +3 -3
  36. data/lib/gloo.rb +5 -1
  37. data/lib/run.rb +5 -1
  38. metadata +41 -177
  39. data/Gemfile.lock +0 -171
  40. data/lib/gloo/app/args.rb +0 -112
  41. data/lib/gloo/app/engine.rb +0 -230
  42. data/lib/gloo/app/help.rb +0 -156
  43. data/lib/gloo/app/mode.rb +0 -27
  44. data/lib/gloo/app/settings.rb +0 -186
  45. data/lib/gloo/convert/converter.rb +0 -35
  46. data/lib/gloo/convert/string_to_datetime.rb +0 -21
  47. data/lib/gloo/convert/string_to_decimal.rb +0 -20
  48. data/lib/gloo/convert/string_to_integer.rb +0 -20
  49. data/lib/gloo/core/baseo.rb +0 -30
  50. data/lib/gloo/core/dictionary.rb +0 -181
  51. data/lib/gloo/core/error.rb +0 -61
  52. data/lib/gloo/core/event_manager.rb +0 -44
  53. data/lib/gloo/core/factory.rb +0 -210
  54. data/lib/gloo/core/gloo_system.rb +0 -266
  55. data/lib/gloo/core/heap.rb +0 -52
  56. data/lib/gloo/core/here.rb +0 -36
  57. data/lib/gloo/core/it.rb +0 -36
  58. data/lib/gloo/core/literal.rb +0 -30
  59. data/lib/gloo/core/obj.rb +0 -303
  60. data/lib/gloo/core/obj_finder.rb +0 -30
  61. data/lib/gloo/core/op.rb +0 -40
  62. data/lib/gloo/core/parser.rb +0 -59
  63. data/lib/gloo/core/pn.rb +0 -188
  64. data/lib/gloo/core/tokens.rb +0 -165
  65. data/lib/gloo/core/verb.rb +0 -86
  66. data/lib/gloo/exec/action.rb +0 -48
  67. data/lib/gloo/exec/dispatch.rb +0 -40
  68. data/lib/gloo/exec/exec_env.rb +0 -74
  69. data/lib/gloo/exec/runner.rb +0 -45
  70. data/lib/gloo/exec/script.rb +0 -49
  71. data/lib/gloo/exec/stack.rb +0 -78
  72. data/lib/gloo/expr/expression.rb +0 -118
  73. data/lib/gloo/expr/l_boolean.rb +0 -36
  74. data/lib/gloo/expr/l_decimal.rb +0 -39
  75. data/lib/gloo/expr/l_integer.rb +0 -37
  76. data/lib/gloo/expr/l_string.rb +0 -58
  77. data/lib/gloo/expr/op_div.rb +0 -22
  78. data/lib/gloo/expr/op_minus.rb +0 -22
  79. data/lib/gloo/expr/op_mult.rb +0 -22
  80. data/lib/gloo/expr/op_plus.rb +0 -24
  81. data/lib/gloo/help/app/application.txt +0 -22
  82. data/lib/gloo/help/app/configuration.txt +0 -7
  83. data/lib/gloo/help/app/default_help.txt +0 -14
  84. data/lib/gloo/help/app/logging.txt +0 -16
  85. data/lib/gloo/help/core/color.txt +0 -31
  86. data/lib/gloo/help/core/error.txt +0 -33
  87. data/lib/gloo/help/core/events.txt +0 -21
  88. data/lib/gloo/help/core/gloo_system.txt +0 -57
  89. data/lib/gloo/help/core/here.txt +0 -30
  90. data/lib/gloo/help/core/it.txt +0 -23
  91. data/lib/gloo/help/core/ops.txt +0 -16
  92. data/lib/gloo/help/core/pathname.txt +0 -29
  93. data/lib/gloo/help/objs/basic/alias.txt +0 -36
  94. data/lib/gloo/help/objs/basic/boolean.txt +0 -28
  95. data/lib/gloo/help/objs/basic/container.txt +0 -33
  96. data/lib/gloo/help/objs/basic/decimal.txt +0 -28
  97. data/lib/gloo/help/objs/basic/integer.txt +0 -27
  98. data/lib/gloo/help/objs/basic/script.txt +0 -29
  99. data/lib/gloo/help/objs/basic/string.txt +0 -28
  100. data/lib/gloo/help/objs/basic/text.txt +0 -27
  101. data/lib/gloo/help/objs/basic/untyped.txt +0 -22
  102. data/lib/gloo/help/objs/cli/banner.txt +0 -49
  103. data/lib/gloo/help/objs/cli/bar.txt +0 -37
  104. data/lib/gloo/help/objs/cli/colorize.txt +0 -33
  105. data/lib/gloo/help/objs/cli/confirm.txt +0 -26
  106. data/lib/gloo/help/objs/cli/menu.txt +0 -44
  107. data/lib/gloo/help/objs/cli/menu_item.txt +0 -26
  108. data/lib/gloo/help/objs/cli/pastel.txt +0 -43
  109. data/lib/gloo/help/objs/cli/prompt.txt +0 -27
  110. data/lib/gloo/help/objs/cli/select.txt +0 -34
  111. data/lib/gloo/help/objs/ctrl/each.txt +0 -48
  112. data/lib/gloo/help/objs/ctrl/repeat.txt +0 -38
  113. data/lib/gloo/help/objs/data/markdown.txt +0 -25
  114. data/lib/gloo/help/objs/data/mysql.txt +0 -40
  115. data/lib/gloo/help/objs/data/query.txt +0 -37
  116. data/lib/gloo/help/objs/data/sqlite.txt +0 -26
  117. data/lib/gloo/help/objs/data/table.txt +0 -46
  118. data/lib/gloo/help/objs/dev/git_repo.txt +0 -36
  119. data/lib/gloo/help/objs/dev/stats.txt +0 -36
  120. data/lib/gloo/help/objs/dt/date.txt +0 -23
  121. data/lib/gloo/help/objs/dt/datetime.txt +0 -24
  122. data/lib/gloo/help/objs/dt/time.txt +0 -23
  123. data/lib/gloo/help/objs/ror/erb.txt +0 -37
  124. data/lib/gloo/help/objs/ror/eval.txt +0 -24
  125. data/lib/gloo/help/objs/snd/play.txt +0 -23
  126. data/lib/gloo/help/objs/snd/say.txt +0 -28
  127. data/lib/gloo/help/objs/system/file.txt +0 -48
  128. data/lib/gloo/help/objs/system/ssh_exec.txt +0 -30
  129. data/lib/gloo/help/objs/system/system.txt +0 -32
  130. data/lib/gloo/help/objs/web/http_get.txt +0 -35
  131. data/lib/gloo/help/objs/web/http_post.txt +0 -34
  132. data/lib/gloo/help/objs/web/json.txt +0 -34
  133. data/lib/gloo/help/objs/web/slack.txt +0 -33
  134. data/lib/gloo/help/objs/web/teams.txt +0 -30
  135. data/lib/gloo/help/objs/web/uri.txt +0 -38
  136. data/lib/gloo/help/verbs/alert.txt +0 -33
  137. data/lib/gloo/help/verbs/beep.txt +0 -25
  138. data/lib/gloo/help/verbs/cls.txt +0 -24
  139. data/lib/gloo/help/verbs/context.txt +0 -43
  140. data/lib/gloo/help/verbs/create.txt +0 -33
  141. data/lib/gloo/help/verbs/execute.txt +0 -27
  142. data/lib/gloo/help/verbs/help.txt +0 -34
  143. data/lib/gloo/help/verbs/if.txt +0 -37
  144. data/lib/gloo/help/verbs/list.txt +0 -34
  145. data/lib/gloo/help/verbs/load.txt +0 -38
  146. data/lib/gloo/help/verbs/move.txt +0 -42
  147. data/lib/gloo/help/verbs/put.txt +0 -38
  148. data/lib/gloo/help/verbs/quit.txt +0 -25
  149. data/lib/gloo/help/verbs/run.txt +0 -41
  150. data/lib/gloo/help/verbs/save.txt +0 -26
  151. data/lib/gloo/help/verbs/show.txt +0 -30
  152. data/lib/gloo/help/verbs/tell.txt +0 -34
  153. data/lib/gloo/help/verbs/unless.txt +0 -38
  154. data/lib/gloo/help/verbs/version.txt +0 -32
  155. data/lib/gloo/help/verbs/wait.txt +0 -29
  156. data/lib/gloo/objs/basic/alias.rb +0 -78
  157. data/lib/gloo/objs/basic/boolean.rb +0 -120
  158. data/lib/gloo/objs/basic/container.rb +0 -76
  159. data/lib/gloo/objs/basic/decimal.rb +0 -76
  160. data/lib/gloo/objs/basic/integer.rb +0 -73
  161. data/lib/gloo/objs/basic/script.rb +0 -99
  162. data/lib/gloo/objs/basic/string.rb +0 -77
  163. data/lib/gloo/objs/basic/text.rb +0 -87
  164. data/lib/gloo/objs/basic/untyped.rb +0 -41
  165. data/lib/gloo/objs/ctrl/each.rb +0 -279
  166. data/lib/gloo/objs/ctrl/repeat.rb +0 -108
  167. data/lib/gloo/objs/data/markdown.rb +0 -84
  168. data/lib/gloo/objs/data/query.rb +0 -176
  169. data/lib/gloo/objs/data/table.rb +0 -140
  170. data/lib/gloo/objs/dt/date.rb +0 -50
  171. data/lib/gloo/objs/dt/datetime.rb +0 -62
  172. data/lib/gloo/objs/dt/time.rb +0 -50
  173. data/lib/gloo/objs/ror/erb.rb +0 -116
  174. data/lib/gloo/objs/ror/eval.rb +0 -107
  175. data/lib/gloo/objs/web/http_get.rb +0 -159
  176. data/lib/gloo/objs/web/http_post.rb +0 -183
  177. data/lib/gloo/objs/web/json.rb +0 -135
  178. data/lib/gloo/objs/web/slack.rb +0 -130
  179. data/lib/gloo/objs/web/teams.rb +0 -117
  180. data/lib/gloo/objs/web/uri.rb +0 -148
  181. data/lib/gloo/persist/file_loader.rb +0 -191
  182. data/lib/gloo/persist/file_saver.rb +0 -49
  183. data/lib/gloo/persist/file_storage.rb +0 -45
  184. data/lib/gloo/persist/line_splitter.rb +0 -81
  185. data/lib/gloo/persist/persist_man.rb +0 -120
  186. data/lib/gloo/utils/format.rb +0 -21
  187. data/lib/gloo/utils/stats.rb +0 -205
  188. data/lib/gloo/utils/words.rb +0 -19
  189. data/lib/gloo/verbs/context.rb +0 -62
  190. data/lib/gloo/verbs/create.rb +0 -68
  191. data/lib/gloo/verbs/execute.rb +0 -56
  192. data/lib/gloo/verbs/if.rb +0 -92
  193. data/lib/gloo/verbs/list.rb +0 -98
  194. data/lib/gloo/verbs/load.rb +0 -45
  195. data/lib/gloo/verbs/move.rb +0 -89
  196. data/lib/gloo/verbs/put.rb +0 -94
  197. data/lib/gloo/verbs/quit.rb +0 -40
  198. data/lib/gloo/verbs/run.rb +0 -75
  199. data/lib/gloo/verbs/save.rb +0 -39
  200. data/lib/gloo/verbs/show.rb +0 -64
  201. data/lib/gloo/verbs/tell.rb +0 -79
  202. data/lib/gloo/verbs/unless.rb +0 -92
  203. data/lib/gloo/verbs/wait.rb +0 -42
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.8.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 1.17.3
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 1.17.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: '5.1'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 5.14.2
34
37
  type: :development
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - "~>"
39
42
  - !ruby/object:Gem::Version
40
- version: '5.0'
43
+ version: '5.1'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 5.14.2
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rake
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -58,6 +64,26 @@ dependencies:
58
64
  - - ">="
59
65
  - !ruby/object:Gem::Version
60
66
  version: 13.0.1
67
+ - !ruby/object:Gem::Dependency
68
+ name: gloo-lang
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '1.1'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 1.1.0
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '1.1'
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 1.1.0
61
87
  - !ruby/object:Gem::Dependency
62
88
  name: activesupport
63
89
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +93,7 @@ dependencies:
67
93
  version: '6.1'
68
94
  - - ">="
69
95
  - !ruby/object:Gem::Version
70
- version: 6.1.4.6
96
+ version: 6.1.5
71
97
  type: :runtime
72
98
  prerelease: false
73
99
  version_requirements: !ruby/object:Gem::Requirement
@@ -77,7 +103,7 @@ dependencies:
77
103
  version: '6.1'
78
104
  - - ">="
79
105
  - !ruby/object:Gem::Version
80
- version: 6.1.4.6
106
+ version: 6.1.5
81
107
  - !ruby/object:Gem::Dependency
82
108
  name: chronic
83
109
  requirement: !ruby/object:Gem::Requirement
@@ -124,20 +150,20 @@ dependencies:
124
150
  requirements:
125
151
  - - "~>"
126
152
  - !ruby/object:Gem::Version
127
- version: '0.8'
153
+ version: '0.10'
128
154
  - - ">="
129
155
  - !ruby/object:Gem::Version
130
- version: 0.8.1
156
+ version: 0.10.0
131
157
  type: :runtime
132
158
  prerelease: false
133
159
  version_requirements: !ruby/object:Gem::Requirement
134
160
  requirements:
135
161
  - - "~>"
136
162
  - !ruby/object:Gem::Version
137
- version: '0.8'
163
+ version: '0.10'
138
164
  - - ">="
139
165
  - !ruby/object:Gem::Version
140
- version: 0.8.1
166
+ version: 0.10.0
141
167
  - !ruby/object:Gem::Dependency
142
168
  name: json
143
169
  requirement: !ruby/object:Gem::Requirement
@@ -250,10 +276,11 @@ files:
250
276
  - ".DS_Store"
251
277
  - ".gitignore"
252
278
  - ".rubocop.yml"
279
+ - ".ruby-gemset"
280
+ - ".ruby-version"
253
281
  - ".travis.yml"
254
282
  - CODE_OF_CONDUCT.md
255
283
  - Gemfile
256
- - Gemfile.lock
257
284
  - LICENSE.txt
258
285
  - README.md
259
286
  - Rakefile
@@ -265,133 +292,9 @@ files:
265
292
  - lib/VERSION
266
293
  - lib/dependencies.rb
267
294
  - lib/gloo.rb
268
- - lib/gloo/app/args.rb
269
- - lib/gloo/app/engine.rb
270
- - lib/gloo/app/help.rb
271
295
  - lib/gloo/app/info.rb
272
296
  - lib/gloo/app/log.rb
273
- - lib/gloo/app/mode.rb
274
- - lib/gloo/app/settings.rb
275
- - lib/gloo/convert/converter.rb
276
- - lib/gloo/convert/string_to_datetime.rb
277
- - lib/gloo/convert/string_to_decimal.rb
278
- - lib/gloo/convert/string_to_integer.rb
279
- - lib/gloo/core/baseo.rb
280
- - lib/gloo/core/dictionary.rb
281
- - lib/gloo/core/error.rb
282
- - lib/gloo/core/event_manager.rb
283
- - lib/gloo/core/factory.rb
284
- - lib/gloo/core/gloo_system.rb
285
- - lib/gloo/core/heap.rb
286
- - lib/gloo/core/here.rb
287
- - lib/gloo/core/it.rb
288
- - lib/gloo/core/literal.rb
289
- - lib/gloo/core/obj.rb
290
- - lib/gloo/core/obj_finder.rb
291
- - lib/gloo/core/op.rb
292
- - lib/gloo/core/parser.rb
293
- - lib/gloo/core/pn.rb
294
- - lib/gloo/core/tokens.rb
295
- - lib/gloo/core/verb.rb
296
- - lib/gloo/exec/action.rb
297
- - lib/gloo/exec/dispatch.rb
298
- - lib/gloo/exec/exec_env.rb
299
- - lib/gloo/exec/runner.rb
300
- - lib/gloo/exec/script.rb
301
- - lib/gloo/exec/stack.rb
302
- - lib/gloo/expr/expression.rb
303
- - lib/gloo/expr/l_boolean.rb
304
- - lib/gloo/expr/l_decimal.rb
305
- - lib/gloo/expr/l_integer.rb
306
- - lib/gloo/expr/l_string.rb
307
- - lib/gloo/expr/op_div.rb
308
- - lib/gloo/expr/op_minus.rb
309
- - lib/gloo/expr/op_mult.rb
310
- - lib/gloo/expr/op_plus.rb
311
- - lib/gloo/help/app/application.txt
312
- - lib/gloo/help/app/configuration.txt
313
- - lib/gloo/help/app/default_help.txt
314
- - lib/gloo/help/app/logging.txt
315
- - lib/gloo/help/core/color.txt
316
- - lib/gloo/help/core/error.txt
317
- - lib/gloo/help/core/events.txt
318
- - lib/gloo/help/core/gloo_system.txt
319
- - lib/gloo/help/core/here.txt
320
- - lib/gloo/help/core/it.txt
321
- - lib/gloo/help/core/ops.txt
322
- - lib/gloo/help/core/pathname.txt
323
- - lib/gloo/help/objs/basic/alias.txt
324
- - lib/gloo/help/objs/basic/boolean.txt
325
- - lib/gloo/help/objs/basic/container.txt
326
- - lib/gloo/help/objs/basic/decimal.txt
327
- - lib/gloo/help/objs/basic/integer.txt
328
- - lib/gloo/help/objs/basic/script.txt
329
- - lib/gloo/help/objs/basic/string.txt
330
- - lib/gloo/help/objs/basic/text.txt
331
- - lib/gloo/help/objs/basic/untyped.txt
332
- - lib/gloo/help/objs/cli/banner.txt
333
- - lib/gloo/help/objs/cli/bar.txt
334
- - lib/gloo/help/objs/cli/colorize.txt
335
- - lib/gloo/help/objs/cli/confirm.txt
336
- - lib/gloo/help/objs/cli/menu.txt
337
- - lib/gloo/help/objs/cli/menu_item.txt
338
- - lib/gloo/help/objs/cli/pastel.txt
339
- - lib/gloo/help/objs/cli/prompt.txt
340
- - lib/gloo/help/objs/cli/select.txt
341
- - lib/gloo/help/objs/ctrl/each.txt
342
- - lib/gloo/help/objs/ctrl/repeat.txt
343
- - lib/gloo/help/objs/data/markdown.txt
344
- - lib/gloo/help/objs/data/mysql.txt
345
- - lib/gloo/help/objs/data/query.txt
346
- - lib/gloo/help/objs/data/sqlite.txt
347
- - lib/gloo/help/objs/data/table.txt
348
- - lib/gloo/help/objs/dev/git_repo.txt
349
- - lib/gloo/help/objs/dev/stats.txt
350
- - lib/gloo/help/objs/dt/date.txt
351
- - lib/gloo/help/objs/dt/datetime.txt
352
- - lib/gloo/help/objs/dt/time.txt
353
- - lib/gloo/help/objs/ror/erb.txt
354
- - lib/gloo/help/objs/ror/eval.txt
355
- - lib/gloo/help/objs/snd/play.txt
356
- - lib/gloo/help/objs/snd/say.txt
357
- - lib/gloo/help/objs/system/file.txt
358
- - lib/gloo/help/objs/system/ssh_exec.txt
359
- - lib/gloo/help/objs/system/system.txt
360
- - lib/gloo/help/objs/web/http_get.txt
361
- - lib/gloo/help/objs/web/http_post.txt
362
- - lib/gloo/help/objs/web/json.txt
363
- - lib/gloo/help/objs/web/slack.txt
364
- - lib/gloo/help/objs/web/teams.txt
365
- - lib/gloo/help/objs/web/uri.txt
366
- - lib/gloo/help/verbs/alert.txt
367
- - lib/gloo/help/verbs/beep.txt
368
- - lib/gloo/help/verbs/cls.txt
369
- - lib/gloo/help/verbs/context.txt
370
- - lib/gloo/help/verbs/create.txt
371
- - lib/gloo/help/verbs/execute.txt
372
- - lib/gloo/help/verbs/help.txt
373
- - lib/gloo/help/verbs/if.txt
374
- - lib/gloo/help/verbs/list.txt
375
- - lib/gloo/help/verbs/load.txt
376
- - lib/gloo/help/verbs/move.txt
377
- - lib/gloo/help/verbs/put.txt
378
- - lib/gloo/help/verbs/quit.txt
379
- - lib/gloo/help/verbs/run.txt
380
- - lib/gloo/help/verbs/save.txt
381
- - lib/gloo/help/verbs/show.txt
382
- - lib/gloo/help/verbs/tell.txt
383
- - lib/gloo/help/verbs/unless.txt
384
- - lib/gloo/help/verbs/version.txt
385
- - lib/gloo/help/verbs/wait.txt
386
- - lib/gloo/objs/basic/alias.rb
387
- - lib/gloo/objs/basic/boolean.rb
388
- - lib/gloo/objs/basic/container.rb
389
- - lib/gloo/objs/basic/decimal.rb
390
- - lib/gloo/objs/basic/integer.rb
391
- - lib/gloo/objs/basic/script.rb
392
- - lib/gloo/objs/basic/string.rb
393
- - lib/gloo/objs/basic/text.rb
394
- - lib/gloo/objs/basic/untyped.rb
297
+ - lib/gloo/app/platform.rb
395
298
  - lib/gloo/objs/cli/banner.rb
396
299
  - lib/gloo/objs/cli/bar.rb
397
300
  - lib/gloo/objs/cli/colorize.rb
@@ -401,59 +304,20 @@ files:
401
304
  - lib/gloo/objs/cli/pastel.rb
402
305
  - lib/gloo/objs/cli/prompt.rb
403
306
  - lib/gloo/objs/cli/select.rb
404
- - lib/gloo/objs/ctrl/each.rb
405
- - lib/gloo/objs/ctrl/repeat.rb
406
- - lib/gloo/objs/data/markdown.rb
407
307
  - lib/gloo/objs/data/mysql.rb
408
- - lib/gloo/objs/data/query.rb
409
308
  - lib/gloo/objs/data/sqlite.rb
410
- - lib/gloo/objs/data/table.rb
411
309
  - lib/gloo/objs/dev/git.rb
412
310
  - lib/gloo/objs/dev/stats.rb
413
- - lib/gloo/objs/dt/date.rb
414
- - lib/gloo/objs/dt/datetime.rb
415
- - lib/gloo/objs/dt/time.rb
416
- - lib/gloo/objs/ror/erb.rb
417
- - lib/gloo/objs/ror/eval.rb
418
311
  - lib/gloo/objs/snd/play.rb
419
312
  - lib/gloo/objs/snd/say.rb
420
313
  - lib/gloo/objs/system/file_handle.rb
421
314
  - lib/gloo/objs/system/ssh_exec.rb
422
315
  - lib/gloo/objs/system/system.rb
423
- - lib/gloo/objs/web/http_get.rb
424
- - lib/gloo/objs/web/http_post.rb
425
- - lib/gloo/objs/web/json.rb
426
- - lib/gloo/objs/web/slack.rb
427
- - lib/gloo/objs/web/teams.rb
428
- - lib/gloo/objs/web/uri.rb
429
- - lib/gloo/persist/file_loader.rb
430
- - lib/gloo/persist/file_saver.rb
431
- - lib/gloo/persist/file_storage.rb
432
- - lib/gloo/persist/line_splitter.rb
433
- - lib/gloo/persist/persist_man.rb
434
- - lib/gloo/utils/format.rb
435
- - lib/gloo/utils/stats.rb
436
- - lib/gloo/utils/words.rb
437
316
  - lib/gloo/verbs/alert.rb
438
317
  - lib/gloo/verbs/beep.rb
439
318
  - lib/gloo/verbs/cls.rb
440
- - lib/gloo/verbs/context.rb
441
- - lib/gloo/verbs/create.rb
442
- - lib/gloo/verbs/execute.rb
443
319
  - lib/gloo/verbs/help.rb
444
- - lib/gloo/verbs/if.rb
445
- - lib/gloo/verbs/list.rb
446
- - lib/gloo/verbs/load.rb
447
- - lib/gloo/verbs/move.rb
448
- - lib/gloo/verbs/put.rb
449
- - lib/gloo/verbs/quit.rb
450
- - lib/gloo/verbs/run.rb
451
- - lib/gloo/verbs/save.rb
452
- - lib/gloo/verbs/show.rb
453
- - lib/gloo/verbs/tell.rb
454
- - lib/gloo/verbs/unless.rb
455
320
  - lib/gloo/verbs/version.rb
456
- - lib/gloo/verbs/wait.rb
457
321
  - lib/run.rb
458
322
  homepage: http://github.com/ecrane/gloo
459
323
  licenses:
data/Gemfile.lock DELETED
@@ -1,171 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- gloo (0.7.7)
5
- activesupport (~> 6.1, >= 6.1.4.6)
6
- chronic (~> 0.10, >= 0.10.2)
7
- colorize (~> 0.8, >= 0.8.1)
8
- json (~> 2.1, >= 2.1.0)
9
- mysql2 (~> 0.5, >= 0.5.3)
10
- net-ssh (~> 6.1, >= 6.1.0)
11
- openssl (~> 2.1, >= 2.1.0)
12
- sqlite3 (~> 1.4, >= 1.4.2)
13
- tty (~> 0.8, >= 0.8.1)
14
-
15
- GEM
16
- remote: https://rubygems.org/
17
- specs:
18
- activesupport (6.1.4.6)
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
20
- i18n (>= 1.6, < 2)
21
- minitest (>= 5.1)
22
- tzinfo (~> 2.0)
23
- zeitwerk (~> 2.3)
24
- ast (2.4.1)
25
- chronic (0.10.2)
26
- colorize (0.8.1)
27
- concurrent-ruby (1.1.9)
28
- diff-lcs (1.5.0)
29
- equatable (0.7.0)
30
- i18n (1.10.0)
31
- concurrent-ruby (~> 1.0)
32
- ipaddr (1.2.4)
33
- json (2.6.1)
34
- kramdown (1.16.2)
35
- minitest (5.14.2)
36
- mysql2 (0.5.3)
37
- necromancer (0.5.1)
38
- net-ssh (6.1.0)
39
- openssl (2.2.1)
40
- ipaddr
41
- parallel (1.19.2)
42
- parser (2.7.2.0)
43
- ast (~> 2.4.1)
44
- pastel (0.7.4)
45
- equatable (~> 0.6)
46
- tty-color (~> 0.5)
47
- rainbow (3.0.0)
48
- rake (13.0.1)
49
- regexp_parser (1.8.2)
50
- rexml (3.2.4)
51
- rouge (3.28.0)
52
- rubocop (1.2.0)
53
- parallel (~> 1.10)
54
- parser (>= 2.7.1.5)
55
- rainbow (>= 2.2.2, < 4.0)
56
- regexp_parser (>= 1.8)
57
- rexml
58
- rubocop-ast (>= 1.0.1)
59
- ruby-progressbar (~> 1.7)
60
- unicode-display_width (>= 1.4.0, < 2.0)
61
- rubocop-ast (1.1.1)
62
- parser (>= 2.7.1.5)
63
- ruby-progressbar (1.10.1)
64
- sqlite3 (1.4.2)
65
- strings (0.1.8)
66
- strings-ansi (~> 0.1)
67
- unicode-display_width (~> 1.5)
68
- unicode_utils (~> 1.4)
69
- strings-ansi (0.2.0)
70
- thor (0.20.3)
71
- tty (0.10.0)
72
- bundler (~> 1.16, < 2.0)
73
- equatable (~> 0.5)
74
- pastel (~> 0.7.2)
75
- thor (~> 0.20.0)
76
- tty-box (~> 0.4.1)
77
- tty-color (~> 0.5)
78
- tty-command (~> 0.9.0)
79
- tty-config (~> 0.3.2)
80
- tty-cursor (~> 0.7)
81
- tty-editor (~> 0.5)
82
- tty-file (~> 0.8.0)
83
- tty-font (~> 0.4.0)
84
- tty-logger (~> 0.2.0)
85
- tty-markdown (~> 0.6.0)
86
- tty-pager (~> 0.12)
87
- tty-pie (~> 0.3.0)
88
- tty-platform (~> 0.2)
89
- tty-progressbar (~> 0.17)
90
- tty-prompt (~> 0.19)
91
- tty-screen (~> 0.7)
92
- tty-spinner (~> 0.9)
93
- tty-table (~> 0.11.0)
94
- tty-tree (~> 0.3)
95
- tty-which (~> 0.4)
96
- tty-box (0.4.1)
97
- pastel (~> 0.7.2)
98
- strings (~> 0.1.6)
99
- tty-cursor (~> 0.7)
100
- tty-color (0.6.0)
101
- tty-command (0.9.0)
102
- pastel (~> 0.7.0)
103
- tty-config (0.3.2)
104
- tty-cursor (0.7.1)
105
- tty-editor (0.5.1)
106
- tty-prompt (~> 0.19)
107
- tty-which (~> 0.4)
108
- tty-file (0.8.0)
109
- diff-lcs (~> 1.3)
110
- pastel (~> 0.7.2)
111
- tty-prompt (~> 0.18)
112
- tty-font (0.4.0)
113
- tty-logger (0.2.0)
114
- pastel (~> 0.7.0)
115
- tty-markdown (0.6.0)
116
- kramdown (~> 1.16.2)
117
- pastel (~> 0.7.2)
118
- rouge (~> 3.3)
119
- strings (~> 0.1.4)
120
- tty-color (~> 0.4)
121
- tty-screen (~> 0.6)
122
- tty-pager (0.13.0)
123
- strings (~> 0.1.8)
124
- tty-screen (~> 0.8)
125
- tty-pie (0.3.0)
126
- pastel (~> 0.7.3)
127
- tty-cursor (~> 0.7)
128
- tty-platform (0.3.0)
129
- tty-progressbar (0.18.2)
130
- strings-ansi (~> 0.2)
131
- tty-cursor (~> 0.7)
132
- tty-screen (~> 0.8)
133
- unicode-display_width (>= 1.6, < 3.0)
134
- tty-prompt (0.21.0)
135
- necromancer (~> 0.5.0)
136
- pastel (~> 0.7.0)
137
- tty-reader (~> 0.7.0)
138
- tty-reader (0.7.0)
139
- tty-cursor (~> 0.7)
140
- tty-screen (~> 0.7)
141
- wisper (~> 2.0.0)
142
- tty-screen (0.8.1)
143
- tty-spinner (0.9.3)
144
- tty-cursor (~> 0.7)
145
- tty-table (0.11.0)
146
- equatable (~> 0.6)
147
- necromancer (~> 0.5)
148
- pastel (~> 0.7.2)
149
- strings (~> 0.1.5)
150
- tty-screen (~> 0.7)
151
- tty-tree (0.4.0)
152
- tty-which (0.5.0)
153
- tzinfo (2.0.4)
154
- concurrent-ruby (~> 1.0)
155
- unicode-display_width (1.7.0)
156
- unicode_utils (1.4.0)
157
- wisper (2.0.1)
158
- zeitwerk (2.5.4)
159
-
160
- PLATFORMS
161
- ruby
162
-
163
- DEPENDENCIES
164
- bundler (~> 1.16)
165
- gloo!
166
- minitest (~> 5.0)
167
- rake (~> 13.0, >= 13.0.1)
168
- rubocop
169
-
170
- BUNDLED WITH
171
- 1.17.3
data/lib/gloo/app/args.rb DELETED
@@ -1,112 +0,0 @@
1
- # Author:: Eric Crane (mailto:eric.crane@mac.com)
2
- # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved.
3
- #
4
- # Arguments (parameters) used to specify functionality.
5
- # These might have come from the CLI or as parameters
6
- # in the constructor.
7
- #
8
- require 'active_support'
9
- require 'colorize'
10
-
11
- module Gloo
12
- module App
13
- class Args
14
-
15
- QUIET = 'quiet'.freeze
16
- GLOO_ENV = 'GLOO_ENV'.freeze
17
-
18
- attr_reader :switches, :files
19
-
20
- #
21
- # Create arguments and setup.
22
- #
23
- def initialize( params = [] )
24
- @switches = []
25
- @files = []
26
-
27
- params.each { |o| process_one_arg( o ) }
28
- ARGV.each { |o| process_one_arg( o ) }
29
- end
30
-
31
- #
32
- # Was the --quiet arg passed?
33
- #
34
- def quiet?
35
- return @switches.include?( QUIET )
36
- end
37
-
38
- #
39
- # Is the version switch set?
40
- #
41
- def version?
42
- @switches.include?( Gloo::App::Mode::VERSION.to_s )
43
- end
44
-
45
- #
46
- # Is the help switch set?
47
- #
48
- def help?
49
- @switches.include?( Gloo::App::Mode::HELP.to_s )
50
- end
51
-
52
- #
53
- # Is the cli switch set?
54
- #
55
- def cli?
56
- @switches.include?( Gloo::App::Mode::CLI.to_s )
57
- end
58
-
59
- #
60
- # Is the embed switch set?
61
- #
62
- def embed?
63
- @switches.include?( Gloo::App::Mode::EMBED.to_s )
64
- end
65
-
66
- #
67
- # Detect the mode to be run in.
68
- # Start by seeing if a mode is specified.
69
- # Then look for the presence of files.
70
- # Then finally use the default: embedded mode.
71
- #
72
- def detect_mode
73
- mode = if ENV[ GLOO_ENV ] == Gloo::App::Mode::TEST.to_s
74
- Mode::TEST
75
- elsif version?
76
- Mode::VERSION
77
- elsif help?
78
- Mode::HELP
79
- elsif cli?
80
- Mode::CLI
81
- elsif embed?
82
- Mode::EMBED
83
- elsif @files.count.positive?
84
- Mode::SCRIPT
85
- else
86
- Mode.default_mode
87
- end
88
- $log.debug "running in #{mode} mode"
89
-
90
- return mode
91
- end
92
-
93
- # ---------------------------------------------------------------------
94
- # Private
95
- # ---------------------------------------------------------------------
96
-
97
- private
98
-
99
- #
100
- # Process one argument or parameter.
101
- #
102
- def process_one_arg( arg )
103
- if arg.start_with? '--'
104
- switches << arg[ 2..-1 ]
105
- else
106
- files << arg
107
- end
108
- end
109
-
110
- end
111
- end
112
- end