livetext 0.9.27 → 0.9.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.lt3 +3 -2
  3. data/lib/livetext/expansion.rb +106 -0
  4. data/lib/livetext/formatter.rb +104 -0
  5. data/lib/livetext/functions.rb +9 -0
  6. data/lib/livetext/helpers.rb +23 -18
  7. data/lib/livetext/html.rb +73 -0
  8. data/lib/livetext/more.rb +24 -4
  9. data/lib/livetext/parser/general.rb +1 -1
  10. data/lib/livetext/parser/set.rb +10 -3
  11. data/lib/livetext/processor.rb +5 -0
  12. data/lib/livetext/standard.rb +16 -6
  13. data/lib/livetext/userapi.rb +39 -16
  14. data/lib/livetext/version.rb +1 -1
  15. data/lib/livetext.rb +1 -1
  16. data/plugin/bootstrap_menu.rb +140 -0
  17. data/plugin/misc/navbar.rb +162 -0
  18. data/test/snapshots/basic_formatting/expected-output.txt +1 -2
  19. data/test/snapshots/{basic_formatting/actual-error.txt → bootstrap_menu/expected-error.txt} +0 -0
  20. data/test/snapshots/bootstrap_menu/expected-output.txt +4 -0
  21. data/test/snapshots/bootstrap_menu/source.lt3 +17 -0
  22. data/test/snapshots/subset.txt +50 -48
  23. data/test/unit/all.rb +2 -2
  24. data/test/unit/lineparser.rb +1 -1
  25. data/test/unit/parser/general.rb +2 -2
  26. data/test/unit/parser/set.rb +0 -9
  27. metadata +9 -32
  28. data/lib/livetext/funcall.rb +0 -87
  29. data/lib/livetext/lineparser.rb +0 -575
  30. data/test/snapshots/basic_formatting/actual-output.txt +0 -13
  31. data/test/snapshots/basic_formatting/err-sdiff.txt +0 -1
  32. data/test/snapshots/basic_formatting/out-sdiff.txt +0 -14
  33. data/test/snapshots/functions/actual-error.txt +0 -19
  34. data/test/snapshots/functions/actual-output.txt +0 -0
  35. data/test/snapshots/functions/err-sdiff.txt +0 -20
  36. data/test/snapshots/import_bookish/toc.tmp +0 -0
  37. data/test/snapshots/mixin_bookish/toc.tmp +0 -0
  38. data/test/snapshots/more_complex_vars/actual-error.txt +0 -0
  39. data/test/snapshots/more_complex_vars/actual-output.txt +0 -4
  40. data/test/snapshots/more_complex_vars/err-sdiff.txt +0 -1
  41. data/test/snapshots/more_complex_vars/out-sdiff.txt +0 -5
  42. data/test/snapshots/more_functions/actual-error.txt +0 -19
  43. data/test/snapshots/more_functions/actual-output.txt +0 -0
  44. data/test/snapshots/more_functions/err-sdiff.txt +0 -20
  45. data/test/snapshots/raw_lines/actual-error.txt +0 -22
  46. data/test/snapshots/raw_lines/actual-output.txt +0 -0
  47. data/test/snapshots/raw_lines/err-sdiff.txt +0 -23
  48. data/test/snapshots/simple_vars/actual-error.txt +0 -0
  49. data/test/snapshots/simple_vars/actual-output.txt +0 -6
  50. data/test/snapshots/simple_vars/err-sdiff.txt +0 -1
  51. data/test/snapshots/simple_vars/out-sdiff.txt +0 -7
  52. data/test/snapshots/var_into_func/actual-error.txt +0 -19
  53. data/test/snapshots/var_into_func/actual-output.txt +0 -0
  54. data/test/snapshots/var_into_func/err-sdiff.txt +0 -20
  55. data/test/snapshots/var_into_func/out-sdiff.txt +0 -17
  56. data/test/unit/tokenizer.rb +0 -535
