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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b2250e28df1b29cef0afb4bb989a7631b421b61aff2a6a4ca7a4a99784ea6f5
4
- data.tar.gz: d1aada2c93dee25e57a9a99770637ac1bf5c76c7e5064ebfd6de0a9779c041e2
3
+ metadata.gz: 517b0f6358d83303a3e6e7536b9a16abd4a71cf9ef1649faf6abd21443fe652d
4
+ data.tar.gz: b43125b452393abea79914d54a2f73e7d77791891ed3e14cde8ad51e2bdb44ce
5
5
  SHA512:
6
- metadata.gz: 0d6b391cda5acf241e452eadee0533a0929622dde953eb44fd32cadfd1a1c8c469a0b820370af157eca3f5128636127d6171fc57a6002e532e03e24d03982656
7
- data.tar.gz: 97806263c82dfb98af8105c19e017dde5b3d4a426c85384c2368d7b2df1b4e9f396bc9236844b7fff77e3fd264c0aa77ccb17e10fa96d5fa4a658f7e39ec2475
6
+ metadata.gz: cb9e73f9e4d4281d3ce190258bf744150176ac09c2f0e980b920f185a583015fdd3a5b64180fa0c07b6970f04f8c0eba49840495b35291846bd86e0e57dcf3d7
7
+ data.tar.gz: ac5e8e247415a01107fee4cc12358559eafc698ac2e5c1ffdd5ee6cc01e6c7cca54d5b9eb44fdc589a8ce692fd36367103125571d5cff038a10b6cabe27ca4ac
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 6.3.0
1
+ 6.3.1
data/lib/VERSION_NOTES CHANGED
@@ -1,3 +1,7 @@
1
+ 6.3.1 - 2026.09.01
2
+ - Fixes issue with MD in a text block (# ignored as comments)
3
+
4
+
1
5
  6.3.0 - 2026.08.31
2
6
  - Adds option to load a library at the top of a script that includes types from that lib.
3
7
 
@@ -58,7 +58,9 @@ module Gloo
58
58
  f = join_continuations( f )
59
59
 
60
60
  f.each_line do |line|
61
- next if skip_line? line
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] :
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.0
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane