content_block_tools 0.1.0 → 0.2.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 +8 -0
- data/content_block_tools.gemspec +1 -1
- data/lib/content_block_tools/content_block_reference.rb +2 -2
- data/lib/content_block_tools/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72d0cc73cab7bbbf9d8634f8316a8dd14d90cf77192ef85bf8d35f9c66f4e705
|
4
|
+
data.tar.gz: e46058f351c418d5919b8e0ba6688589797449f5d08defd7247c1adb973fab2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3594112c9b365a31f6d880569b1ed9ac9b37b9c80afd1292aaf137ab4f153452c9fe0bb2afad9b45ce18cde5720e61eeb21bcd5499e1864bdb029b80144d4eb2
|
7
|
+
data.tar.gz: 1fd1986efb6f99fff56aca2cc8b25052b31904ab19a468c7f4ba68ca3df8be7e4f7ae1949105785dbc2aa1f2b7e259cece344a220d9030dc1e4b71ee5e608a8c
|
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.2.1
|
11
|
+
|
12
|
+
* Loosen ActionView dependency ([#7](https://github.com/alphagov/content_block_tools/pull/7))
|
13
|
+
|
14
|
+
## 0.2.0
|
15
|
+
|
16
|
+
* Don't `uniq` content references ([#6](https://github.com/alphagov/content_block_tools/pull/6))
|
17
|
+
|
10
18
|
## 0.1.0
|
11
19
|
|
12
20
|
* Initial release
|
data/content_block_tools.gemspec
CHANGED
@@ -38,9 +38,9 @@ module ContentBlockTools
|
|
38
38
|
#
|
39
39
|
# @return [Array<ContentBlockReference>] An array of content block references
|
40
40
|
def find_all_in_document(document)
|
41
|
-
document.scan(ContentBlockReference::EMBED_REGEX).map
|
41
|
+
document.scan(ContentBlockReference::EMBED_REGEX).map do |match|
|
42
42
|
ContentBlockReference.new(document_type: match[1], content_id: match[2], embed_code: match[0])
|
43
|
-
|
43
|
+
end
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: content_block_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -56,14 +56,20 @@ dependencies:
|
|
56
56
|
name: actionview
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '6'
|
62
|
+
- - "<"
|
60
63
|
- !ruby/object:Gem::Version
|
61
64
|
version: 7.2.2
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- -
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '6'
|
72
|
+
- - "<"
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: 7.2.2
|
69
75
|
description:
|