livetext 0.8.63 → 0.8.64
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/livetext.rb +1 -1
- data/plugin/liveblog.rb +9 -2
- 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: 66e36e388671626a637d89ac83c96c5e8ff588be231567cfb33115492e7bf27d
|
4
|
+
data.tar.gz: d2a7d36660262d674fff0e8453bbb5e5f372ef861fe585211e9de3f0a5656a8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 850d9dc8a83d9c8cc90cd29d97bd63ce72b02142ae8a97c2b0ca8863cdd46d84bc317fce7d916d65b77ede67e6d7e31c490c182f0432ec9b04a57d4c2dd128d6
|
7
|
+
data.tar.gz: ad9ca2eaa866b778b362dbbb3256ba0c35721cb7c4e4888770cafe58c70d698b776842ae7d5c9fb58a62c5e9af638d37cffef72d18a6054b0d3d8e97ee1612d1
|
data/lib/livetext.rb
CHANGED
data/plugin/liveblog.rb
CHANGED
@@ -38,14 +38,21 @@ def inset
|
|
38
38
|
lines = _body
|
39
39
|
box = []
|
40
40
|
lines.each do |line|
|
41
|
-
|
41
|
+
line = line.dup
|
42
|
+
if line[0] == "/" # Only into inset
|
43
|
+
line[0] = ' '
|
44
|
+
box << line
|
45
|
+
line.replace(" ")
|
46
|
+
end
|
47
|
+
if line[0] == "|" # Into inset and body
|
42
48
|
line[0] = ' '
|
43
49
|
box << line
|
44
50
|
end
|
45
51
|
_passthru(line)
|
46
52
|
end
|
47
53
|
lr = _args.first
|
48
|
-
|
54
|
+
wide = _args[1] || "25"
|
55
|
+
_passthru "<div style='float:#{lr}; width: #{wide}%; padding:8px; padding-right:12px; font-family:verdana'>"
|
49
56
|
_passthru '<b><i>'
|
50
57
|
_passthru box.join("<br>")
|
51
58
|
_passthru_noline '</i></b></div>'
|
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.64
|
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-03-
|
11
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A smart text processor extensible in Ruby
|
14
14
|
email: rubyhacker@gmail.com
|