livetext 0.8.88 → 0.8.89

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: d581f4bdb4eb60d5a74be2f601cdd140428cfa781c1ad41047ad7e8372e9a526
4
- data.tar.gz: 875be8550e6b0bb65aafe39d56457ccd19825fdf71b9ace4c0079e505b7896b8
3
+ metadata.gz: c66f92e4f5c190749d6e7c40a0d0229fee297d043e501e8977eaf60004d52275
4
+ data.tar.gz: be71a91b69bbdceb2792d68757abf4ba606bf1f5a68ed2cde3226373215a50ea
5
5
  SHA512:
6
- metadata.gz: 3c7f9858cdb40eb009d4c3f1951ea92b88ad91b9251c8cbac4cfa445d36b81d883dbb18ee94bc3c8a27842febb3ff82cd0439500db470c5f4441342d65f25fae
7
- data.tar.gz: 0d89365d60e1c3375af7d1f34a819691fc5799e9490f3853587d5bad61be0c4cf2684f19bbafe8fd8abf284ae36ca47b71ad796313eabf1f49b59ede02a85972
6
+ metadata.gz: 27320e87ca5f53288b2da97f616d63ba91392a182b702a07993f65f622bf9933f14b246d4c8225ab3f90306cdf8a2a3fad828da365c6395de69e8ea405459d02
7
+ data.tar.gz: 715129eabb7900a6342c4072ef280015df063579f0f16239dd816db83b4fb98596025917ac9ab1f3bf1e8116f3e7434e7a5357c294e7478531066ce92a2c74f8
data/README.lt3 CHANGED
@@ -329,7 +329,7 @@ on that new custom object. I plan to implement this later.
329
329
 
330
330
  This list is not prioritized yet.
331
331
 
332
- .nlist
332
+ .list
333
333
  ~[Add versioning information
334
334
  ~[Clean up code structure
335
335
  Add RDoc
@@ -344,7 +344,7 @@ Document API fully
344
344
  Add `_raw_args and let `_args honor quotes
345
345
  Support quotes in `.set values
346
346
  Support "namespaced" variables (`[.set code.font="whatever"])
347
- ~[Support functions (``$$func)
347
+ ~[Support functions (``\$\$func)]
348
348
  Support function namespacing
349
349
  Create predefined variables (e.g., `[$_source_file], `$[_line])
350
350
  Create predefined functions (e.g., `[$$_date])
@@ -381,3 +381,4 @@ Make any/all delimiters configurable
381
381
  HTML helper? (in their own library?)
382
382
  .end
383
383
 
384
+
@@ -49,7 +49,8 @@ class FormatLine
49
49
  grab
50
50
  loop do
51
51
  case curr
52
- when Escape; grab; add curr; grab
52
+ when Escape; grab; add curr; grab; add curr
53
+ puts "Found #{curr.inspect}"
53
54
  when "$"
54
55
  dollar
55
56
  when "*", "_", "`", "~"
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.88"
2
+ VERSION = "0.8.89"
3
3
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
4
4
  end
5
5
 
@@ -171,6 +171,14 @@ EOS
171
171
  _optional_blank_line
172
172
  end
173
173
 
174
+ def variables
175
+ _body.each do |line|
176
+ var, val = line.split(" ", 2)
177
+ val = FormatLine.var_func_parse(val)
178
+ @parent._setvar(var, val)
179
+ end
180
+ end
181
+
174
182
  def heredoc
175
183
  var = @_args[0]
176
184
  str = _body_text
@@ -225,6 +233,11 @@ STDERR.puts " ...finished"
225
233
  _optional_blank_line
226
234
  end
227
235
 
236
+ def _include_file(file)
237
+ @_args = [file]
238
+ _include
239
+ end
240
+
228
241
  def inherit
229
242
  file = @_args.first
230
243
  upper = "../#{file}"
@@ -136,7 +136,7 @@ module Livetext::UserAPI
136
136
 
137
137
  def _out(str = "")
138
138
  return if str.nil?
139
- STDERR.puts "STR = #{str.inspect}"
139
+ # STDERR.puts "STR = #{str.inspect}"
140
140
  @parent.body << str
141
141
  @parent.body << "\n" unless str.end_with?("\n")
142
142
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livetext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.88
4
+ version: 0.8.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton