content_block_tools 0.1.0 → 0.2.1

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: 342e7145710ce25e142f4b22f5b16ec7d974a205bd0f7ee2926c992b6687ebc0
4
- data.tar.gz: 5a0df078972acd5e743b9b50bcd98d4297b0ac0f1a4f0b5d4f51962981012498
3
+ metadata.gz: 72d0cc73cab7bbbf9d8634f8316a8dd14d90cf77192ef85bf8d35f9c66f4e705
4
+ data.tar.gz: e46058f351c418d5919b8e0ba6688589797449f5d08defd7247c1adb973fab2a
5
5
  SHA512:
6
- metadata.gz: 62f995e4d2520741e4a4cbe83a2e9083bbcbfd592a6acdc4352f7e27fdd964949bd90c1615965d70fa22dc93b62c5f0e9fccaa8a1de5ea5b444d37b08aaf4b92
7
- data.tar.gz: 664d55f226662f74055c421409244ded66fd2b207c4915b7bbbd49593a2c7fc6c1e90043befed4302f51f7d4d3bfbe52d12d493c7bd560a8dbb369bb31541357
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
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "rspec", "3.13.0"
30
30
  spec.add_development_dependency "rubocop-govuk", "5.0.2"
31
31
 
32
- spec.add_dependency "actionview", "7.2.2"
32
+ spec.add_dependency "actionview", ">= 6", "< 7.2.2"
33
33
  end
@@ -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 { |match|
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
- }.uniq
43
+ end
44
44
  end
45
45
  end
46
46
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentBlockTools
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.1"
5
5
  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.0
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-19 00:00:00.000000000 Z
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: