content_block_tools 0.1.0 → 0.2.0

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: 6c3860de2e12b78fe21a796a9151350c6389737fd2083b444f9633f831e76c8c
4
+ data.tar.gz: 60d3c9f141cef31750317b1e47955b9a98a42036b82216d1a862f2ce5a815e92
5
5
  SHA512:
6
- metadata.gz: 62f995e4d2520741e4a4cbe83a2e9083bbcbfd592a6acdc4352f7e27fdd964949bd90c1615965d70fa22dc93b62c5f0e9fccaa8a1de5ea5b444d37b08aaf4b92
7
- data.tar.gz: 664d55f226662f74055c421409244ded66fd2b207c4915b7bbbd49593a2c7fc6c1e90043befed4302f51f7d4d3bfbe52d12d493c7bd560a8dbb369bb31541357
6
+ metadata.gz: 86ed8cab284f79cc095cf142a55e2272196a3216794b26119a008f19d39e8922cb92a20e13305281623e2d8943a7460e3e25360d92d9211ef3871587d9d0651f
7
+ data.tar.gz: 4ca094c77d96446f1fda790478fc2637ba7ae064e67459357d6aedc2441aa80076c1dbc49816550869b475519de19ffc61dd118f13b61219fdcc0274be5bfdd6
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.2.0
11
+
12
+ * Don't `uniq` content references ([#6](https://github.com/alphagov/content_block_tools/pull/6))
13
+
10
14
  ## 0.1.0
11
15
 
12
16
  * Initial release
@@ -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.0"
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.0
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