runeblog 0.1.64 → 0.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/liveblog.rb +14 -16
- data/lib/runeblog_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 536f1e0629ffe7e91bed7f0fc08f10aff238b8947810af161826edabee056c9f
|
4
|
+
data.tar.gz: 89fd6c8d808732f1f7d7fa6ee3c5082b7e597e931c9458bbe09673d32f10300b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
98
|
+
def _passthru(line)
|
99
99
|
return if line.nil?
|
100
|
-
line = _formatting(line
|
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
|
105
|
+
def _passthru_noline(line)
|
106
106
|
return if line.nil?
|
107
|
-
line = _formatting(line
|
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>#{
|
253
|
-
def h2; "<h2>#{
|
254
|
-
def h3; "<h3>#{
|
255
|
-
def h4; "<h4>#{
|
256
|
-
def h5; "<h5>#{
|
257
|
-
def h6; "<h6>#{
|
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='#{
|
261
|
+
def image(param)
|
262
|
+
"<img src='#{param}'></img>"
|
265
263
|
end
|
266
264
|
|
267
265
|
end
|
data/lib/runeblog_version.rb
CHANGED
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.
|
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
|
+
date: 2019-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: livetext
|