livetext 0.9.09 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/livetext +0 -1
- data/lib/livetext.rb +3 -3
- data/lib/standard.rb +4 -4
- 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: 67d6ad974fae59754a4bf3d6c306e01a9028b8d5f0d86968fa2a3de5fbf97018
|
4
|
+
data.tar.gz: d250929b203dbfe8bdec044b31abebfe6f7244e2dd19376b876c0daf2634b730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20dfdad9784ef0bab8439b63d2dccac59f21a27ae57c178c8961bc5414a9dc87af4e78b0d7b5d2b61ca9809715e6fa6e1ee0cf6f8e9091053f724be3d1b7d505
|
7
|
+
data.tar.gz: 7a8cc51ccf632a8ec43ee06669f54c39276e5d88fbeb990e4c2d23c33993eb308e83ae3aa5213a054d5e868cb5617eab2632cb480764ece197192d03f0a75618
|
data/bin/livetext
CHANGED
data/lib/livetext.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Livetext
|
2
|
-
VERSION = "0.9.
|
2
|
+
VERSION = "0.9.10"
|
3
3
|
Path = File.expand_path(File.join(File.dirname(__FILE__)))
|
4
4
|
end
|
5
5
|
|
@@ -126,7 +126,7 @@ class Livetext
|
|
126
126
|
when Comment
|
127
127
|
handle_scomment(line)
|
128
128
|
when Dotcmd
|
129
|
-
|
129
|
+
# STDERR.puts "line = #{line.inspect}"
|
130
130
|
handle_dotcmd(line)
|
131
131
|
when Ddotcmd
|
132
132
|
indent = line.index("$") + 1
|
@@ -170,7 +170,7 @@ class Livetext
|
|
170
170
|
self.body
|
171
171
|
end
|
172
172
|
|
173
|
-
def xform_file(file
|
173
|
+
def xform_file(file, vars: nil)
|
174
174
|
Livetext::Vars.replace(vars) unless vars.nil?
|
175
175
|
@_vars.replace(vars) unless vars.nil?
|
176
176
|
self.process_file(file)
|
data/lib/standard.rb
CHANGED
@@ -336,7 +336,6 @@ EOS
|
|
336
336
|
end
|
337
337
|
|
338
338
|
def _include
|
339
|
-
STDERR.puts "_include: vars View/ViewDir #{::Livetext::Vars[:View]} #{::Livetext::Vars[:ViewDir]} "
|
340
339
|
file = _format(@_args.first) # allows for variables
|
341
340
|
_check_existence(file, "No such include file #{file.inspect}")
|
342
341
|
@parent.process_file(file)
|
@@ -385,9 +384,10 @@ STDERR.puts "_include: vars View/ViewDir #{::Livetext::Vars[:View]} #{::Livetext
|
|
385
384
|
Dir.chdir("..") { mixin }
|
386
385
|
return
|
387
386
|
else
|
388
|
-
|
389
|
-
puts
|
390
|
-
|
387
|
+
raise "No such mixin '#{name}'"
|
388
|
+
# STDERR.puts "No such mixin '#{name}'"
|
389
|
+
# puts @body
|
390
|
+
# exit!
|
391
391
|
end
|
392
392
|
end
|
393
393
|
|