runeblog 0.1.64 → 0.1.65

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: d85a387a7a63973609a0478487fc2b7bf4d674539a0807af49e51a514de9f891
4
- data.tar.gz: bdf57fc642dd302abe853079cb51edba3baaf26b1287ea44438a58b21d4393a5
3
+ metadata.gz: 536f1e0629ffe7e91bed7f0fc08f10aff238b8947810af161826edabee056c9f
4
+ data.tar.gz: 89fd6c8d808732f1f7d7fa6ee3c5082b7e597e931c9458bbe09673d32f10300b
5
5
  SHA512:
6
- metadata.gz: eab5ed71e645cd06e4010b679d98cf4d5d22d0eaffe62c419cbf811afb3fbf190087cb85fccbecc1e84fbd1c68854698a9c322e3a608e2412f8a8856d695aa6d
7
- data.tar.gz: bdad671fc1b0bdedc9c53138aa2b5a7d1efea3a14558bb22f77d40aceb3524f7ecf724d244408ebda01213d0994fc0acdb3a2d3cfbc901d8c91f8e06e6b40a56
6
+ metadata.gz: d2456e3cc08508f43b9a44829a7ea8e81ba0602a4c2654c1ac274de8871d3b51742f29a5670fc23c1addcd30afb98463c713d13ae3477ee9cc4720d6b4e51798
7
+ data.tar.gz: 37b9fee839118b9381990daebb5348b80ad9a069f4813c59b3fad6ea29e58da16871e5c03b0cccd40adbc142c281fba20242d794f258353cd7f260964a4c6805
data/lib/liveblog.rb CHANGED
@@ -95,16 +95,16 @@ def _errout(*args)
95
95
  ::STDERR.puts *args
96
96
  end
97
97
 
98
- def _passthru(line, context = nil)
98
+ def _passthru(line)
99
99
  return if line.nil?
100
- line = _formatting(line, context)
100
+ line = _formatting(line)
101
101
  @live.body << line + "\n"
102
102
  @live.body << "<p>" if line.empty? && ! @_nopara
103
103
  end
104
104
 
105
- def _passthru_noline(line, context = nil)
105
+ def _passthru_noline(line)
106
106
  return if line.nil?
107
- line = _formatting(line, context)
107
+ line = _formatting(line)
108
108
  @live.body << line
109
109
  @live.body << "<p>" if line.empty? && ! @_nopara
110
110
  end
@@ -240,28 +240,26 @@ Dot = self # Clunky! for dot commands called from Functions class
240
240
 
241
241
  class Livetext::Functions
242
242
 
243
- def br
243
+ def br(n="1")
244
244
  # Thought: Maybe make a way for functions to "simply" call the
245
245
  # dot command of the same name?? Is this trivial??
246
- # Also: Should probably pass as a "real" function parameter?
247
- n = self.class.param
248
246
  n = n.empty? ? 1 : n.to_i
249
247
  "<br>"*n
250
248
  end
251
249
 
252
- def h1; "<h1>#{self.class.param}</h1>"; end
253
- def h2; "<h2>#{self.class.param}</h2>"; end
254
- def h3; "<h3>#{self.class.param}</h3>"; end
255
- def h4; "<h4>#{self.class.param}</h4>"; end
256
- def h5; "<h5>#{self.class.param}</h5>"; end
257
- def h6; "<h6>#{self.class.param}</h6>"; end
250
+ def h1(param); "<h1>#{param}</h1>"; end
251
+ def h2(param); "<h2>#{param}</h2>"; end
252
+ def h3(param); "<h3>#{param}</h3>"; end
253
+ def h4(param); "<h4>#{param}</h4>"; end
254
+ def h5(param); "<h5>#{param}</h5>"; end
255
+ def h6(param); "<h6>#{param}</h6>"; end
258
256
 
259
- def hr
257
+ def hr(param=nil)
260
258
  Dot.hr
261
259
  end
262
260
 
263
- def image
264
- "<img src='#{self.class.param}'></img>"
261
+ def image(param)
262
+ "<img src='#{param}'></img>"
265
263
  end
266
264
 
267
265
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  class RuneBlog
3
- VERSION = "0.1.64"
3
+ VERSION = "0.1.65"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.64
4
+ version: 0.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-11 00:00:00.000000000 Z
11
+ date: 2019-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: livetext