easol-canvas 4.15.0 → 4.17.0

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: 84d14b38c1952d8b9e0a1d0485bea5d83e73dda33ec78a6c4d36903592332af6
4
- data.tar.gz: 5f9dcc3b134dd4a8a4a2aaa5c3381673ddc379719c4c89bfea9c58e0d73d983e
3
+ metadata.gz: 2396c564e638650f1f50b0f81e6b79bc9cc3020304f559f1b050034721056d58
4
+ data.tar.gz: ebfb662861d72d0e7c9777343ee8aee6330f348dc132575d4ca4081c0f7249d4
5
5
  SHA512:
6
- metadata.gz: f50d6786e70abf0af920bf65322c70f87756d80a5da665ee30397176ef206707482f4989e0129832c9d6a534918b96cadca21a2c936b801df694d8eb9873761b
7
- data.tar.gz: 21956a5f4972ff2cc456c7cf8ccf466ecd564bf71bca21a3ee0537e0d4b60727df4ca2d9ce03795387834b73e3209e67db51b467eba5f5e77f4835660c8552f8
6
+ metadata.gz: a64ab47a1802570ed45ff6a524cd1648a9025b7082a290814049aaec927c363a952299d4e15a311b826735301d95c79cfcb036ff5a1c1cf635f5a989d99e878e
7
+ data.tar.gz: 365bb2ee7c14ff920f6a15558a01c25cc492814616299ab8159f88a9effd36f645a92566e4a5ad0f10ddf0ff3a4880c56c198e251906f47775bced5a13614b9f
@@ -31,10 +31,13 @@ module Canvas
31
31
  end
32
32
 
33
33
  # We want to strip out the liquid tags and replace them with the
34
- # same number of empty space characters, so that the linter
35
- # reports the correct character number.
34
+ # same number of characters, so that the linter reports the
35
+ # correct character number.
36
36
  def strip_out_liquid(html)
37
- html.gsub(LIQUID_TAG_OR_VARIABLE) { |tag| " " * tag.size }
37
+ # First replace liquid tags with spaces
38
+ html = html.gsub(LIQUID_TAG) { |tag| " " * tag.size }
39
+ # Then replace liquid variables with x's
40
+ html.gsub(LIQUID_VARIABLE) { |var| "x" * var.size }
38
41
  end
39
42
 
40
43
  # We want to strip out the front matter and replace it
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Canvas
4
- VERSION = "4.15.0"
4
+ VERSION = "4.17.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easol-canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.15.0
4
+ version: 4.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Byrne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-03-31 00:00:00.000000000 Z
12
+ date: 2025-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor