livetext 0.5.2 → 0.5.3

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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/bin/livetext +20 -0
  3. data/lib/bookish.rb +212 -0
  4. data/lib/calibre.rb +24 -0
  5. data/lib/liveblog.rb +195 -0
  6. data/lib/livemagick.rb +131 -0
  7. data/lib/livetext.rb +605 -0
  8. data/lib/markdown.rb +30 -0
  9. data/lib/pyggish.rb +194 -0
  10. data/lib/tutorial.rb +89 -0
  11. data/livetext-0.5.2.gem +0 -0
  12. data/livetext.gemspec +99 -4
  13. data/test/cleanup +1 -0
  14. data/test/newtest +10 -0
  15. data/test/rawtext.inc +4 -0
  16. data/test/simple_mixin.rb +3 -0
  17. data/test/simplefile.inc +2 -0
  18. data/test/test.rb +77 -0
  19. data/test/testfiles/basic_formatting/expected-error.txt +0 -0
  20. data/test/testfiles/basic_formatting/expected-output.txt +10 -0
  21. data/test/testfiles/basic_formatting/source.ltx +8 -0
  22. data/test/testfiles/block_comment/expected-error.txt +0 -0
  23. data/test/testfiles/block_comment/expected-output.txt +5 -0
  24. data/test/testfiles/block_comment/source.ltx +19 -0
  25. data/test/testfiles/comments_ignored_1/expected-error.txt +0 -0
  26. data/test/testfiles/comments_ignored_1/expected-output.txt +4 -0
  27. data/test/testfiles/comments_ignored_1/source.ltx +7 -0
  28. data/test/testfiles/copy_is_raw/expected-error.txt +0 -0
  29. data/test/testfiles/copy_is_raw/expected-output.txt +7 -0
  30. data/test/testfiles/copy_is_raw/source.ltx +4 -0
  31. data/test/testfiles/def_method/expected-error.txt +2 -0
  32. data/test/testfiles/def_method/expected-output.txt +5 -0
  33. data/test/testfiles/def_method/source.ltx +10 -0
  34. data/test/testfiles/example_alpha/expected-error.txt +0 -0
  35. data/test/testfiles/example_alpha/expected-output.txt +23 -0
  36. data/test/testfiles/example_alpha/source.ltx +17 -0
  37. data/test/testfiles/example_alpha2/expected-error.txt +0 -0
  38. data/test/testfiles/example_alpha2/expected-output.txt +12 -0
  39. data/test/testfiles/example_alpha2/source.ltx +24 -0
  40. data/test/testfiles/fixit +6 -0
  41. data/test/testfiles/functions/expected-error.txt +0 -0
  42. data/test/testfiles/functions/expected-output.txt +8 -0
  43. data/test/testfiles/functions/source.ltx +11 -0
  44. data/test/testfiles/hello_world/expected-error.txt +0 -0
  45. data/test/testfiles/hello_world/expected-output.txt +2 -0
  46. data/test/testfiles/hello_world/source.ltx +2 -0
  47. data/test/testfiles/more_complex_vars/expected-error.txt +0 -0
  48. data/test/testfiles/more_complex_vars/expected-output.txt +4 -0
  49. data/test/testfiles/more_complex_vars/source.ltx +5 -0
  50. data/test/testfiles/raw_text_block/expected-error.txt +0 -0
  51. data/test/testfiles/raw_text_block/expected-output.txt +14 -0
  52. data/test/testfiles/raw_text_block/source.ltx +16 -0
  53. data/test/testfiles/sigil_can_change/expected-error.txt +0 -0
  54. data/test/testfiles/sigil_can_change/expected-output.txt +6 -0
  55. data/test/testfiles/sigil_can_change/source.ltx +11 -0
  56. data/test/testfiles/simple_copy/expected-error.txt +0 -0
  57. data/test/testfiles/simple_copy/expected-output.txt +7 -0
  58. data/test/testfiles/simple_copy/source.ltx +6 -0
  59. data/test/testfiles/simple_include/expected-error.txt +0 -0
  60. data/test/testfiles/simple_include/expected-output.txt +7 -0
  61. data/test/testfiles/simple_include/source.ltx +6 -0
  62. data/test/testfiles/simple_mixin/expected-error.txt +0 -0
  63. data/test/testfiles/simple_mixin/expected-output.txt +5 -0
  64. data/test/testfiles/simple_mixin/source.ltx +6 -0
  65. data/test/testfiles/simple_vars/expected-error.txt +0 -0
  66. data/test/testfiles/simple_vars/expected-output.txt +6 -0
  67. data/test/testfiles/simple_vars/source.ltx +7 -0
  68. data/test/testfiles/single_raw_line/expected-error.txt +0 -0
  69. data/test/testfiles/single_raw_line/expected-output.txt +10 -0
  70. data/test/testfiles/single_raw_line/source.ltx +8 -0
  71. metadata +76 -9
  72. data/dlt +0 -1
