livetext 0.9.27 → 0.9.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.lt3 +3 -2
- data/lib/livetext/expansion.rb +106 -0
- data/lib/livetext/formatter.rb +104 -0
- data/lib/livetext/functions.rb +9 -0
- data/lib/livetext/helpers.rb +23 -18
- data/lib/livetext/html.rb +73 -0
- data/lib/livetext/more.rb +24 -4
- data/lib/livetext/parser/general.rb +1 -1
- data/lib/livetext/parser/set.rb +10 -3
- data/lib/livetext/processor.rb +5 -0
- data/lib/livetext/standard.rb +16 -6
- data/lib/livetext/userapi.rb +39 -16
- data/lib/livetext/version.rb +1 -1
- data/lib/livetext.rb +1 -1
- data/plugin/bootstrap_menu.rb +140 -0
- data/plugin/misc/navbar.rb +162 -0
- data/test/snapshots/basic_formatting/expected-output.txt +1 -2
- data/test/snapshots/{basic_formatting/actual-error.txt → bootstrap_menu/expected-error.txt} +0 -0
- data/test/snapshots/bootstrap_menu/expected-output.txt +4 -0
- data/test/snapshots/bootstrap_menu/source.lt3 +17 -0
- data/test/snapshots/subset.txt +50 -48
- data/test/unit/all.rb +2 -2
- data/test/unit/lineparser.rb +1 -1
- data/test/unit/parser/general.rb +2 -2
- data/test/unit/parser/set.rb +0 -9
- metadata +9 -32
- data/lib/livetext/funcall.rb +0 -87
- data/lib/livetext/lineparser.rb +0 -575
- data/test/snapshots/basic_formatting/actual-output.txt +0 -13
- data/test/snapshots/basic_formatting/err-sdiff.txt +0 -1
- data/test/snapshots/basic_formatting/out-sdiff.txt +0 -14
- data/test/snapshots/functions/actual-error.txt +0 -19
- data/test/snapshots/functions/actual-output.txt +0 -0
- data/test/snapshots/functions/err-sdiff.txt +0 -20
- data/test/snapshots/import_bookish/toc.tmp +0 -0
- data/test/snapshots/mixin_bookish/toc.tmp +0 -0
- data/test/snapshots/more_complex_vars/actual-error.txt +0 -0
- data/test/snapshots/more_complex_vars/actual-output.txt +0 -4
- data/test/snapshots/more_complex_vars/err-sdiff.txt +0 -1
- data/test/snapshots/more_complex_vars/out-sdiff.txt +0 -5
- data/test/snapshots/more_functions/actual-error.txt +0 -19
- data/test/snapshots/more_functions/actual-output.txt +0 -0
- data/test/snapshots/more_functions/err-sdiff.txt +0 -20
- data/test/snapshots/raw_lines/actual-error.txt +0 -22
- data/test/snapshots/raw_lines/actual-output.txt +0 -0
- data/test/snapshots/raw_lines/err-sdiff.txt +0 -23
- data/test/snapshots/simple_vars/actual-error.txt +0 -0
- data/test/snapshots/simple_vars/actual-output.txt +0 -6
- data/test/snapshots/simple_vars/err-sdiff.txt +0 -1
- data/test/snapshots/simple_vars/out-sdiff.txt +0 -7
- data/test/snapshots/var_into_func/actual-error.txt +0 -19
- data/test/snapshots/var_into_func/actual-output.txt +0 -0
- data/test/snapshots/var_into_func/err-sdiff.txt +0 -20
- data/test/snapshots/var_into_func/out-sdiff.txt +0 -17
- 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 +0,0 @@
|
|
1
|
-
ACTUAL | EXPECTED
|
@@ -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
|
-
|