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 +4 -4
- data/README.lt3 +3 -2
- data/lib/formatline.rb +2 -1
- data/lib/livetext.rb +1 -1
- data/lib/standard.rb +13 -0
- data/lib/userapi.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c66f92e4f5c190749d6e7c40a0d0229fee297d043e501e8977eaf60004d52275
|
4
|
+
data.tar.gz: be71a91b69bbdceb2792d68757abf4ba606bf1f5a68ed2cde3226373215a50ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
.
|
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 (
|
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
|
+
|
data/lib/formatline.rb
CHANGED
data/lib/livetext.rb
CHANGED
data/lib/standard.rb
CHANGED
@@ -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}"
|
data/lib/userapi.rb
CHANGED