content_block_tools 1.8.2 → 1.9.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d977934bc0c8fdd265b9af733158aa5d285fab4ce9f18f220a8cd694f2950f12
|
|
4
|
+
data.tar.gz: 1eaf12b48fde645d58848a946a2f42b248759b96c485089b722bd4345c7ba38c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bec57d99c8e40dcc9a135f2ee21b74109a89673dd9b602f81c18d12dd024dcbe5849c7e1bba2a01ea16e448fa1e5086c350fe0fe757d8684fb7f1fb2c2c2e5f7
|
|
7
|
+
data.tar.gz: 2b9c742f95d009920db595f0354f024933c03766683be12f3cc7d6f83832b8294153b1167af79f46f0ac11c4180dcddf6785f1be9443c94abca6bd184507c0fe
|
|
@@ -28,7 +28,14 @@ module ContentBlockTools
|
|
|
28
28
|
# @return [String]
|
|
29
29
|
class ContentBlockReference < Data
|
|
30
30
|
# An array of the supported document types
|
|
31
|
-
SUPPORTED_DOCUMENT_TYPES = %w[
|
|
31
|
+
SUPPORTED_DOCUMENT_TYPES = %w[
|
|
32
|
+
contact
|
|
33
|
+
content_block_pension
|
|
34
|
+
content_block_contact
|
|
35
|
+
content_block_tax
|
|
36
|
+
content_block_time_period
|
|
37
|
+
].freeze
|
|
38
|
+
|
|
32
39
|
# The regex used to find UUIDs
|
|
33
40
|
UUID_REGEX = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
|
|
34
41
|
# The regex used to find content ID aliases
|
data/lib/content_block_tools.rb
CHANGED
|
@@ -10,6 +10,7 @@ require "content_block_tools/helpers/override_classes"
|
|
|
10
10
|
|
|
11
11
|
require "content_block_tools/presenters/field_presenters/base_presenter"
|
|
12
12
|
require "content_block_tools/presenters/field_presenters/contact/email_presenter"
|
|
13
|
+
require "content_block_tools/presenters/field_presenters/time_period/date_presenter"
|
|
13
14
|
|
|
14
15
|
require "content_block_tools/content_block"
|
|
15
16
|
require "content_block_tools/content_block_reference"
|
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: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -194,6 +194,7 @@ files:
|
|
|
194
194
|
- lib/content_block_tools/helpers/override_classes.rb
|
|
195
195
|
- lib/content_block_tools/presenters/field_presenters/base_presenter.rb
|
|
196
196
|
- lib/content_block_tools/presenters/field_presenters/contact/email_presenter.rb
|
|
197
|
+
- lib/content_block_tools/presenters/field_presenters/time_period/date_presenter.rb
|
|
197
198
|
- lib/content_block_tools/version.rb
|
|
198
199
|
- node_modules/govuk-frontend/README.md
|
|
199
200
|
- node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js
|
|
@@ -1061,7 +1062,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1061
1062
|
- !ruby/object:Gem::Version
|
|
1062
1063
|
version: '0'
|
|
1063
1064
|
requirements: []
|
|
1064
|
-
rubygems_version: 4.0.
|
|
1065
|
+
rubygems_version: 4.0.6
|
|
1065
1066
|
specification_version: 4
|
|
1066
1067
|
summary: A suite of tools for working with GOV.UK Content Blocks
|
|
1067
1068
|
test_files: []
|