content_block_tools 0.6.3 → 0.6.4

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: 3b4f73d4250542e48814f4b1a7f9963315909983df3cd8f306316c00945c0f27
4
- data.tar.gz: b376678520df72388f10802a1652fa3819a0a3ad13d295ed681a5c7bdaf20b1d
3
+ metadata.gz: ef8e369276bd01a87c080d61127a7cc93f09f77a37ba0b60b6de826a6668143e
4
+ data.tar.gz: f009b4fdb80e917b8539bc636b0414f453b4236297ba41bd0fee1218825da004
5
5
  SHA512:
6
- metadata.gz: 3ab65c991be77d1feb1f8720e9d36d193bfacae7a5e57cebad50ea894ea28a1ceac34c03df4660f0fc8d7f2ecc2195e005fd2a33133540502655e19334fc7a27
7
- data.tar.gz: aab61f2f75566b7e869ac36fc8535ad5f5a48bb8dce7304952cdf3a5f056f10e9b396c4e0cf5d7d5491d54535f6f4c131f73fc097017edb1b597adb2a6abf994
6
+ metadata.gz: e931a0effa4eca7897d14d05c39a3aabdfaf2a742a3fe1b933e6a9e112fd8ea315d42ff115ebc491de358d77e281abcabb0df5a2733a970d848fb863085fb3c9
7
+ data.tar.gz: a6ab3ea8acba0b9abaf68069bc6a7c5afe62ebb2ce9cea3cf85e9058308e7732bfbe283523c657a24972fa2be0e4eb76597401f99eaec735a57e299cadf6081d
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.6.4
11
+
12
+ - Fix rendering of block when UK call charges are not shown ([54](https://github.com/alphagov/govuk_content_block_tools/pull/54))
13
+
10
14
  ## 0.6.3
11
15
 
12
16
  - Fix rendering telephone numbers and rendering individual nested fields ([53](https://github.com/alphagov/govuk_content_block_tools/pull/53))
@@ -25,11 +25,13 @@ module ContentBlockTools
25
25
  end
26
26
 
27
27
  def call_charges_link
28
- item[:show_uk_call_charges] == "true" && content_tag(:p, class: "govuk-!-margin-0") do
29
- concat content_tag(:a,
30
- "Find out about call charges",
31
- class: "govuk-link",
32
- href: "https://www.gov.uk/call-charges")
28
+ if item[:show_uk_call_charges] == "true"
29
+ content_tag(:p, class: "govuk-!-margin-0") do
30
+ concat content_tag(:a,
31
+ "Find out about call charges",
32
+ class: "govuk-link",
33
+ href: "https://www.gov.uk/call-charges")
34
+ end
33
35
  end
34
36
  end
35
37
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentBlockTools
4
- VERSION = "0.6.3"
4
+ VERSION = "0.6.4"
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.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev