content_block_tools 0.4.0 → 0.4.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/CHANGELOG.md +4 -0
- data/lib/content_block_tools/content_block_reference.rb +1 -1
- 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: 18b58df1f935b54e55beaaa53766a00ba74ba07b9233459a00b82e155d13d25b
|
4
|
+
data.tar.gz: 49971e740aae00d280477c88329a73653e38ea223e412c18749fe1f493b6213f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a67d4af7d37f6c95571691356da0e3e8c463e5e01c3ea3c35b9626542eedddc5bb0bd3baa304f713095ac188380e653e567adce4473baec09d3340cacbf56197
|
7
|
+
data.tar.gz: 43ccfa780acdf748532762a00523febd21c02cecf48bef34ae1add7af8d368774f7f5c2a83aa02f98a9365a62d341953758310d65f79aee466f963813ceadcae
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@
|
|
7
7
|
useful summary for people upgrading their application, not a replication
|
8
8
|
of the commit log.
|
9
9
|
|
10
|
+
## 0.4.1
|
11
|
+
|
12
|
+
* Fix field regular expression ([18](https://github.com/alphagov/govuk_content_block_tools/pull/18))
|
13
|
+
|
10
14
|
## 0.4.0
|
11
15
|
|
12
16
|
* BREAKING: allow support for field names in block's embed code. new ContentBlocks now require an embed code argument. (
|
@@ -30,7 +30,7 @@ module ContentBlockTools
|
|
30
30
|
# The regex used to find UUIDs
|
31
31
|
UUID_REGEX = /([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/
|
32
32
|
# The regex to find optional field names after the UUID, begins with '/'
|
33
|
-
FIELD_REGEX = /(
|
33
|
+
FIELD_REGEX = /(\/[a-z0-9_\-\/]*)?/
|
34
34
|
# The regex used when scanning a document using {ContentBlockTools::ContentBlockReference.find_all_in_document}
|
35
35
|
EMBED_REGEX = /({{embed:(#{SUPPORTED_DOCUMENT_TYPES.join('|')}):#{UUID_REGEX}#{FIELD_REGEX}}})/
|
36
36
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: content_block_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-06 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|