livetext 0.8.30 → 0.8.31

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82b68f8bed09c43060d1924fb9326e05701f63ca
4
- data.tar.gz: f4cea87d02d3b66c15ea639028b1eab1d9a2fb21
3
+ metadata.gz: 1ee6ee1d590a7359564a5fc3f189dcdff2df06b9
4
+ data.tar.gz: 9ddf33c92e84c1f86c693e507d0fe3dc59dd9646
5
5
  SHA512:
6
- metadata.gz: 456c1e13990245edc7b3dfa1763d44b761203093e72578bc822e2913eb6ef6452e56dc8c12455fe8313a50b074258ed75e3d2daf7caafe2b6883e785e979d4c4
7
- data.tar.gz: df65d763359a056818b8579707c45d2b25b46aef248a309747df7cf0d0802299944b90618b5e09c782445acd4bbaa94d484bd158d5102a56c45f5095c566250b
6
+ metadata.gz: 03682316cf60d6863bdad5fe502e5fbb2e3c6be2e3eb472d04b5f376a56a0397f62af5fd6102d7f8488aef2a50d1bb50940001c742999da73fb4a7c1f0e11702
7
+ data.tar.gz: b3664f3bfc92519419f68b0cab472cc9e91ae90f1567cb1aaf40c23a83589308a0984054936c4ac26c89adf6b888dceaf302965fd6b88dcce5208574d011430b
data/lib/livetext.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.30"
2
+ VERSION = "0.8.31"
3
3
  end
4
4
 
5
5
  $Livetext = Livetext
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,3 @@
1
+ Testing heredocs (used in a table)
2
+ <p>
3
+
@@ -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.30
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-05 00:00:00.000000000 Z
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