govuk_publishing_components 24.10.2 → 24.10.3

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: 8e7fe72e738809175f7caa96a6003eb8191b09e0f26bbc72963088d6ef20eb7d
4
- data.tar.gz: ca5784e8fc57b3314d60ea63733e03d636671329d5ef697d59ff82a595069200
3
+ metadata.gz: c0506262186ba0a9a1bf7ad543de412379a31dcdbf85d340fe24a08ca4b168a9
4
+ data.tar.gz: eaeea982722cc7e5ee8a06f2609719034495eed7e717e967bee5fa5fe7897fbe
5
5
  SHA512:
6
- metadata.gz: f376231a1805b60263dd404cfe9f39fa5c552ae227a3c2059a9353da6afdfa14a6a3831b68e5c4346b3ca2624a861deb89695d5b738cdb7c59c66ee02b641c52
7
- data.tar.gz: 26e0e71bad0c3b6d98e0d091b7925999fc8b0600e01c30900f1271ecb047619b0a4361ffa0f767f5f1f18539bf189f0fa3c8f7ad36f8107b0846808a8d3b9448
6
+ metadata.gz: 570b60d946209abd90e62672f2fd1739f44cd2312ffe1662cec29d8a6330a1995e0dc338ab32e7c0029091571dc317b407e34454f0b96dddb31408e430db03c8
7
+ data.tar.gz: 8816a7575cc3038dcdd148dd3809692d6263ceb7da18f080e413f3c9bd4f39ad891c7c54bc176373a4d4e281fad40a5467b40ed9b3bf7f4a2b7a43573d8c103e
@@ -4,10 +4,6 @@ phase ||= nil
4
4
  message ||= nil
5
5
  inverse ||= false
6
6
 
7
- unless phase.in?(%w[alpha beta])
8
- raise ArgumentError, "The phase banner component expects a `phase` (`beta` or `alpha`), #{phase.inspect} given"
9
- end
10
-
11
7
  unless message.present?
12
8
  if phase == "beta"
13
9
  message = raw("This part of GOV.UK is being rebuilt &ndash; <a class=\"govuk-link\" href=\"/help/beta\">find out what beta means</a>")
@@ -23,7 +19,7 @@ container_css_classes << "gem-c-phase-banner--inverse" if inverse
23
19
  <%= tag.div class: container_css_classes do %>
24
20
  <%= tag.p class: "govuk-phase-banner__content" do %>
25
21
  <%= tag.strong app_name, class: "govuk-phase-banner__content__app-name" if app_name %>
26
- <%= tag.strong phase, class: "govuk-tag govuk-phase-banner__content__tag" %>
22
+ <%= tag.strong phase, class: "govuk-tag govuk-phase-banner__content__tag" if phase %>
27
23
  <%= tag.span message, class: "govuk-phase-banner__text" if message %>
28
24
  <% end %>
29
25
  <% end %>
@@ -1,6 +1,6 @@
1
- name: Phase (alpha & beta) banner
1
+ name: Phase banner
2
2
  description: |
3
- A banner that indicates content is in a alpha or beta phase, with an optional explanation
3
+ A banner that indicates content is in a certain phase (usually alpha or beta), with an optional explanation
4
4
  accessibility_criteria: |
5
5
  The label must:
6
6
 
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "24.10.2".freeze
2
+ VERSION = "24.10.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.10.2
4
+ version: 24.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-10 00:00:00.000000000 Z
11
+ date: 2021-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config