@@ -0,0 +1,6 @@
1
+ Here I am
2
+ trying to
3
+ include
4
+ .include test/simplefile.inc
5
+ I hope that
6
+ worked.
File without changes
@@ -0,0 +1,5 @@
1
+ Here I am
2
+ testing a simple mixin
3
+ Now call it:
4
+ Hello, world.
5
+ That's all.
@@ -0,0 +1,6 @@
1
+ Here I am
2
+ testing a simple mixin
3
+ .mixin test/simple_mixin
4
+ Now call it:
5
+ .hello_world
6
+ That's all.
File without changes
@@ -0,0 +1,6 @@
1
+ Just
2
+ some text.
3
+ Hi, there.
4
+ GulliverFoyle is my name, and Terra is my nation.
5
+ I'm GulliverFoyle, from Terra.
6
+ That's all.
@@ -0,0 +1,7 @@
1
+ Just
2
+ some text.
3
+ .set name=GulliverFoyle,nation=Terra
4
+ Hi, there.
5
+ $name is my name, and $nation is my nation.
6
+ I'm $name, from $nation.
7
+ That's all.
File without changes
@@ -0,0 +1,10 @@
1
+ The .r can be used to output single lines
2
+ without interpretation:
3
+ <p>
4
+
5
+ .comment This is not a real comment.
6
+ This is not _italics or *boldface
7
+ This is not a $variable reference
8
+ <p>
9
+
10
+ That's all.
@@ -0,0 +1,8 @@
1
+ The .r can be used to output single lines
2
+ without interpretation:
3
+
4
+ .r .comment This is not a real comment.
5
+ .r This is not _italics or *boldface
6
+ .r This is not a $variable reference
7
+
8
+ That's all.
metadata CHANGED
@@ -1,27 +1,94 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livetext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-03 00:00:00.000000000 Z
11
+ date: 2017-02-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A smart processor for text
13
+ description: A smart text processor extensible in Ruby
14
14
  email: rubyhacker@gmail.com
15
15
  executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - README.html