@@ -1,20 +0,0 @@
1
- ACTUAL | EXPECTED
2
- /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparse <
3
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
4
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
5
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
6
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
7
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
8
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
9
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
10
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
11
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
12
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
13
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
14
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
15
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
16
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
17
- from ../../../bin/livetext:89:in `block in parse_co <
18
- from ../../../bin/livetext:75:in `loop' <
19
- from ../../../bin/livetext:75:in `parse_command_lin <
20
- from ../../../bin/livetext:106:in `<main>' <
@@ -1,22 +0,0 @@
1
- /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:123:in `grab_func_param': wrong number of arguments (given 0, expected 1) (ArgumentError)
2
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/funcall.rb:55:in `grab_func_with_param'
3
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/funcall.rb:63:in `double_dollar'
4
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:387:in `dollar'
5
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:235:in `grab_token'
6
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:247:in `block in tokenize'
7
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:245:in `loop'
8
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:245:in `tokenize'
9
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:45:in `parse!'
10
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/userapi.rb:122:in `format'
11
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/userapi.rb:39:in `data='
12
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/standard.rb:31:in `data='
13
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:151:in `get_name'
14
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:129:in `handle_dotcmd'
15
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:100:in `process_line'
16
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:86:in `block in process_file'
17
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:83:in `loop'
18
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:83:in `process_file'
19
- from ../../../bin/livetext:89:in `block in parse_command_line'
20
- from ../../../bin/livetext:75:in `loop'
21
- from ../../../bin/livetext:75:in `parse_command_line'
22
- from ../../../bin/livetext:106:in `<main>'
File without changes
@@ -1,23 +0,0 @@
1
- ACTUAL | EXPECTED
2
- /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparse <
3
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
4
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
5
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
6
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
7
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
8
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
9
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
10
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
11
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
12
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
13
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
14
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
15
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
16
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
17
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
18
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
19
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
20
- from ../../../bin/livetext:89:in `block in parse_co <
21
- from ../../../bin/livetext:75:in `loop' <
22
- from ../../../bin/livetext:75:in `parse_command_lin <
23
- from ../../../bin/livetext:106:in `<main>' <
File without changes
@@ -1,6 +0,0 @@
1
- Just
2
- some text.
3
- Hi, there.
4
- is my name, and is my nation.
5
- I'm , from
6
- That's all.
@@ -1 +0,0 @@
1
- ACTUAL | EXPECTED
@@ -1,7 +0,0 @@
1
- ACTUAL | EXPECTED
2
- Just Just
3
- some text. some text.
4
- Hi, there. Hi, there.
5
- is my name, and is my nation. | GulliverFoyle is my name, and Terra is my nation.
6
- I'm , from | I'm GulliverFoyle, from Terra.
7
- That's all. That's all.
@@ -1,19 +0,0 @@
1
- /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:123:in `grab_func_param': wrong number of arguments (given 0, expected 1) (ArgumentError)
2
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/funcall.rb:55:in `grab_func_with_param'
3
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/funcall.rb:63:in `double_dollar'
4
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:387:in `dollar'
5
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:235:in `grab_token'
6
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:247:in `block in tokenize'
7
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:245:in `loop'
8
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:245:in `tokenize'
9
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparser.rb:45:in `parse!'
10
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/userapi.rb:122:in `format'
11
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/userapi.rb:129:in `passthru'
12
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:104:in `process_line'
13
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:86:in `block in process_file'
14
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:83:in `loop'
15
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/helpers.rb:83:in `process_file'
16
- from ../../../bin/livetext:89:in `block in parse_command_line'
17
- from ../../../bin/livetext:75:in `loop'
18
- from ../../../bin/livetext:75:in `parse_command_line'
19
- from ../../../bin/livetext:106:in `<main>'
File without changes
@@ -1,20 +0,0 @@
1
- ACTUAL | EXPECTED
2
- /Users/Hal/Dropbox/topx/git/livetext/lib/livetext/lineparse <
3
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
4
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
5
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
6
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
7
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
8
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
9
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
10
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
11
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
12
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
13
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
14
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
15
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
16
- from /Users/Hal/Dropbox/topx/git/livetext/lib/livet <
17
- from ../../../bin/livetext:89:in `block in parse_co <
18
- from ../../../bin/livetext:75:in `loop' <
19
- from ../../../bin/livetext:75:in `parse_command_lin <
20
- from ../../../bin/livetext:106:in `<main>' <
@@ -1,17 +0,0 @@
1
- ACTUAL | EXPECTED
2
- <p> <p>
3
-
4
- Testing STILL more functions here... Testing STILL more functions here...
5
- <p> <p>
6
-
7
- <p> <p>
8
-
9
- Now... let's try passing a variable to a function. Will thi Now... let's try passing a variable to a function. Will thi
10
- <p> <p>
11
-
12
- Variable \regal is regal, which reversed is ahpla$ | Variable $alpha is regal, which reversed is lager
13
- <p> <p>
14
-
15
- That's all. That's all.
16
- <p> <p>
17
-