gloo-lang 1.3.0 → 1.3.2

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: e19008792844521f9380ff7068c31a655accda4c5c502684aa2004cd0c76ccb8
4
- data.tar.gz: 71d6ea6d461250bc42b63dcbd4f06613f83ba9d4301b33bf72b12190e4db0b6a
3
+ metadata.gz: 6d53ee57cd043ef2df43c9f73c3e06dbbc4b4aab69bef954eacf10aa13c5635d
4
+ data.tar.gz: 01e5791a5ef73fe464af49f2fb050b0e1a83b6e4cccac7fff14ebd09da40af45
5
5
  SHA512:
6
- metadata.gz: ae5ec7f85708fe5b496b061d4d151a4be8b0f643ca0bfefa8a38ef290579aca861f5052a22f32a57c0754a1c5ef03846ec3ce4be738946a2b7a5cd8f48879655
7
- data.tar.gz: fa8b5d881ebed02c438184b77322cf40c4bab13ffc71d225e1ad84046ea6fdf218802f1d5d693ab04c3d90399fb1d5b68bfad0ec64070d0c28cf1a82016a19f7
6
+ metadata.gz: 19517cd6d7ecc5e6954162dff72260e4b60239f38d32a6ce407830b1d4e469a8e3fd355e21c036f5a7c075ad5a677e759f4bb10e3b23cc4163abcf3bace93986
7
+ data.tar.gz: cbda84d465f7364102558978f6529c0b34ae2a15d8d7d6b2b87724dad49dd7d2e70b4b51817302e6adf7468499254563b86dc2bcb2f3304b86ee6a26cffaf104
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.2
@@ -218,7 +218,7 @@ module GlooLang
218
218
  # Show the version information and then quit.
219
219
  #
220
220
  def run_version
221
- @platform.show Info.display_title unless @args.quiet?
221
+ @platform.show Info.full_version unless @args.quiet?
222
222
  quit
223
223
  end
224
224
 
@@ -12,6 +12,7 @@ module GlooLang
12
12
  ROOT = 'root'.freeze
13
13
  IT = 'it'.freeze
14
14
  ERROR = 'error'.freeze
15
+ CONTEXT = '@'.freeze
15
16
 
16
17
  attr_reader :src, :elements
17
18
 
@@ -124,6 +125,21 @@ module GlooLang
124
125
  return @elements.count > 1
125
126
  end
126
127
 
128
+ #
129
+ # Does the path start with the context?
130
+ #
131
+ def includes_context?
132
+ return @src.start_with?( "#{CONTEXT}." )
133
+ end
134
+
135
+ #
136
+ # Expand the context so we have the full path.
137
+ #
138
+ def expand_context
139
+ # return unless @engine.heap.context
140
+ self.set_to( "#{@engine.heap.context}#{@src[1..-1]}" )
141
+ end
142
+
127
143
  #
128
144
  # Get the parent that contains the object referenced.
129
145
  #
@@ -180,6 +196,10 @@ module GlooLang
180
196
  Here.expand_here( @engine, self )
181
197
  end
182
198
 
199
+ if self.includes_context?
200
+ expand_context
201
+ end
202
+
183
203
  parent = self.get_parent
184
204
  return nil unless parent
185
205
 
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.3.0
4
+ version: 1.3.2
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-10-21 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler