content_block_tools 0.12.1 → 0.12.2
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: 2a3d284308ecfac92b7c39739db61d4897edd0c185087aa5a307be162e663cc0
|
4
|
+
data.tar.gz: 276d0984c5e5c15b2cebcd1a8cf1beb8ad1a92571ab5b087917ad1fb65e90851
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 866336c803901cad6a3328343db12db865ba2e256802702f85364fa66f589747a62dee09af69dd34af8969ee381c44cb5b933c0774bba29f2c84a55eb1f01161
|
7
|
+
data.tar.gz: d2db11eebab075a70f9b688954cb1b341317284100470fefaf9a7e746ae0c80d69342c307208a089903e3c588974a6bae5630e469458cc7ea2c92a16e9e5b6ae
|
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.12.2
|
11
|
+
|
12
|
+
- Add escape character to silence warnings ([65](https://github.com/alphagov/govuk_content_block_tools/pull/65))
|
13
|
+
|
10
14
|
## 0.12.1
|
11
15
|
|
12
16
|
- Fix when content block codes include special dashes ([64](https://github.com/alphagov/govuk_content_block_tools/pull/64))
|
@@ -32,7 +32,7 @@ module ContentBlockTools
|
|
32
32
|
# The regex used to find UUIDs
|
33
33
|
UUID_REGEX = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
|
34
34
|
# The regex used to find content ID aliases
|
35
|
-
CONTENT_ID_ALIAS_REGEX = /[a-z0-9
|
35
|
+
CONTENT_ID_ALIAS_REGEX = /[a-z0-9\-–—]+/
|
36
36
|
# The regex to find optional field names after the UUID, begins with '/'
|
37
37
|
FIELD_REGEX = /(\/[a-z0-9_\-–—\/]*)?/
|
38
38
|
# The regex used when scanning a document using {ContentBlockTools::ContentBlockReference.find_all_in_document}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: content_block_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
|
-
rubygems_version: 3.7.
|
153
|
+
rubygems_version: 3.7.1
|
154
154
|
specification_version: 4
|
155
155
|
summary: A suite of tools for working with GOV.UK Content Blocks
|
156
156
|
test_files: []
|