20
- - README.ltx
21
- - README.md
22
- - dlt
23
- - livetext.gemspec
24
- - notes.txt
19
+ - "./README.html"
20
+ - "./README.ltx"
21
+ - "./README.md"
22
+ - "./bin/livetext"
23
+ - "./lib/bookish.rb"
24
+ - "./lib/calibre.rb"
25
+ - "./lib/liveblog.rb"
26
+ - "./lib/livemagick.rb"
27
+ - "./lib/livetext.rb"
28
+ - "./lib/markdown.rb"
29
+ - "./lib/pyggish.rb"
30
+ - "./lib/tutorial.rb"
31
+ - "./livetext-0.5.2.gem"
32
+ - "./livetext.gemspec"
33
+ - "./notes.txt"
34
+ - "./test/cleanup"
35
+ - "./test/newtest"
36
+ - "./test/rawtext.inc"
37
+ - "./test/simple_mixin.rb"
38
+ - "./test/simplefile.inc"
39
+ - "./test/test.rb"
40
+ - "./test/testfiles/basic_formatting/expected-error.txt"
41
+ - "./test/testfiles/basic_formatting/expected-output.txt"
42
+ - "./test/testfiles/basic_formatting/source.ltx"
43
+ - "./test/testfiles/block_comment/expected-error.txt"
44
+ - "./test/testfiles/block_comment/expected-output.txt"
45
+ - "./test/testfiles/block_comment/source.ltx"
46
+ - "./test/testfiles/comments_ignored_1/expected-error.txt"
47
+ - "./test/testfiles/comments_ignored_1/expected-output.txt"
48
+ - "./test/testfiles/comments_ignored_1/source.ltx"
49
+ - "./test/testfiles/copy_is_raw/expected-error.txt"
50
+ - "./test/testfiles/copy_is_raw/expected-output.txt"
51
+ - "./test/testfiles/copy_is_raw/source.ltx"
52
+ - "./test/testfiles/def_method/expected-error.txt"
53
+ - "./test/testfiles/def_method/expected-output.txt"
54
+ - "./test/testfiles/def_method/source.ltx"
55
+ - "./test/testfiles/example_alpha/expected-error.txt"
56
+ - "./test/testfiles/example_alpha/expected-output.txt"
57
+ - "./test/testfiles/example_alpha/source.ltx"
58
+ - "./test/testfiles/example_alpha2/expected-error.txt"
59
+ - "./test/testfiles/example_alpha2/expected-output.txt"
60
+ - "./test/testfiles/example_alpha2/source.ltx"
61
+ - "./test/testfiles/fixit"
62
+ - "./test/testfiles/functions/expected-error.txt"
63
+ - "./test/testfiles/functions/expected-output.txt"
64
+ - "./test/testfiles/functions/source.ltx"
65
+ - "./test/testfiles/hello_world/expected-error.txt"
66
+ - "./test/testfiles/hello_world/expected-output.txt"
67
+ - "./test/testfiles/hello_world/source.ltx"
68
+ - "./test/testfiles/more_complex_vars/expected-error.txt"
69
+ - "./test/testfiles/more_complex_vars/expected-output.txt"
70
+ - "./test/testfiles/more_complex_vars/source.ltx"
71
+ - "./test/testfiles/raw_text_block/expected-error.txt"
72
+ - "./test/testfiles/raw_text_block/expected-output.txt"
73
+ - "./test/testfiles/raw_text_block/source.ltx"
74
+ - "./test/testfiles/sigil_can_change/expected-error.txt"
75
+ - "./test/testfiles/sigil_can_change/expected-output.txt"
76
+ - "./test/testfiles/sigil_can_change/source.ltx"
77
+ - "./test/testfiles/simple_copy/expected-error.txt"
78
+ - "./test/testfiles/simple_copy/expected-output.txt"
79
+ - "./test/testfiles/simple_copy/source.ltx"
80
+ - "./test/testfiles/simple_include/expected-error.txt"
81
+ - "./test/testfiles/simple_include/expected-output.txt"
82
+ - "./test/testfiles/simple_include/source.ltx"
83
+ - "./test/testfiles/simple_mixin/expected-error.txt"
84
+ - "./test/testfiles/simple_mixin/expected-output.txt"
85
+ - "./test/testfiles/simple_mixin/source.ltx"
86
+ - "./test/testfiles/simple_vars/expected-error.txt"
87
+ - "./test/testfiles/simple_vars/expected-output.txt"
88
+ - "./test/testfiles/simple_vars/source.ltx"
89
+ - "./test/testfiles/single_raw_line/expected-error.txt"
90
+ - "./test/testfiles/single_raw_line/expected-output.txt"
91
+ - "./test/testfiles/single_raw_line/source.ltx"
25
92
  homepage: https://github.com/Hal9000/livetext
26
93
  licenses:
27
94
  - Ruby's
data/dlt DELETED
@@ -1 +0,0 @@
1
- cp livetext* liveblog* bookish.rb pyggish.rb calibre.rb ~/bin