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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5b79c9b4bec7d50d6514a46d2d4b459cb769748316a1aa3c124943292862e2d
4
- data.tar.gz: 970dfa9d9838a555619491723c4ddacd62764767bcbe427dd407d2f541c7c887
3
+ metadata.gz: 67d6ad974fae59754a4bf3d6c306e01a9028b8d5f0d86968fa2a3de5fbf97018
4
+ data.tar.gz: d250929b203dbfe8bdec044b31abebfe6f7244e2dd19376b876c0daf2634b730
5
5
  SHA512:
6
- metadata.gz: 7f8402adab86a07e37c3e663de62bc2681c84cfe4bc0fb0791e6a2413c2f94991fe861712183c7e82061cd8134a1d6ae6fbc225d90ed57eb78f3cf09a42e5731
7
- data.tar.gz: 4f8a97b146ca5e73c65a01681ee7871e198e0d49fa94866122d06dff35f0266cac54b24ae7d559020210ba49479ed041836d8e3e3a1b150a669e54236d8aeb56
6
+ metadata.gz: 20dfdad9784ef0bab8439b63d2dccac59f21a27ae57c178c8961bc5414a9dc87af4e78b0d7b5d2b61ca9809715e6fa6e1ee0cf6f8e9091053f724be3d1b7d505
7
+ data.tar.gz: 7a8cc51ccf632a8ec43ee06669f54c39276e5d88fbeb990e4c2d23c33993eb308e83ae3aa5213a054d5e868cb5617eab2632cb480764ece197192d03f0a75618
@@ -72,7 +72,6 @@ loop do
72
72
  @backtrace = true
73
73
  when "-m", "--mixin"
74
74
  mod = ARGV.shift
75
- STDERR.puts "Got mod: #{mod}"
76
75
  x.mixin(ARGV.shift)
77
76
  next
78
77
  when "-s", "--stdin"
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.9.09"
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
- STDERR.puts "line = #{line.inspect}"
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) # , vars: {})
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)
@@ -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
- STDERR.puts "No such mixin '#{name}'"
389
- puts @body
390
- exit!
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
 
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.9.09
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton