content_block_tools 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/content_block_tools/content_block_reference.rb +2 -2
- data/lib/content_block_tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c3860de2e12b78fe21a796a9151350c6389737fd2083b444f9633f831e76c8c
|
4
|
+
data.tar.gz: 60d3c9f141cef31750317b1e47955b9a98a42036b82216d1a862f2ce5a815e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86ed8cab284f79cc095cf142a55e2272196a3216794b26119a008f19d39e8922cb92a20e13305281623e2d8943a7460e3e25360d92d9211ef3871587d9d0651f
|
7
|
+
data.tar.gz: 4ca094c77d96446f1fda790478fc2637ba7ae064e67459357d6aedc2441aa80076c1dbc49816550869b475519de19ffc61dd118f13b61219fdcc0274be5bfdd6
|
data/CHANGELOG.md
CHANGED
@@ -38,9 +38,9 @@ module ContentBlockTools
|
|
38
38
|
#
|
39
39
|
# @return [Array<ContentBlockReference>] An array of content block references
|
40
40
|
def find_all_in_document(document)
|
41
|
-
document.scan(ContentBlockReference::EMBED_REGEX).map
|
41
|
+
document.scan(ContentBlockReference::EMBED_REGEX).map do |match|
|
42
42
|
ContentBlockReference.new(document_type: match[1], content_id: match[2], embed_code: match[0])
|
43
|
-
|
43
|
+
end
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: content_block_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|