lib/post.rb in runeblog-0.1.59 vs lib/post.rb in runeblog-0.1.61
- old
+ new
@@ -122,11 +122,11 @@
def build
debug "=== build"
views = @meta.views
text = File.read(@draft)
- Livetext.parameters = [@blog, @meta.num]
livetext = Livetext.new(STDOUT)
+ Livetext.parameters = [@blog, @meta.num, livetext]
meta = livetext.process_text(text)
raise LivetextError(@draft) if meta.nil?
meta.num = File.basename(@draft).to_i
# FIXME what if title changes? slug should change?