livetext 0.8.13 → 0.8.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dsl/liveblog.rb +3 -2
- data/lib/livetext.rb +5 -2
- data/lib/standard.rb +2 -1
- data/test/data/example_alpha/source.lt3 +0 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce867574e9265082c5d06e7cbc88ffb36f6a2c0
|
4
|
+
data.tar.gz: 831df833c2a2e0f0783dab28e1785c8b12008a94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18906ee68137888e8e35a18623f99365e91897e717a4499fa697a0b7295634908da86f1699a115618021dc0a3ee1b92f7a22415a374196005fd922721eafd72f
|
7
|
+
data.tar.gz: 8b898859512486641de6cd1cd515d7c8f0713cbbedbc33c98c84a5eb33be3bd981fffee06fd52f9f7264e9f9285736209feec420c96c9b117c989feaaa4dfef7
|
data/dsl/liveblog.rb
CHANGED
@@ -13,6 +13,7 @@ def _errout(*args)
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def _passthru(line)
|
16
|
+
return if line.nil?
|
16
17
|
@dest << "<p>" if line == "\n" and ! @_nopara
|
17
18
|
line = _formatting(line)
|
18
19
|
@dest << line
|
@@ -72,8 +73,8 @@ def list!
|
|
72
73
|
end
|
73
74
|
|
74
75
|
def finalize
|
75
|
-
|
76
|
-
|
76
|
+
STDERR.puts "finalize: @meta = #{@meta.inspect}"
|
77
|
+
# @meta.slug = make_slug(@meta.title)
|
77
78
|
@meta.body = @dest
|
78
79
|
@meta
|
79
80
|
end
|
data/lib/livetext.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Livetext
|
2
|
-
VERSION = "0.8.
|
2
|
+
VERSION = "0.8.14"
|
3
3
|
end
|
4
4
|
|
5
5
|
require 'fileutils'
|
@@ -120,7 +120,10 @@ class Livetext
|
|
120
120
|
break if line.nil?
|
121
121
|
process_line(line)
|
122
122
|
end
|
123
|
-
|
123
|
+
STDERR.puts "About to call finalize: main = #{@main.inspect}"
|
124
|
+
STDERR.puts "About to call finalize: methods = #{@main.methods.sort.inspect}"
|
125
|
+
STDERR.puts "About to call finalize: #{@main.respond_to? :finalize}"
|
126
|
+
@main.finalize if @main.respond_to? :finalize
|
124
127
|
end
|
125
128
|
|
126
129
|
def process(text)
|
data/lib/standard.rb
CHANGED
@@ -178,6 +178,7 @@ module Livetext::Standard
|
|
178
178
|
end
|
179
179
|
|
180
180
|
def mixin
|
181
|
+
STDERR.puts "Got into mixin..."
|
181
182
|
name = @_args.first # Expect a module name
|
182
183
|
file = "#{Plugins}/" + name.downcase + ".rb"
|
183
184
|
return if @_mixins.include?(name)
|
@@ -193,7 +194,7 @@ module Livetext::Standard
|
|
193
194
|
self.extend(newmod)
|
194
195
|
init = "init_#{name}"
|
195
196
|
self.send(init) if self.respond_to? init
|
196
|
-
|
197
|
+
STDERR.puts "mixin: self = #{self} @meta = #@meta"
|
197
198
|
_optional_blank_line
|
198
199
|
end
|
199
200
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livetext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A smart text processor extensible in Ruby
|
14
14
|
email: rubyhacker@gmail.com
|
@@ -148,9 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.2.2
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: A smart processor for text
|
155
155
|
test_files: []
|
156
|
-
has_rdoc:
|