content_block_tools 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efd943f4be9e4e03e81aa3303b2bb61e503bfa104ff026ac8b8cea07235b4b46
|
4
|
+
data.tar.gz: 322186e3603ee524727b94f2a8da3d42fc9f961fd2d072266d82cdd2240d6d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216e1a3f218bec821d23cb7ba310b9e1d96162f2e0e24bade0edc00fe030e4990aa6167774ad9ac103d9cf435ebcacdc85e427d6e3b803c9e3ddc4486e639a98
|
7
|
+
data.tar.gz: 23a471d39e89bd2f92b67871acd0140e37170f76d803e8b240fb225891ed28d7f944c132b0c83a5ce1b07e299df3dea193b4f80e104b84ab4353b85c97c279c5
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,14 @@
|
|
7
7
|
useful summary for people upgrading their application, not a replication
|
8
8
|
of the commit log.
|
9
9
|
|
10
|
+
## 0.4.2
|
11
|
+
|
12
|
+
* Pass embed code to HTML span ([19](https://github.com/alphagov/govuk_content_block_tools/pull/19))
|
13
|
+
|
14
|
+
## 0.4.1
|
15
|
+
|
16
|
+
* Fix field regular expression ([18](https://github.com/alphagov/govuk_content_block_tools/pull/18))
|
17
|
+
|
10
18
|
## 0.4.0
|
11
19
|
|
12
20
|
* 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.2
|
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
|