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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b120138872329785c8313a15ba6db1f5566689a
4
- data.tar.gz: ac7c92d3d74afa3c4f4d40ff1bba12ff9473688d
3
+ metadata.gz: 6ce867574e9265082c5d06e7cbc88ffb36f6a2c0
4
+ data.tar.gz: 831df833c2a2e0f0783dab28e1785c8b12008a94
5
5
  SHA512:
6
- metadata.gz: 95dfa38976d67f6723a2b37634253f1f816169c1d69a4ccab2a36d96ac6451a13cfdfff6c2cad4474ffdde4da18933f462d112e6b1753008b1110049af35cb78
7
- data.tar.gz: 218cfd92a89a40bbf0bebb1a991b1417a153aa398d60038855a2b432d47d6f006f73852bfb43215c83f06e9021514da1419555e720cad692c5f7d8c69229196b
6
+ metadata.gz: 18906ee68137888e8e35a18623f99365e91897e717a4499fa697a0b7295634908da86f1699a115618021dc0a3ee1b92f7a22415a374196005fd922721eafd72f
7
+ data.tar.gz: 8b898859512486641de6cd1cd515d7c8f0713cbbedbc33c98c84a5eb33be3bd981fffee06fd52f9f7264e9f9285736209feec420c96c9b117c989feaaa4dfef7
@@ -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
- # STDERR.puts "finalize: @meta = #{@meta.inspect}"
76
- @meta.slug = make_slug(@meta.title, @config.sequence)
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
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.13"
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
- finalize if self.respond_to? :finalize
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)
@@ -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
- # STDERR.puts "mixin: self = #{self} @meta = #@meta"
197
+ STDERR.puts "mixin: self = #{self} @meta = #@meta"
197
198
  _optional_blank_line
198
199
  end
199
200
 
@@ -1,4 +1,3 @@
1
-
2
1
  .def alpha
3
2
  text = _body.to_a.join(" ")
4
3
  words = text.split.sort
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.13
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-04-26 00:00:00.000000000 Z
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.4.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: