gloo-lang 1.2.6 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/gloo_lang/app/platform.rb +7 -0
- data/lib/gloo_lang/verbs/files.rb +46 -0
- data/lib/gloo_lang/verbs/show.rb +1 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d33016ebde6c75ae5a1b61c5d7c19553316e06643ce4ae346579de9fd96aca3
|
4
|
+
data.tar.gz: 7c0072b8637544a11232afc1ceddc69efd429148cf3d7744836d7ec927b77d93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c5d4bfc948ead60ebe6fd8d8a5d7953f9d4375bc4865e5dcdfe85ac7dafdff60f29fc25fcf95c28ef7f1312f0c3a3925d04a90c938d2400d6c2c8fe295641da
|
7
|
+
data.tar.gz: 18da6493baa3ac5aea6d9ece3c5fe4dd49bbb12ab109e8a83e381b9964603fcc8c9e150d9320ad3ba6991deb4877bf4649c87dabb533b20c617d6e0acdeb1e84
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.8
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Author:: Eric Crane (mailto:eric.crane@mac.com)
|
2
|
+
# Copyright:: Copyright (c) 2022 Eric Crane. All rights reserved.
|
3
|
+
#
|
4
|
+
# Show all the currently loaded files.
|
5
|
+
#
|
6
|
+
|
7
|
+
module GlooLang
|
8
|
+
module Verbs
|
9
|
+
class Files < GlooLang::Core::Verb
|
10
|
+
|
11
|
+
KEYWORD = 'files'.freeze
|
12
|
+
KEYWORD_SHORT = 'fs'.freeze
|
13
|
+
|
14
|
+
#
|
15
|
+
# Run the verb.
|
16
|
+
#
|
17
|
+
def run
|
18
|
+
@engine.persist_man.maps.each do |map|
|
19
|
+
@engine.log.show "#{map.obj.name} - #{map.pn}"
|
20
|
+
end
|
21
|
+
@engine.heap.it.set_to @engine.persist_man.maps.count
|
22
|
+
end
|
23
|
+
|
24
|
+
#
|
25
|
+
# Get the Verb's keyword.
|
26
|
+
#
|
27
|
+
def self.keyword
|
28
|
+
return KEYWORD
|
29
|
+
end
|
30
|
+
|
31
|
+
#
|
32
|
+
# Get the Verb's keyword shortcut.
|
33
|
+
#
|
34
|
+
def self.keyword_shortcut
|
35
|
+
return KEYWORD_SHORT
|
36
|
+
end
|
37
|
+
|
38
|
+
# ---------------------------------------------------------------------
|
39
|
+
# Private functions
|
40
|
+
# ---------------------------------------------------------------------
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/gloo_lang/verbs/show.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
#
|
4
4
|
# Show a single object's value.
|
5
5
|
#
|
6
|
-
# require 'colorized_string'
|
7
6
|
|
8
7
|
module GlooLang
|
9
8
|
module Verbs
|
@@ -54,8 +53,7 @@ module GlooLang
|
|
54
53
|
expr = GlooLang::Expr::Expression.new( @engine, @params.tokens )
|
55
54
|
val = expr.evaluate
|
56
55
|
color = val.to_sym
|
57
|
-
|
58
|
-
return str.to_s
|
56
|
+
return @engine.platform.getColorizedString( str, color )
|
59
57
|
end
|
60
58
|
return str
|
61
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gloo-lang
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Crane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -285,6 +285,7 @@ files:
|
|
285
285
|
- lib/gloo_lang/verbs/context.rb
|
286
286
|
- lib/gloo_lang/verbs/create.rb
|
287
287
|
- lib/gloo_lang/verbs/execute.rb
|
288
|
+
- lib/gloo_lang/verbs/files.rb
|
288
289
|
- lib/gloo_lang/verbs/if.rb
|
289
290
|
- lib/gloo_lang/verbs/list.rb
|
290
291
|
- lib/gloo_lang/verbs/load.rb
|