content_block_tools 0.12.1 → 0.12.3

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: d0c58a0d3ef7154dbb64562eb49e195b35d092aa8253ae4a78281ac82969a0d2
4
- data.tar.gz: b30e824dc93f731ce4f76feb81d4893405214c735c1c54988ddf45f3f6c7a20d
3
+ metadata.gz: ffcf86d3e5ce3ef453816f71cf7885cdce734a7209aa637daecd68bbf9e06d87
4
+ data.tar.gz: 34588cff605b66d7c0c990b895563a887566a64e286ab0e7a697db055c502006
5
5
  SHA512:
6
- metadata.gz: d7cb23a7de08bd50f54066cccd6e2d3869030745e896d62e8f4d6b8aa48886971a1c313d7328de45d42457250752af7fd018049feda48f4c315d943867423b69
7
- data.tar.gz: 63ac67b402438f97f09655c96be96a561e5e59c566a19ead87e8c42e55365fec94b5e8ddbefb368d3e10e68d63c271104acaf50a55de98cb96992a73ca959ff8
6
+ metadata.gz: bd5e069d2e1bff4cf850a21c210acb1953e452e072c201a72149d1f558a8d0c85143c21ed5ebd793c153176849cfdcc932307d918703a2d7881aafaa7c58c764
7
+ data.tar.gz: 52dca047764a2d73e44596c46ae540c73f245525bdb6a9ad890bd789520784b75081a43eaee4abdfd905de6eb00306c1611c12f1d00fceaa1a426f6e68b379af
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.12.3
11
+
12
+ - Only replace special dashes in identifiers ([69](https://github.com/alphagov/govuk_content_block_tools/pull/69))
13
+
14
+ ## 0.12.2
15
+
16
+ - Add escape character to silence warnings ([65](https://github.com/alphagov/govuk_content_block_tools/pull/65))
17
+
10
18
  ## 0.12.1
11
19
 
12
20
  - 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}
@@ -65,7 +65,7 @@ module ContentBlockTools
65
65
  # triple dashes with em dashes
66
66
  def prepare_match(match)
67
67
  [
68
- replace_dashes(match[0]),
68
+ match[0],
69
69
  match[1],
70
70
  replace_dashes(match[2]),
71
71
  match[3],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentBlockTools
4
- VERSION = "0.12.1"
4
+ VERSION = "0.12.3"
5
5
  end
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.1
4
+ version: 0.12.3
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.0
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: []