gloo-lang 1.2.5 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a72f890d762fc81128cf2e0108ac3659e50577cfbe7bac14c65fd6a9a2a2054d
4
- data.tar.gz: 76ce6d65e94e17e2640393e24380fdaef4652aa03a27e1ccc8cb152fdff69f25
3
+ metadata.gz: a08419e570ef6b12bbefe6dbb229ab4f7cec2799bbafc1a5e80818540e65ae84
4
+ data.tar.gz: 77a1cf4f2234bfd56e672b8dc4865e39ec561505149d8abe6cd2a1091b84e861
5
5
  SHA512:
6
- metadata.gz: a202a6d526985f7aa570a2ec4e74727dbe3cdaec06e4984d8bc0b1017dd536c25eb4e5ce87376783e7405d5d410c6b093960a96c57c1e2d1521317aef10286ca
7
- data.tar.gz: 3861b2af545bd83c23a336010185eac174504d3412bf22c839600c71c15e084497d5d86ee7e47a52bc2fc7be15a2a9cbb5a23716ad62f7ca91d96d22e7e5fa47
6
+ metadata.gz: a144d367d61db091cd2ffc9e40be5f0b3da93196cd93ebc38d295f95825f7ba605d1261d288f016c1f313a37e1628bc420e220f3b7616c3fd81661aa7f9c731b
7
+ data.tar.gz: fdce89d559d44b12bebce5575baae97b82208a25e65467aaf5ceddc2367d688765e0342adffc49fbaa5ca4fb9fa1771ba9f01291a832f3463ef9ff6e1c8e9bf2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.5
1
+ 1.2.7
@@ -120,10 +120,17 @@ module GlooLang
120
120
  # Then quit.
121
121
  #
122
122
  def run_files
123
- @args.files.each { |f| @persist_man.load( f ) }
123
+ load_files
124
124
  quit
125
125
  end
126
126
 
127
+ #
128
+ # Load all file specified in the CLI.
129
+ #
130
+ def load_files
131
+ @args.files.each { |f| @persist_man.load( f ) }
132
+ end
133
+
127
134
  #
128
135
  # Run in interactive mode.
129
136
  #
@@ -131,7 +138,8 @@ module GlooLang
131
138
  # Open default file(s)
132
139
  self.open_start_file
133
140
 
134
- # TODO: open any files specifed in args
141
+ # Open any files specifed in args
142
+ load_files
135
143
 
136
144
  unless @mode == Mode::SCRIPT || @args.quiet?
137
145
  self.loop
@@ -78,6 +78,13 @@ module GlooLang
78
78
  return GlooLang::Persist::DiscMech.new( engine )
79
79
  end
80
80
 
81
+ #
82
+ # Get colorized string.
83
+ #
84
+ def getColorizedString( string, color )
85
+ return str
86
+ end
87
+
81
88
  end
82
89
  end
83
90
  end
@@ -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
- # return ColorizedString[ str.to_s ].colorize( color )
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.5
4
+ version: 1.2.7
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-09-21 00:00:00.000000000 Z
11
+ date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler