gloo 0.7.7 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/.gitignore +2 -1
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/LICENSE.txt +1 -1
- data/gloo.gemspec +15 -6
- data/lib/VERSION +1 -1
- data/lib/dependencies.rb +4 -4
- data/lib/gloo/app/info.rb +3 -1
- data/lib/gloo/app/log.rb +1 -29
- data/lib/gloo/app/platform.rb +142 -0
- data/lib/gloo/objs/cli/banner.rb +2 -2
- data/lib/gloo/objs/cli/bar.rb +4 -4
- data/lib/gloo/objs/cli/colorize.rb +3 -3
- data/lib/gloo/objs/cli/confirm.rb +3 -3
- data/lib/gloo/objs/cli/menu.rb +9 -9
- data/lib/gloo/objs/cli/menu_item.rb +2 -2
- data/lib/gloo/objs/cli/pastel.rb +2 -2
- data/lib/gloo/objs/cli/prompt.rb +4 -4
- data/lib/gloo/objs/cli/select.rb +4 -4
- data/lib/gloo/objs/dev/git.rb +7 -7
- data/lib/gloo/objs/dev/stats.rb +8 -5
- data/lib/gloo/objs/snd/play.rb +1 -1
- data/lib/gloo/objs/snd/say.rb +2 -2
- data/lib/gloo/objs/system/file_handle.rb +9 -9
- data/lib/gloo/objs/system/ssh_exec.rb +3 -3
- data/lib/gloo/objs/system/system.rb +2 -2
- data/lib/gloo/verbs/alert.rb +7 -7
- data/lib/gloo/verbs/beep.rb +1 -1
- data/lib/gloo/verbs/cls.rb +2 -2
- data/lib/gloo/verbs/help.rb +7 -189
- data/lib/gloo/verbs/version.rb +3 -3
- data/lib/gloo.rb +5 -1
- data/lib/run.rb +5 -1
- metadata +43 -221
- data/Gemfile.lock +0 -168
- data/lib/gloo/app/args.rb +0 -112
- data/lib/gloo/app/engine.rb +0 -230
- data/lib/gloo/app/help.rb +0 -156
- data/lib/gloo/app/mode.rb +0 -27
- data/lib/gloo/app/settings.rb +0 -186
- data/lib/gloo/convert/converter.rb +0 -35
- data/lib/gloo/convert/string_to_datetime.rb +0 -21
- data/lib/gloo/convert/string_to_decimal.rb +0 -20
- data/lib/gloo/convert/string_to_integer.rb +0 -20
- data/lib/gloo/core/baseo.rb +0 -30
- data/lib/gloo/core/dictionary.rb +0 -181
- data/lib/gloo/core/error.rb +0 -61
- data/lib/gloo/core/event_manager.rb +0 -44
- data/lib/gloo/core/factory.rb +0 -210
- data/lib/gloo/core/gloo_system.rb +0 -266
- data/lib/gloo/core/heap.rb +0 -52
- data/lib/gloo/core/here.rb +0 -36
- data/lib/gloo/core/it.rb +0 -36
- data/lib/gloo/core/literal.rb +0 -30
- data/lib/gloo/core/obj.rb +0 -303
- data/lib/gloo/core/obj_finder.rb +0 -30
- data/lib/gloo/core/op.rb +0 -40
- data/lib/gloo/core/parser.rb +0 -59
- data/lib/gloo/core/pn.rb +0 -188
- data/lib/gloo/core/tokens.rb +0 -165
- data/lib/gloo/core/verb.rb +0 -86
- data/lib/gloo/exec/action.rb +0 -48
- data/lib/gloo/exec/dispatch.rb +0 -40
- data/lib/gloo/exec/exec_env.rb +0 -74
- data/lib/gloo/exec/runner.rb +0 -45
- data/lib/gloo/exec/script.rb +0 -49
- data/lib/gloo/exec/stack.rb +0 -78
- data/lib/gloo/expr/expression.rb +0 -118
- data/lib/gloo/expr/l_boolean.rb +0 -36
- data/lib/gloo/expr/l_decimal.rb +0 -39
- data/lib/gloo/expr/l_integer.rb +0 -37
- data/lib/gloo/expr/l_string.rb +0 -58
- data/lib/gloo/expr/op_div.rb +0 -22
- data/lib/gloo/expr/op_minus.rb +0 -22
- data/lib/gloo/expr/op_mult.rb +0 -22
- data/lib/gloo/expr/op_plus.rb +0 -24
- data/lib/gloo/help/app/application.txt +0 -22
- data/lib/gloo/help/app/configuration.txt +0 -7
- data/lib/gloo/help/app/default_help.txt +0 -14
- data/lib/gloo/help/app/logging.txt +0 -16
- data/lib/gloo/help/core/color.txt +0 -31
- data/lib/gloo/help/core/error.txt +0 -33
- data/lib/gloo/help/core/events.txt +0 -21
- data/lib/gloo/help/core/gloo_system.txt +0 -57
- data/lib/gloo/help/core/here.txt +0 -30
- data/lib/gloo/help/core/it.txt +0 -23
- data/lib/gloo/help/core/ops.txt +0 -16
- data/lib/gloo/help/core/pathname.txt +0 -29
- data/lib/gloo/help/objs/basic/alias.txt +0 -36
- data/lib/gloo/help/objs/basic/boolean.txt +0 -28
- data/lib/gloo/help/objs/basic/container.txt +0 -33
- data/lib/gloo/help/objs/basic/decimal.txt +0 -28
- data/lib/gloo/help/objs/basic/integer.txt +0 -27
- data/lib/gloo/help/objs/basic/script.txt +0 -29
- data/lib/gloo/help/objs/basic/string.txt +0 -28
- data/lib/gloo/help/objs/basic/text.txt +0 -27
- data/lib/gloo/help/objs/basic/untyped.txt +0 -22
- data/lib/gloo/help/objs/cli/banner.txt +0 -49
- data/lib/gloo/help/objs/cli/bar.txt +0 -37
- data/lib/gloo/help/objs/cli/colorize.txt +0 -33
- data/lib/gloo/help/objs/cli/confirm.txt +0 -26
- data/lib/gloo/help/objs/cli/menu.txt +0 -44
- data/lib/gloo/help/objs/cli/menu_item.txt +0 -26
- data/lib/gloo/help/objs/cli/pastel.txt +0 -43
- data/lib/gloo/help/objs/cli/prompt.txt +0 -27
- data/lib/gloo/help/objs/cli/select.txt +0 -34
- data/lib/gloo/help/objs/ctrl/each.txt +0 -48
- data/lib/gloo/help/objs/ctrl/repeat.txt +0 -38
- data/lib/gloo/help/objs/data/markdown.txt +0 -25
- data/lib/gloo/help/objs/data/mysql.txt +0 -40
- data/lib/gloo/help/objs/data/query.txt +0 -37
- data/lib/gloo/help/objs/data/sqlite.txt +0 -26
- data/lib/gloo/help/objs/data/table.txt +0 -46
- data/lib/gloo/help/objs/dev/git_repo.txt +0 -36
- data/lib/gloo/help/objs/dev/stats.txt +0 -36
- data/lib/gloo/help/objs/dt/date.txt +0 -23
- data/lib/gloo/help/objs/dt/datetime.txt +0 -24
- data/lib/gloo/help/objs/dt/time.txt +0 -23
- data/lib/gloo/help/objs/ror/erb.txt +0 -37
- data/lib/gloo/help/objs/ror/eval.txt +0 -24
- data/lib/gloo/help/objs/snd/play.txt +0 -23
- data/lib/gloo/help/objs/snd/say.txt +0 -28
- data/lib/gloo/help/objs/system/file.txt +0 -48
- data/lib/gloo/help/objs/system/ssh_exec.txt +0 -30
- data/lib/gloo/help/objs/system/system.txt +0 -32
- data/lib/gloo/help/objs/web/http_get.txt +0 -35
- data/lib/gloo/help/objs/web/http_post.txt +0 -34
- data/lib/gloo/help/objs/web/json.txt +0 -34
- data/lib/gloo/help/objs/web/slack.txt +0 -33
- data/lib/gloo/help/objs/web/teams.txt +0 -30
- data/lib/gloo/help/objs/web/uri.txt +0 -38
- data/lib/gloo/help/verbs/alert.txt +0 -33
- data/lib/gloo/help/verbs/beep.txt +0 -25
- data/lib/gloo/help/verbs/cls.txt +0 -24
- data/lib/gloo/help/verbs/context.txt +0 -43
- data/lib/gloo/help/verbs/create.txt +0 -33
- data/lib/gloo/help/verbs/execute.txt +0 -27
- data/lib/gloo/help/verbs/help.txt +0 -34
- data/lib/gloo/help/verbs/if.txt +0 -37
- data/lib/gloo/help/verbs/list.txt +0 -34
- data/lib/gloo/help/verbs/load.txt +0 -38
- data/lib/gloo/help/verbs/move.txt +0 -42
- data/lib/gloo/help/verbs/put.txt +0 -38
- data/lib/gloo/help/verbs/quit.txt +0 -25
- data/lib/gloo/help/verbs/run.txt +0 -41
- data/lib/gloo/help/verbs/save.txt +0 -26
- data/lib/gloo/help/verbs/show.txt +0 -30
- data/lib/gloo/help/verbs/tell.txt +0 -34
- data/lib/gloo/help/verbs/unless.txt +0 -38
- data/lib/gloo/help/verbs/version.txt +0 -32
- data/lib/gloo/help/verbs/wait.txt +0 -29
- data/lib/gloo/objs/basic/alias.rb +0 -78
- data/lib/gloo/objs/basic/boolean.rb +0 -120
- data/lib/gloo/objs/basic/container.rb +0 -76
- data/lib/gloo/objs/basic/decimal.rb +0 -76
- data/lib/gloo/objs/basic/integer.rb +0 -73
- data/lib/gloo/objs/basic/script.rb +0 -99
- data/lib/gloo/objs/basic/string.rb +0 -77
- data/lib/gloo/objs/basic/text.rb +0 -87
- data/lib/gloo/objs/basic/untyped.rb +0 -41
- data/lib/gloo/objs/ctrl/each.rb +0 -279
- data/lib/gloo/objs/ctrl/repeat.rb +0 -108
- data/lib/gloo/objs/data/markdown.rb +0 -84
- data/lib/gloo/objs/data/mysql.rb +0 -192
- data/lib/gloo/objs/data/query.rb +0 -176
- data/lib/gloo/objs/data/sqlite.rb +0 -159
- data/lib/gloo/objs/data/table.rb +0 -140
- data/lib/gloo/objs/dt/date.rb +0 -50
- data/lib/gloo/objs/dt/datetime.rb +0 -62
- data/lib/gloo/objs/dt/time.rb +0 -50
- data/lib/gloo/objs/ror/erb.rb +0 -116
- data/lib/gloo/objs/ror/eval.rb +0 -107
- data/lib/gloo/objs/web/http_get.rb +0 -159
- data/lib/gloo/objs/web/http_post.rb +0 -183
- data/lib/gloo/objs/web/json.rb +0 -135
- data/lib/gloo/objs/web/slack.rb +0 -130
- data/lib/gloo/objs/web/teams.rb +0 -117
- data/lib/gloo/objs/web/uri.rb +0 -148
- data/lib/gloo/persist/file_loader.rb +0 -191
- data/lib/gloo/persist/file_saver.rb +0 -49
- data/lib/gloo/persist/file_storage.rb +0 -45
- data/lib/gloo/persist/line_splitter.rb +0 -81
- data/lib/gloo/persist/persist_man.rb +0 -120
- data/lib/gloo/utils/format.rb +0 -21
- data/lib/gloo/utils/stats.rb +0 -205
- data/lib/gloo/utils/words.rb +0 -19
- data/lib/gloo/verbs/context.rb +0 -62
- data/lib/gloo/verbs/create.rb +0 -68
- data/lib/gloo/verbs/execute.rb +0 -56
- data/lib/gloo/verbs/if.rb +0 -92
- data/lib/gloo/verbs/list.rb +0 -98
- data/lib/gloo/verbs/load.rb +0 -45
- data/lib/gloo/verbs/move.rb +0 -89
- data/lib/gloo/verbs/put.rb +0 -94
- data/lib/gloo/verbs/quit.rb +0 -40
- data/lib/gloo/verbs/run.rb +0 -75
- data/lib/gloo/verbs/save.rb +0 -39
- data/lib/gloo/verbs/show.rb +0 -64
- data/lib/gloo/verbs/tell.rb +0 -79
- data/lib/gloo/verbs/unless.rb +0 -92
- 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:
|
4
|
+
version: 1.1.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-
|
11
|
+
date: 2022-07-05 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:
|
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:
|
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.
|
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.
|
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,26 +64,46 @@ 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
|
64
90
|
requirements:
|
65
91
|
- - "~>"
|
66
92
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
93
|
+
version: '6.1'
|
68
94
|
- - ">="
|
69
95
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
96
|
+
version: 6.1.5
|
71
97
|
type: :runtime
|
72
98
|
prerelease: false
|
73
99
|
version_requirements: !ruby/object:Gem::Requirement
|
74
100
|
requirements:
|
75
101
|
- - "~>"
|
76
102
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
103
|
+
version: '6.1'
|
78
104
|
- - ">="
|
79
105
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
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.
|
153
|
+
version: '0.10'
|
128
154
|
- - ">="
|
129
155
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.
|
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.
|
163
|
+
version: '0.10'
|
138
164
|
- - ">="
|
139
165
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
166
|
+
version: 0.10.0
|
141
167
|
- !ruby/object:Gem::Dependency
|
142
168
|
name: json
|
143
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,46 +224,6 @@ dependencies:
|
|
198
224
|
- - ">="
|
199
225
|
- !ruby/object:Gem::Version
|
200
226
|
version: 6.1.0
|
201
|
-
- !ruby/object:Gem::Dependency
|
202
|
-
name: mysql2
|
203
|
-
requirement: !ruby/object:Gem::Requirement
|
204
|
-
requirements:
|
205
|
-
- - "~>"
|
206
|
-
- !ruby/object:Gem::Version
|
207
|
-
version: '0.5'
|
208
|
-
- - ">="
|
209
|
-
- !ruby/object:Gem::Version
|
210
|
-
version: 0.5.3
|
211
|
-
type: :runtime
|
212
|
-
prerelease: false
|
213
|
-
version_requirements: !ruby/object:Gem::Requirement
|
214
|
-
requirements:
|
215
|
-
- - "~>"
|
216
|
-
- !ruby/object:Gem::Version
|
217
|
-
version: '0.5'
|
218
|
-
- - ">="
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
version: 0.5.3
|
221
|
-
- !ruby/object:Gem::Dependency
|
222
|
-
name: sqlite3
|
223
|
-
requirement: !ruby/object:Gem::Requirement
|
224
|
-
requirements:
|
225
|
-
- - "~>"
|
226
|
-
- !ruby/object:Gem::Version
|
227
|
-
version: '1.4'
|
228
|
-
- - ">="
|
229
|
-
- !ruby/object:Gem::Version
|
230
|
-
version: 1.4.2
|
231
|
-
type: :runtime
|
232
|
-
prerelease: false
|
233
|
-
version_requirements: !ruby/object:Gem::Requirement
|
234
|
-
requirements:
|
235
|
-
- - "~>"
|
236
|
-
- !ruby/object:Gem::Version
|
237
|
-
version: '1.4'
|
238
|
-
- - ">="
|
239
|
-
- !ruby/object:Gem::Version
|
240
|
-
version: 1.4.2
|
241
227
|
description: A scripting languge to keep it all together.
|
242
228
|
email:
|
243
229
|
- eric.crane@mac.com
|
@@ -250,10 +236,11 @@ files:
|
|
250
236
|
- ".DS_Store"
|
251
237
|
- ".gitignore"
|
252
238
|
- ".rubocop.yml"
|
239
|
+
- ".ruby-gemset"
|
240
|
+
- ".ruby-version"
|
253
241
|
- ".travis.yml"
|
254
242
|
- CODE_OF_CONDUCT.md
|
255
243
|
- Gemfile
|
256
|
-
- Gemfile.lock
|
257
244
|
- LICENSE.txt
|
258
245
|
- README.md
|
259
246
|
- Rakefile
|
@@ -265,133 +252,9 @@ files:
|
|
265
252
|
- lib/VERSION
|
266
253
|
- lib/dependencies.rb
|
267
254
|
- lib/gloo.rb
|
268
|
-
- lib/gloo/app/args.rb
|
269
|
-
- lib/gloo/app/engine.rb
|
270
|
-
- lib/gloo/app/help.rb
|
271
255
|
- lib/gloo/app/info.rb
|
272
256
|
- lib/gloo/app/log.rb
|
273
|
-
- lib/gloo/app/
|
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
|
257
|
+
- lib/gloo/app/platform.rb
|
395
258
|
- lib/gloo/objs/cli/banner.rb
|
396
259
|
- lib/gloo/objs/cli/bar.rb
|
397
260
|
- lib/gloo/objs/cli/colorize.rb
|
@@ -401,59 +264,18 @@ files:
|
|
401
264
|
- lib/gloo/objs/cli/pastel.rb
|
402
265
|
- lib/gloo/objs/cli/prompt.rb
|
403
266
|
- 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
|
-
- lib/gloo/objs/data/mysql.rb
|
408
|
-
- lib/gloo/objs/data/query.rb
|
409
|
-
- lib/gloo/objs/data/sqlite.rb
|
410
|
-
- lib/gloo/objs/data/table.rb
|
411
267
|
- lib/gloo/objs/dev/git.rb
|
412
268
|
- 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
269
|
- lib/gloo/objs/snd/play.rb
|
419
270
|
- lib/gloo/objs/snd/say.rb
|
420
271
|
- lib/gloo/objs/system/file_handle.rb
|
421
272
|
- lib/gloo/objs/system/ssh_exec.rb
|
422
273
|
- 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
274
|
- lib/gloo/verbs/alert.rb
|
438
275
|
- lib/gloo/verbs/beep.rb
|
439
276
|
- lib/gloo/verbs/cls.rb
|
440
|
-
- lib/gloo/verbs/context.rb
|
441
|
-
- lib/gloo/verbs/create.rb
|
442
|
-
- lib/gloo/verbs/execute.rb
|
443
277
|
- 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
278
|
- lib/gloo/verbs/version.rb
|
456
|
-
- lib/gloo/verbs/wait.rb
|
457
279
|
- lib/run.rb
|
458
280
|
homepage: http://github.com/ecrane/gloo
|
459
281
|
licenses:
|
data/Gemfile.lock
DELETED
@@ -1,168 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
gloo (0.7.7)
|
5
|
-
activesupport (~> 5.2, >= 5.2.4.3)
|
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 (5.2.6)
|
19
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
|
-
i18n (>= 0.7, < 2)
|
21
|
-
minitest (~> 5.1)
|
22
|
-
tzinfo (~> 1.1)
|
23
|
-
ast (2.4.1)
|
24
|
-
chronic (0.10.2)
|
25
|
-
colorize (0.8.1)
|
26
|
-
concurrent-ruby (1.1.9)
|
27
|
-
diff-lcs (1.4.4)
|
28
|
-
equatable (0.7.0)
|
29
|
-
i18n (1.8.11)
|
30
|
-
concurrent-ruby (~> 1.0)
|
31
|
-
json (2.5.1)
|
32
|
-
kramdown (1.16.2)
|
33
|
-
minitest (5.14.2)
|
34
|
-
mysql2 (0.5.3)
|
35
|
-
necromancer (0.5.1)
|
36
|
-
net-ssh (6.1.0)
|
37
|
-
openssl (2.2.0)
|
38
|
-
parallel (1.19.2)
|
39
|
-
parser (2.7.2.0)
|
40
|
-
ast (~> 2.4.1)
|
41
|
-
pastel (0.7.4)
|
42
|
-
equatable (~> 0.6)
|
43
|
-
tty-color (~> 0.5)
|
44
|
-
rainbow (3.0.0)
|
45
|
-
rake (13.0.1)
|
46
|
-
regexp_parser (1.8.2)
|
47
|
-
rexml (3.2.4)
|
48
|
-
rouge (3.26.1)
|
49
|
-
rubocop (1.2.0)
|
50
|
-
parallel (~> 1.10)
|
51
|
-
parser (>= 2.7.1.5)
|
52
|
-
rainbow (>= 2.2.2, < 4.0)
|
53
|
-
regexp_parser (>= 1.8)
|
54
|
-
rexml
|
55
|
-
rubocop-ast (>= 1.0.1)
|
56
|
-
ruby-progressbar (~> 1.7)
|
57
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
58
|
-
rubocop-ast (1.1.1)
|
59
|
-
parser (>= 2.7.1.5)
|
60
|
-
ruby-progressbar (1.10.1)
|
61
|
-
sqlite3 (1.4.2)
|
62
|
-
strings (0.1.8)
|
63
|
-
strings-ansi (~> 0.1)
|
64
|
-
unicode-display_width (~> 1.5)
|
65
|
-
unicode_utils (~> 1.4)
|
66
|
-
strings-ansi (0.2.0)
|
67
|
-
thor (0.20.3)
|
68
|
-
thread_safe (0.3.6)
|
69
|
-
tty (0.10.0)
|
70
|
-
bundler (~> 1.16, < 2.0)
|
71
|
-
equatable (~> 0.5)
|
72
|
-
pastel (~> 0.7.2)
|
73
|
-
thor (~> 0.20.0)
|
74
|
-
tty-box (~> 0.4.1)
|
75
|
-
tty-color (~> 0.5)
|
76
|
-
tty-command (~> 0.9.0)
|
77
|
-
tty-config (~> 0.3.2)
|
78
|
-
tty-cursor (~> 0.7)
|
79
|
-
tty-editor (~> 0.5)
|
80
|
-
tty-file (~> 0.8.0)
|
81
|
-
tty-font (~> 0.4.0)
|
82
|
-
tty-logger (~> 0.2.0)
|
83
|
-
tty-markdown (~> 0.6.0)
|
84
|
-
tty-pager (~> 0.12)
|
85
|
-
tty-pie (~> 0.3.0)
|
86
|
-
tty-platform (~> 0.2)
|
87
|
-
tty-progressbar (~> 0.17)
|
88
|
-
tty-prompt (~> 0.19)
|
89
|
-
tty-screen (~> 0.7)
|
90
|
-
tty-spinner (~> 0.9)
|
91
|
-
tty-table (~> 0.11.0)
|
92
|
-
tty-tree (~> 0.3)
|
93
|
-
tty-which (~> 0.4)
|
94
|
-
tty-box (0.4.1)
|
95
|
-
pastel (~> 0.7.2)
|
96
|
-
strings (~> 0.1.6)
|
97
|
-
tty-cursor (~> 0.7)
|
98
|
-
tty-color (0.6.0)
|
99
|
-
tty-command (0.9.0)
|
100
|
-
pastel (~> 0.7.0)
|
101
|
-
tty-config (0.3.2)
|
102
|
-
tty-cursor (0.7.1)
|
103
|
-
tty-editor (0.5.1)
|
104
|
-
tty-prompt (~> 0.19)
|
105
|
-
tty-which (~> 0.4)
|
106
|
-
tty-file (0.8.0)
|
107
|
-
diff-lcs (~> 1.3)
|
108
|
-
pastel (~> 0.7.2)
|
109
|
-
tty-prompt (~> 0.18)
|
110
|
-
tty-font (0.4.0)
|
111
|
-
tty-logger (0.2.0)
|
112
|
-
pastel (~> 0.7.0)
|
113
|
-
tty-markdown (0.6.0)
|
114
|
-
kramdown (~> 1.16.2)
|
115
|
-
pastel (~> 0.7.2)
|
116
|
-
rouge (~> 3.3)
|
117
|
-
strings (~> 0.1.4)
|
118
|
-
tty-color (~> 0.4)
|
119
|
-
tty-screen (~> 0.6)
|
120
|
-
tty-pager (0.13.0)
|
121
|
-
strings (~> 0.1.8)
|
122
|
-
tty-screen (~> 0.8)
|
123
|
-
tty-pie (0.3.0)
|
124
|
-
pastel (~> 0.7.3)
|
125
|
-
tty-cursor (~> 0.7)
|
126
|
-
tty-platform (0.3.0)
|
127
|
-
tty-progressbar (0.18.2)
|
128
|
-
strings-ansi (~> 0.2)
|
129
|
-
tty-cursor (~> 0.7)
|
130
|
-
tty-screen (~> 0.8)
|
131
|
-
unicode-display_width (>= 1.6, < 3.0)
|
132
|
-
tty-prompt (0.21.0)
|
133
|
-
necromancer (~> 0.5.0)
|
134
|
-
pastel (~> 0.7.0)
|
135
|
-
tty-reader (~> 0.7.0)
|
136
|
-
tty-reader (0.7.0)
|
137
|
-
tty-cursor (~> 0.7)
|
138
|
-
tty-screen (~> 0.7)
|
139
|
-
wisper (~> 2.0.0)
|
140
|
-
tty-screen (0.8.1)
|
141
|
-
tty-spinner (0.9.3)
|
142
|
-
tty-cursor (~> 0.7)
|
143
|
-
tty-table (0.11.0)
|
144
|
-
equatable (~> 0.6)
|
145
|
-
necromancer (~> 0.5)
|
146
|
-
pastel (~> 0.7.2)
|
147
|
-
strings (~> 0.1.5)
|
148
|
-
tty-screen (~> 0.7)
|
149
|
-
tty-tree (0.4.0)
|
150
|
-
tty-which (0.5.0)
|
151
|
-
tzinfo (1.2.9)
|
152
|
-
thread_safe (~> 0.1)
|
153
|
-
unicode-display_width (1.7.0)
|
154
|
-
unicode_utils (1.4.0)
|
155
|
-
wisper (2.0.1)
|
156
|
-
|
157
|
-
PLATFORMS
|
158
|
-
ruby
|
159
|
-
|
160
|
-
DEPENDENCIES
|
161
|
-
bundler (~> 1.16)
|
162
|
-
gloo!
|
163
|
-
minitest (~> 5.0)
|
164
|
-
rake (~> 13.0, >= 13.0.1)
|
165
|
-
rubocop
|
166
|
-
|
167
|
-
BUNDLED WITH
|
168
|
-
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
|