livetext 0.8.30 → 0.8.31
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ee6ee1d590a7359564a5fc3f189dcdff2df06b9
|
4
|
+
data.tar.gz: 9ddf33c92e84c1f86c693e507d0fe3dc59dd9646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03682316cf60d6863bdad5fe502e5fbb2e3c6be2e3eb472d04b5f376a56a0397f62af5fd6102d7f8488aef2a50d1bb50940001c742999da73fb4a7c1f0e11702
|
7
|
+
data.tar.gz: b3664f3bfc92519419f68b0cab472cc9e91ae90f1567cb1aaf40c23a83589308a0984054936c4ac26c89adf6b888dceaf302965fd6b88dcce5208574d011430b
|
data/lib/livetext.rb
CHANGED
data/lib/standard.rb
CHANGED
@@ -161,6 +161,13 @@ module Livetext::Standard
|
|
161
161
|
_optional_blank_line
|
162
162
|
end
|
163
163
|
|
164
|
+
def heredoc
|
165
|
+
var = @_args[0]
|
166
|
+
str = _body_text
|
167
|
+
Livetext::Vars[var] = str
|
168
|
+
_optional_blank_line
|
169
|
+
end
|
170
|
+
|
164
171
|
def _include
|
165
172
|
file = @_args.first
|
166
173
|
_check_existence(file, "No such include file '#{file}'")
|
File without changes
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Testing heredocs (used in a table)
|
2
|
+
|
3
|
+
.heredoc r1c1
|
4
|
+
This is
|
5
|
+
only
|
6
|
+
a test.
|
7
|
+
.end
|
8
|
+
|
9
|
+
.heredoc r2c1
|
10
|
+
And so
|
11
|
+
is this.
|
12
|
+
.end
|
13
|
+
|
14
|
+
.heredoc r2c2
|
15
|
+
This is
|
16
|
+
row 2
|
17
|
+
col 2
|
18
|
+
.end
|
19
|
+
|
20
|
+
.heredoc r1c2
|
21
|
+
This is
|
22
|
+
just
|
23
|
+
some
|
24
|
+
random text.
|
25
|
+
.end
|
26
|
+
|
27
|
+
.table Just another table
|
28
|
+
$r1c1 :: $r1c2
|
29
|
+
$r2c1 :: $r2c2
|
30
|
+
.end
|
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.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hal Fulton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A smart text processor extensible in Ruby
|
14
14
|
email: rubyhacker@gmail.com
|
@@ -124,6 +124,9 @@ files:
|
|
124
124
|
- test/data/single_raw_line/expected-error.txt
|
125
125
|
- test/data/single_raw_line/expected-output.txt
|
126
126
|
- test/data/single_raw_line/source.lt3
|
127
|
+
- test/data/table_with_heredocs/expected-error.txt
|
128
|
+
- test/data/table_with_heredocs/expected-output.txt
|
129
|
+
- test/data/table_with_heredocs/source.lt3
|
127
130
|
- test/newtest
|
128
131
|
- test/sdtest
|
129
132
|
- test/test.rb
|