livetext 0.8.34 → 0.8.35

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: c530b41a9e09b07500ba162a39281433ea9a3077
4
- data.tar.gz: 8d647b896eb978609138466b71f9b6945fa34e96
3
+ metadata.gz: e5adce0c99c5ffb958eb7cbd6c786c42f4a61817
4
+ data.tar.gz: 7ad86ff5bb31a9cf5b3c96e2cc5339c80e13846e
5
5
  SHA512:
6
- metadata.gz: 1737173d2b27d3c7661afe2a9cc73af36f7a49a09ab1b771b24347b4346bb9109a2bf106b6eb0a0b77978e523c4b10f14e481229fb7e91aab2a70262ec3b2164
7
- data.tar.gz: 03509140d2029abadfd7888a506039f453d7fd8644f2150c5d75ae8c51e0ebb1db48b9aeaba80da41a40d2e2e5bafa1f93ef6738fdfb862f0e08593d8294237c
6
+ metadata.gz: 532a99096cfc9c9dbc882c6646c068755853c16e2f7d5bda7e330604b654daf45f3014d57bd31943e20528afa3e87f29542b9af886ff0e0330485d75ddae1a82
7
+ data.tar.gz: d0692cc887b01187e4ff0379d8b6540f5c4af80f703380ca8b9aa88fcc8ad71e687151958f845ca215180f647b3b9aac16ae5c6c03589bc5d2200fc00171f1ca
@@ -68,7 +68,7 @@ end
68
68
 
69
69
  def text!
70
70
  xy, wxh = _data.split
71
- str = _body.join
71
+ str = _body_text # .join
72
72
  weight, gravity = BoldWeight, CenterGravity
73
73
  _text(xy, wxh, str, weight, gravity)
74
74
  _optional_blank_line
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.34"
2
+ VERSION = "0.8.35"
3
3
  end
4
4
 
5
5
  $Livetext = Livetext
@@ -320,7 +320,7 @@ module Livetext::Standard
320
320
  cells = line.split(delim)
321
321
  _puts "<tr>"
322
322
  cells.each.with_index do |cell, i|
323
- _puts " <td>#{cell}</td>"
323
+ _puts " <td valign=top>#{cell}</td>"
324
324
  end
325
325
  _puts "</tr>"
326
326
  end
@@ -82,7 +82,7 @@ module Livetext::UserAPI
82
82
  end
83
83
 
84
84
  def _body_text(raw=false, sigil=".")
85
- _body(sigil).join("\n")
85
+ _body(sigil).join("")
86
86
  end
87
87
 
88
88
  def _raw_body!(sigil=".")
@@ -3,11 +3,11 @@ Testing heredocs (used in a table)
3
3
 
4
4
  <br><center><table border=1 width=90% cellpadding=5>
5
5
  <tr>
6
- <td>This is <br>only <br>a test.<br></td>
7
- <td>This is <br>just <br>some <br>random text.<br></td>
6
+ <td valign=top>This is <br>only <br>a test.<br></td>
7
+ <td valign=top>This is <br>just <br>some <br>random text.<br></td>
8
8
  </tr>
9
9
  <tr>
10
- <td>And so<br>is this.<br></td>
11
- <td>This is <br>row 2<br>col 2<br></td>
10
+ <td valign=top>And so<br>is this.<br></td>
11
+ <td valign=top>This is <br>row 2<br>col 2<br></td>
12
12
  </tr>
13
13
  </table>
Binary file
Binary file
@@ -14,7 +14,9 @@ This is
14
14
  only
15
15
  a test.
16
16
  .end
17
+
17
18
  .draw
19
+
18
20
  .save! somefile.jpg
19
21
 
20
22
 
@@ -1,6 +1,9 @@
1
1
  .mixin livemagick
2
2
 
3
- .nopass
3
+ . nopass
4
+ .nopara
5
+
6
+ Here goes...
4
7
 
5
8
  .image 400 400 skyblue
6
9
  .canvas green 1 0
@@ -9,12 +12,15 @@
9
12
 
10
13
  .rectangle 50,50 300x300 green 9
11
14
 
12
- .text! 0,150 400x200
15
+ .text! 0,100 400x200
13
16
  This is
14
17
  only
15
18
  a test.
16
19
  .end
17
20
  .draw
21
+
22
+ Writing the file...
23
+
18
24
  .save! myfile.jpg
19
25
 
20
26
 
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.34
4
+ version: 0.8.35
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-08 00:00:00.000000000 Z
11
+ date: 2018-07-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A smart text processor extensible in Ruby
14
14
  email: rubyhacker@gmail.com
@@ -127,11 +127,13 @@ files:
127
127
  - test/data/table_with_heredocs/expected-error.txt
128
128
  - test/data/table_with_heredocs/expected-output.txt
129
129
  - test/data/table_with_heredocs/source.lt3
130
+ - test/myfile.jpg
130
131
  - test/newtest
131
132
  - test/sdtest
133
+ - test/somefile.jpg
132
134
  - test/test.rb
133
- - test/try.lt
134
- - test/try2.lt
135
+ - test/try.lt3
136
+ - test/try2.lt3
135
137
  homepage: https://github.com/Hal9000/livetext
136
138
  licenses:
137
139
  - Ruby's license