gloo 6.3.0 → 6.3.1
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/VERSION_NOTES +4 -0
- data/lib/gloo/persist/file_loader.rb +3 -1
- data/test.gloo/objs/text.test.gloo +22 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 517b0f6358d83303a3e6e7536b9a16abd4a71cf9ef1649faf6abd21443fe652d
|
|
4
|
+
data.tar.gz: b43125b452393abea79914d54a2f73e7d77791891ed3e14cde8ad51e2bdb44ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb9e73f9e4d4281d3ce190258bf744150176ac09c2f0e980b920f185a583015fdd3a5b64180fa0c07b6970f04f8c0eba49840495b35291846bd86e0e57dcf3d7
|
|
7
|
+
data.tar.gz: ac5e8e247415a01107fee4cc12358559eafc698ac2e5c1ffdd5ee6cc01e6c7cca54d5b9eb44fdc589a8ce692fd36367103125571d5cff038a10b6cabe27ca4ac
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.3.
|
|
1
|
+
6.3.1
|
data/lib/VERSION_NOTES
CHANGED
|
@@ -58,7 +58,9 @@ module Gloo
|
|
|
58
58
|
f = join_continuations( f )
|
|
59
59
|
|
|
60
60
|
f.each_line do |line|
|
|
61
|
-
|
|
61
|
+
# Inside a BEGIN/END block every line is literal content -
|
|
62
|
+
# don't skip blank lines or lines that start with '#'.
|
|
63
|
+
next if !@in_block && skip_line?( line )
|
|
62
64
|
|
|
63
65
|
if !@body_started && line =~ LIB_DIRECTIVE
|
|
64
66
|
run_lib_directive line
|
|
@@ -12,6 +12,14 @@ tests [can] :
|
|
|
12
12
|
three 3 tree
|
|
13
13
|
END
|
|
14
14
|
|
|
15
|
+
# inside a block every line is literal - '#' lines and blank
|
|
16
|
+
# lines are kept, not treated as comments/blanks
|
|
17
|
+
hashed [text] : BEGIN
|
|
18
|
+
# a heading
|
|
19
|
+
|
|
20
|
+
- a list item
|
|
21
|
+
END
|
|
22
|
+
|
|
15
23
|
b [string] :
|
|
16
24
|
|
|
17
25
|
verify_text [test] :
|
|
@@ -56,12 +64,25 @@ tests [can] :
|
|
|
56
64
|
assert "expected text to have 5 words"
|
|
57
65
|
|
|
58
66
|
count_lines [test] :
|
|
59
|
-
description [string] : Get the number of lines
|
|
67
|
+
description [string] : Get the number of lines
|
|
60
68
|
on_test [script] :
|
|
61
69
|
tell ^^.a to count_lines
|
|
62
70
|
eval it = 3
|
|
63
71
|
assert "expected text to have 3 lines"
|
|
64
72
|
|
|
73
|
+
block_keeps_hash_and_blank_lines [test] :
|
|
74
|
+
description [string] : a BEGIN/END block keeps '#' lines and blank lines verbatim
|
|
75
|
+
on_test [script] :
|
|
76
|
+
check ^^.hashed for substring? ( "# a heading" )
|
|
77
|
+
assert "expected the '#' line to be kept, not stripped as a comment"
|
|
78
|
+
|
|
79
|
+
check ^^.hashed for substring? ( "- a list item" )
|
|
80
|
+
assert "expected content after the blank line to be kept"
|
|
81
|
+
|
|
82
|
+
tell ^^.hashed to count_lines
|
|
83
|
+
eval it = 3
|
|
84
|
+
assert "expected 3 lines: heading, blank, list item"
|
|
85
|
+
|
|
65
86
|
starts_with [test] :
|
|
66
87
|
description [string] : Check if the string starts with a value
|
|
67
88
|
on_test [script] :
|