content_block_tools 0.16.0 → 0.17.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: dc5c252953a643976df3b67edfeb89574770b18f19c83e8c89fe97117b9a12d3
4
- data.tar.gz: 9621e75ef84f2e2ecfed5dc8e2452de47e157e1fa7ffc5448c133957733977a3
3
+ metadata.gz: b4c641c9036c389a69525715b7e71149166f7511ab1de92f4c15ad95b16d62dd
4
+ data.tar.gz: a607de42bbe8f3b0fe1906d46743e1f73486ea792b1a2cb1374084afa398f4f5
5
5
  SHA512:
6
- metadata.gz: f2e7e1129b8c885327926d605a8bfc0aa9556cf037b3c91ee4a4c36436cd7751646b31c5ecf65301c18520bb65efc45fdbb427e2d6d946f28d0cc63e090048be
7
- data.tar.gz: c9b5aa1eae520f16eab7dd0143de7af184c7e9c07865af3054caab14cbfea1d22eaab8a85ef06bafd6363286a5b8dcbc3bdbef99a902927032ae5288d65a835d
6
+ metadata.gz: d711299258a6a6156ba85240bc67143989ace9485999bc41f6e45510294a61418622bfa329eaf6f8b2f693b2a816008cdffaf53e899660e8ba63d8fc8f043bee
7
+ data.tar.gz: a83c41c21a95b2f35c67a2be4ceead0ff6c1fe5d11e3993fa902456063667c519b9750f45175a0306627980581a9d55bda1b24a8b27a0b6bb8b04bb80bd0234c
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.17.0
11
+
12
+ - Use recipient field in address ([75](https://github.com/alphagov/govuk_content_block_tools/pull/75))
13
+
10
14
  ## 0.16.0
11
15
 
12
16
  - Use label as link text for contact link ([74](https://github.com/alphagov/govuk_content_block_tools/pull/74))
@@ -12,7 +12,7 @@ module ContentBlockTools
12
12
  output = []
13
13
 
14
14
  output << content_tag(:p, class: "adr") do
15
- %i[title street_address town_or_city state_or_county postal_code country].map { |field|
15
+ %i[recipient street_address town_or_city state_or_county postal_code country].map { |field|
16
16
  next if item[field].blank?
17
17
 
18
18
  content_tag(:span, item[field], { class: class_for_field_name(field) })
@@ -27,6 +27,7 @@ module ContentBlockTools
27
27
 
28
28
  def class_for_field_name(field_name)
29
29
  {
30
+ recipient: "organization-name",
30
31
  street_address: "street-address",
31
32
  town_or_city: "locality",
32
33
  state_or_county: "region",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentBlockTools
4
- VERSION = "0.16.0"
4
+ VERSION = "0.17.0"
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.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev